Interface Member
- All Superinterfaces:
HasAttribute
- All Known Implementing Classes:
ConcreteMethod, StdField, StdMember, StdMethod
Interface representing members of class files (that is, fields and methods).
-
Method Summary
Modifier and TypeMethodDescriptionintGet the fieldaccess_flags.Get the fieldattributes(along withattributes_count).Get the defining class.Get the fielddescriptor_indexof the member.getName()Get the fieldname_indexof the member.getNat()Get the name and type associated with this member.
-
Method Details
-
getDefiningClass
-
getAccessFlags
int getAccessFlags()Get the fieldaccess_flags.- Returns:
- the access flags
-
getName
CstString getName()Get the fieldname_indexof the member. This is just a convenient shorthand forgetNat().getName().- Returns:
non-null;the name
-
getDescriptor
CstString getDescriptor()Get the fielddescriptor_indexof the member. This is just a convenient shorthand forgetNat().getDescriptor().- Returns:
non-null;the descriptor
-
getNat
CstNat getNat()Get the name and type associated with this member. This is a combination of the fieldsname_indexanddescriptor_indexin the original classfile, interpreted via the constant pool.- Returns:
non-null;the name and type
-
getAttributes
AttributeList getAttributes()Get the fieldattributes(along withattributes_count).- Specified by:
getAttributesin interfaceHasAttribute- Returns:
non-null;the constant pool
-