Package com.android.dx.cf.iface
Class StdMember
java.lang.Object
com.android.dx.cf.iface.StdMember
- All Implemented Interfaces:
HasAttribute
,Member
Standard implementation of
Member
, which directly stores
all the associated data.-
Constructor Summary
ConstructorDescriptionStdMember
(CstType definingClass, int accessFlags, CstNat nat, AttributeList attributes) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Get the fieldaccess_flags
.final AttributeList
Get the fieldattributes
(along withattributes_count
).final CstType
Get the defining class.final CstString
Get the fielddescriptor_index
of the member.final CstString
getName()
Get the fieldname_index
of the member.final CstNat
getNat()
Get the name and type associated with this member.toString()
-
Constructor Details
-
StdMember
Constructs an instance.- Parameters:
definingClass
-non-null;
the defining classaccessFlags
- access flagsnat
-non-null;
member name and type (descriptor)attributes
-non-null;
list of associated attributes
-
-
Method Details
-
toString
-
getDefiningClass
Get the defining class.- Specified by:
getDefiningClass
in interfaceMember
- Returns:
non-null;
the defining class
-
getAccessFlags
public final int getAccessFlags()Get the fieldaccess_flags
.- Specified by:
getAccessFlags
in interfaceMember
- Returns:
- the access flags
-
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. -
getName
Get the fieldname_index
of the member. This is just a convenient shorthand forgetNat().getName()
. -
getDescriptor
Get the fielddescriptor_index
of the member. This is just a convenient shorthand forgetNat().getDescriptor()
.- Specified by:
getDescriptor
in interfaceMember
- Returns:
non-null;
the descriptor
-
getAttributes
Get the fieldattributes
(along withattributes_count
).- Specified by:
getAttributes
in interfaceHasAttribute
- Specified by:
getAttributes
in interfaceMember
- Returns:
non-null;
the constant pool
-