Attribute
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | SourceFile(int
Index in constant pool to CONSTANT_Utf8 name_index, int Content length in bytes length, DataInputStream Input stream file, ConstantPool Array of constants constant_pool)Construct object from file stream. |
| public | SourceFile(int
Index in constant pool to CONSTANT_Utf8, which should represent the string "SourceFile". name_index, int Content length in bytes, the value should be 2. length, 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. sourcefile_index, ConstantPool The constant pool that this attribute is associated with. constant_pool)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ClassVisitor
Visitor object v)Implements abstract org. Implements org. |
| public final void | dump(DataOutputStream
Output file stream file)
Dump source file attribute to file stream in binary format.
|
| public final int | |
| public final String | |
| public final void | |
| public final String | Returns: String representationOverrides org. |
| sourcefile_index | back to summary |
|---|---|
| private int sourcefile_index | |
| SourceFile | back to summary |
|---|---|
| public SourceFile(SourceFile c) Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy. | |
| SourceFile | back to summary |
|---|---|
| pack-priv SourceFile(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException Construct object from file stream.
| |
| SourceFile | back to summary |
|---|---|
public SourceFile(int name_index, int length, int sourcefile_index, ConstantPool constant_pool)
| |
| accept | back to summary |
|---|---|
| public void accept(ClassVisitor v) Implements abstract org. Implements org. Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
| |
| dump | back to summary |
|---|---|
| public final void dump(DataOutputStream file) throws IOException Overrides org. Dump source file attribute to file stream in binary format.
| |
| getSourceFileIndex | back to summary |
|---|---|
public final int getSourceFileIndex()
| |
| getSourceFileName | back to summary |
|---|---|
public final String getSourceFileName()
| |
| setSourceFileIndex | back to summary |
|---|---|
| public final void setSourceFileIndex(int sourcefile_index) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Doc from java. Returns a string representation of the object. | |