Code, LineNumber
| Modifier and Type | Field and Description |
|---|---|
| private LineNumber[] | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | LineNumberTable(final int
Index of name nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool)Constructs a new instance from a data input stream. |
| public | LineNumberTable(final int
Index of name nameIndex, final int Content length in bytes length, final LineNumber[] Table of line/numbers pairs lineNumberTable, final ConstantPool Array of constants constantPool)Constructs a new instance. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. |
| public Attribute | copy(final ConstantPool constantPool)
Implements abstract com. Returns: deep copy of this attribute |
| public void | dump(final DataOutputStream
Output file stream file)Overrides com. Dump line number table attribute to file stream in binary format. |
| public LineNumber[] | |
| public int | Returns: corresponding line in source codebyte code offset pos)Map byte code positions to source code lines. |
| public int | |
| public Iterator | |
| public void | |
| public String | Returns: String representation.Overrides com. Returns a string representation of the object. |
| lineNumberTable | back to summary |
|---|---|
| private LineNumber[] lineNumberTable | |
| MAX_LINE_LENGTH | back to summary |
|---|---|
| private static final int MAX_LINE_LENGTH | |
| LineNumberTable | back to summary |
|---|---|
| pack-priv LineNumberTable(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException Constructs a new instance from a data input stream.
| |
| LineNumberTable | back to summary |
|---|---|
| public LineNumberTable(final int nameIndex, final int length, final LineNumber[] lineNumberTable, final ConstantPool constantPool) Constructs a new instance.
| |
| LineNumberTable | back to summary |
|---|---|
| public LineNumberTable(final LineNumberTable c) Constructs a new instance from another. Note that both objects use the same references (shallow copy). Use copy() for a physical copy. | |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements abstract com. Implements com. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
| public Attribute copy(final ConstantPool constantPool) Implements abstract com. | |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream file) throws IOException Overrides com. Dump line number table attribute to file stream in binary format.
| |
| getLineNumberTable | back to summary |
|---|---|
public LineNumber[] getLineNumberTable()
| |
| getSourceLine | back to summary |
|---|---|
| public int getSourceLine(final int pos) Map byte code positions to source code lines.
| |
| getTableLength | back to summary |
|---|---|
| public int getTableLength() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| setLineNumberTable | back to summary |
|---|---|
public void setLineNumberTable(final LineNumber[] lineNumberTable)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |