-
- All Implemented Interfaces:
-
org.gjt.jclasslib.structures.AttributeContainer
public abstract class ClassMember extends Structure implements AttributeContainer
Base class for class members.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegeraccessFlagsprivate IntegernameIndexprivate final ConstantUtf8InfonameConstantprivate IntegerdescriptorIndexprivate final ConstantUtf8InfodescriptorConstantprivate Array<AttributeInfo>attributesprivate final Stringnameprivate final Stringdescriptorprivate final StringformattedAccessFlagsprivate final StringaccessFlagsVerboseprivate final IntegertotalAttributesLength
-
Constructor Summary
Constructors Constructor Description ClassMember(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetAccessFlags()Access flags of this class member. final UnitsetAccessFlags(Integer accessFlags)Access flags of this class member. final IntegergetNameIndex()The constant pool index of the name of this class member. final UnitsetNameIndex(Integer nameIndex)The constant pool index of the name of this class member. final ConstantUtf8InfogetNameConstant()final IntegergetDescriptorIndex()The constant pool index of the descriptor of this class member. final UnitsetDescriptorIndex(Integer descriptorIndex)The constant pool index of the descriptor of this class member. final ConstantUtf8InfogetDescriptorConstant()Array<AttributeInfo>getAttributes()Attributes of this structure. UnitsetAttributes(Array<AttributeInfo> attributes)Attributes of this structure. final StringgetName()final StringgetDescriptor()final StringgetFormattedAccessFlags()final StringgetAccessFlagsVerbose()-
Methods inherited from class org.gjt.jclasslib.structures.AttributeContainer
findAttribute, getTotalAttributesLength, readAttributes, writeAttributes -
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
-
ClassMember
ClassMember(ClassFile classFile)
-
-
Method Detail
-
getAccessFlags
final Integer getAccessFlags()
Access flags of this class member.
-
setAccessFlags
final Unit setAccessFlags(Integer accessFlags)
Access flags of this class member.
-
getNameIndex
final Integer getNameIndex()
The constant pool index of the name of this class member.
-
setNameIndex
final Unit setNameIndex(Integer nameIndex)
The constant pool index of the name of this class member.
-
getNameConstant
final ConstantUtf8Info getNameConstant()
-
getDescriptorIndex
final Integer getDescriptorIndex()
The constant pool index of the descriptor of this class member.
-
setDescriptorIndex
final Unit setDescriptorIndex(Integer descriptorIndex)
The constant pool index of the descriptor of this class member.
-
getDescriptorConstant
final ConstantUtf8Info getDescriptorConstant()
-
getAttributes
Array<AttributeInfo> getAttributes()
Attributes of this structure.
-
setAttributes
Unit setAttributes(Array<AttributeInfo> attributes)
Attributes of this structure.
-
getDescriptor
final String getDescriptor()
-
getFormattedAccessFlags
final String getFormattedAccessFlags()
-
getAccessFlagsVerbose
final String getAccessFlagsVerbose()
-
-
-
-