Package com.android.dx.cf.iface
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 TypeMethodDescriptionint
Get the fieldaccess_flags
.Get the fieldattributes
(along withattributes_count
).Get the defining class.Get the fielddescriptor_index
of the member.getName()
Get the fieldname_index
of the member.getNat()
Get the name and type associated with this member.
-
Method Details
-
getDefiningClass
CstType getDefiningClass()Get the defining class.- Returns:
non-null;
the defining class
-
getAccessFlags
int getAccessFlags()Get the fieldaccess_flags
.- Returns:
- the access flags
-
getName
CstString getName()Get the fieldname_index
of the member. This is just a convenient shorthand forgetNat().getName()
.- Returns:
non-null;
the name
-
getDescriptor
CstString getDescriptor()Get the fielddescriptor_index
of 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_index
anddescriptor_index
in 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:
getAttributes
in interfaceHasAttribute
- Returns:
non-null;
the constant pool
-