-
- All Implemented Interfaces:
public final class ModuleMainClassAttribute extends AttributeInfo
Describes a ModuleMainClass attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classModuleMainClassAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegermainClassIndexprivate final ConstantUtf8InfomainClassConstantprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description ModuleMainClassAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetMainClassIndex()Constant pool index of the CONSTANT_Class_info structure containing the module main class. final UnitsetMainClassIndex(Integer mainClassIndex)Constant pool index of the CONSTANT_Class_info structure containing the module main class. final ConstantUtf8InfogetMainClassConstant()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
-
ModuleMainClassAttribute
ModuleMainClassAttribute(ClassFile classFile)
-
-
Method Detail
-
getMainClassIndex
final Integer getMainClassIndex()
Constant pool index of the CONSTANT_Class_info structure containing the module main class.
-
setMainClassIndex
final Unit setMainClassIndex(Integer mainClassIndex)
Constant pool index of the CONSTANT_Class_info structure containing the module main class.
-
getMainClassConstant
final ConstantUtf8Info getMainClassConstant()
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-