Attribute
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | SourceFile(final int
Index in constant pool to CONSTANT_Utf8 nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool)Constructs object from input stream. |
| public | SourceFile(final int
Index in constant pool to CONSTANT_Utf8, which should represent the string "SourceFile". nameIndex, final int Content length in bytes, the value should be 2. length, final int Index in constant pool to CONSTANT_Utf8. This string will be interpreted as the name of the
file from which this class was compiled. It will not be interpreted as indicating the name of the directory
contqining the file or an absolute path; this information has to be supplied the consumer of this attribute -
in many cases, the JVM. sourceFileIndex, final ConstantPool The constant pool that this attribute is associated with. constantPool)
|
| 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 source file attribute to file stream in binary format. |
| public int | |
| public String | |
| public void | |
| public String | Returns: String representationOverrides com. Returns a string representation of the object. |
| sourceFileIndex | back to summary |
|---|---|
| private int sourceFileIndex | |
| SourceFile | back to summary |
|---|---|
| pack-priv SourceFile(final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool) throws IOException Constructs object from input stream.
| |
| SourceFile | back to summary |
|---|---|
public SourceFile(final int nameIndex, final int length, final int sourceFileIndex, final ConstantPool constantPool)
| |
| SourceFile | back to summary |
|---|---|
| public SourceFile(final SourceFile c) Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() 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 source file attribute to file stream in binary format.
| |
| getSourceFileIndex | back to summary |
|---|---|
public int getSourceFileIndex()
| |
| getSourceFileName | back to summary |
|---|---|
public String getSourceFileName()
| |
| setSourceFileIndex | back to summary |
|---|---|
| public void setSourceFileIndex(final int sourceFileIndex) | |
| 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- | |