jasm.attributes
Class SourceFile
java.lang.Object
jasm.attributes.SourceFile
- All Implemented Interfaces:
- BytecodeAttribute
public class SourceFile
- extends java.lang.Object
- implements BytecodeAttribute
Constructor Summary |
SourceFile(java.lang.String filename)
|
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. |
java.lang.String |
filename()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceFile
public SourceFile(java.lang.String filename)
name
public java.lang.String name()
- Specified by:
name
in interface BytecodeAttribute
filename
public java.lang.String filename()
write
public void write(BinaryOutputStream writer,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
throws java.io.IOException
- Description copied from interface:
BytecodeAttribute
- This method requires the attribute to write itself to the binary stream.
- Specified by:
write
in interface BytecodeAttribute
- Throws:
java.io.IOException
addPoolItems
public void addPoolItems(java.util.Set<Constant.Info> constantPool)
- Description copied from interface:
BytecodeAttribute
- When this method is called, the attribute must add all items that it
needs to the constant pool.
- Specified by:
addPoolItems
in interface BytecodeAttribute
print
public void print(java.io.PrintWriter output,
java.util.Map<Constant.Info,java.lang.Integer> constantPool)
throws java.io.IOException
- Description copied from interface:
BytecodeAttribute
- This method is used to print the contents of the attribute in
human-readable form, similar to that produced by "javap".
- Specified by:
print
in interface BytecodeAttribute
- Throws:
java.io.IOException
Copyright © 2013 David J. Pearce. All Rights Reserved.