-
- All Implemented Interfaces:
public final class SourceFileAttribute extends AttributeInfo
Describes a SourceFile attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSourceFileAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegersourceFileIndexprivate final ConstantUtf8InfosourceFileConstantprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description SourceFileAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetSourceFileIndex()Constant pool index of the name of the source file. final UnitsetSourceFileIndex(Integer sourceFileIndex)Constant pool index of the name of the source file. final ConstantUtf8InfogetSourceFileConstant()IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SourceFileAttribute
SourceFileAttribute(ClassFile classFile)
-
-
Method Detail
-
getSourceFileIndex
final Integer getSourceFileIndex()
Constant pool index of the name of the source file.
-
setSourceFileIndex
final Unit setSourceFileIndex(Integer sourceFileIndex)
Constant pool index of the name of the source file.
-
getSourceFileConstant
final ConstantUtf8Info getSourceFileConstant()
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-