-
- All Implemented Interfaces:
public final class EnclosingMethodAttribute extends AttributeInfo
Describes an EnclosingMethod attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEnclosingMethodAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegerclassInfoIndexprivate final ConstantClassInfoclassInfoConstantprivate IntegermethodInfoIndexprivate final ConstantNameAndTypeInfomethodInfoConstantprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description EnclosingMethodAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetClassInfoIndex()Constant pool index of the CONSTANT_Class_info structure representing the innermost class that encloses the declaration of the current class. final UnitsetClassInfoIndex(Integer classInfoIndex)Constant pool index of the CONSTANT_Class_info structure representing the innermost class that encloses the declaration of the current class. final ConstantClassInfogetClassInfoConstant()final IntegergetMethodInfoIndex()Constant pool index of the CONSTANT_NameAndType_info structure representing the name and type of a method in the class referenced by the class info index above. final UnitsetMethodInfoIndex(Integer methodInfoIndex)Constant pool index of the CONSTANT_NameAndType_info structure representing the name and type of a method in the class referenced by the class info index above. final ConstantNameAndTypeInfogetMethodInfoConstant()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
-
EnclosingMethodAttribute
EnclosingMethodAttribute(ClassFile classFile)
-
-
Method Detail
-
getClassInfoIndex
final Integer getClassInfoIndex()
Constant pool index of the CONSTANT_Class_info structure representing the innermost class that encloses the declaration of the current class.
-
setClassInfoIndex
final Unit setClassInfoIndex(Integer classInfoIndex)
Constant pool index of the CONSTANT_Class_info structure representing the innermost class that encloses the declaration of the current class.
-
getClassInfoConstant
final ConstantClassInfo getClassInfoConstant()
-
getMethodInfoIndex
final Integer getMethodInfoIndex()
Constant pool index of the CONSTANT_NameAndType_info structure representing the name and type of a method in the class referenced by the class info index above.
-
setMethodInfoIndex
final Unit setMethodInfoIndex(Integer methodInfoIndex)
Constant pool index of the CONSTANT_NameAndType_info structure representing the name and type of a method in the class referenced by the class info index above.
-
getMethodInfoConstant
final ConstantNameAndTypeInfo getMethodInfoConstant()
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-