ProGuard

proguard.classfile
Class LineNumberTableAttrInfo

java.lang.Object
  extended byproguard.classfile.AttrInfo
      extended byproguard.classfile.LineNumberTableAttrInfo
All Implemented Interfaces:
VisitorAccepter

public class LineNumberTableAttrInfo
extends AttrInfo

Representation of a line number table attribute.


Field Summary
 LineNumberInfo[] lineNumberTable
           
 int u2lineNumberTableLength
           
 
Fields inherited from class proguard.classfile.AttrInfo
u2attrNameIndex, visitorInfo
 
Constructor Summary
protected LineNumberTableAttrInfo()
           
 
Method Summary
 void accept(ClassFile classFile, MethodInfo methodInfo, CodeAttrInfo codeAttrInfo, AttrInfoVisitor attrInfoVisitor)
          Accepts the given visitor in the context of a method's code.
protected  int getAttrInfoLength()
          Returns the length in bytes of the attribute.
 int getLineNumber(int pc)
          Returns the line number corresponding to the given byte code program counter.
 void lineNumbersAccept(ClassFile classFile, MethodInfo methodInfo, CodeAttrInfo codeAttrInfo, LineNumberInfoVisitor lineNumberInfoVisitor)
          Applies the given visitor to all line numbers.
protected  void readInfo(DataInput din, ClassFile cf)
          Reads the data following the header.
protected  void writeInfo(DataOutput dout)
          Exports data following the header to a DataOutput stream.
 
Methods inherited from class proguard.classfile.AttrInfo
accept, accept, accept, create, getAttributeName, getVisitorInfo, setVisitorInfo, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

u2lineNumberTableLength

public int u2lineNumberTableLength

lineNumberTable

public LineNumberInfo[] lineNumberTable
Constructor Detail

LineNumberTableAttrInfo

protected LineNumberTableAttrInfo()
Method Detail

getLineNumber

public int getLineNumber(int pc)
Returns the line number corresponding to the given byte code program counter.


getAttrInfoLength

protected int getAttrInfoLength()
Description copied from class: AttrInfo
Returns the length in bytes of the attribute.

Specified by:
getAttrInfoLength in class AttrInfo

readInfo

protected void readInfo(DataInput din,
                        ClassFile cf)
                 throws IOException
Description copied from class: AttrInfo
Reads the data following the header.

Specified by:
readInfo in class AttrInfo
Throws:
IOException

writeInfo

protected void writeInfo(DataOutput dout)
                  throws IOException
Description copied from class: AttrInfo
Exports data following the header to a DataOutput stream.

Specified by:
writeInfo in class AttrInfo
Throws:
IOException

accept

public void accept(ClassFile classFile,
                   MethodInfo methodInfo,
                   CodeAttrInfo codeAttrInfo,
                   AttrInfoVisitor attrInfoVisitor)
Description copied from class: AttrInfo
Accepts the given visitor in the context of a method's code. This default implementation ignores the code.

Overrides:
accept in class AttrInfo

lineNumbersAccept

public void lineNumbersAccept(ClassFile classFile,
                              MethodInfo methodInfo,
                              CodeAttrInfo codeAttrInfo,
                              LineNumberInfoVisitor lineNumberInfoVisitor)
Applies the given visitor to all line numbers.


ProGuard