|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjasm.attributes.LineNumberTable
public class LineNumberTable
| Nested Class Summary | |
|---|---|
static class |
LineNumberTable.Entry
|
| Nested classes/interfaces inherited from interface jasm.lang.BytecodeAttribute |
|---|
BytecodeAttribute.Fn, BytecodeAttribute.Reader, BytecodeAttribute.Unknown |
| Constructor Summary | |
|---|---|
LineNumberTable(java.util.Collection<LineNumberTable.Entry> entries)
|
|
| Method Summary | |
|---|---|
void |
addPoolItems(java.util.Set<Constant.Info> constantPool)
When this method is called, the attribute must add all items that it needs to the constant pool. |
void |
apply(java.util.List<Code.Rewrite> rewrites)
This method accepts a list of rewrites which should be applied. |
java.util.List<LineNumberTable.Entry> |
entries()
|
java.lang.String |
name()
|
void |
print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method is used to print the contents of the attribute in human-readable form, similar to that produced by "javap". |
void |
write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method requires the attribute to write itself to the binary stream. |
void |
write(int[] bytecodeOffsets,
BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
This method requires the attribute to write itself to the binary stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineNumberTable(java.util.Collection<LineNumberTable.Entry> entries)
| Method Detail |
|---|
public void apply(java.util.List<Code.Rewrite> rewrites)
Code.BytecodeMapAttribute
apply in interface Code.BytecodeMapAttributepublic java.util.List<LineNumberTable.Entry> entries()
public java.lang.String name()
name in interface BytecodeAttribute
public void write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
throws java.io.IOException
BytecodeAttribute
write in interface BytecodeAttributejava.io.IOException
public void write(int[] bytecodeOffsets,
BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
throws java.io.IOException
Code.BytecodeMapAttribute
write in interface Code.BytecodeMapAttributebytecodeOffsets - --- maps each bytecode index to its actual offset in the
code block.writer - --- stream to write attribute toconstantPool - --- map of constant pool items to their actual pool index
java.io.IOExceptionpublic void addPoolItems(java.util.Set<Constant.Info> constantPool)
BytecodeAttribute
addPoolItems in interface BytecodeAttribute
public void print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
throws java.io.IOException
BytecodeAttribute
print in interface BytecodeAttributejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||