|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JClassMember
A JClassMember object represents a description of a class member. It correspond to a field_info or method_info structure in the specification of Class file.
| Method Summary | |
|---|---|
void |
addAttribute(JAttribute attribute)
Adds the specified attribute. |
int |
getAccessFlags()
Returns the mask of flags used to denote access permission to and properties of this class member. |
JAttribute |
getAttribute(java.lang.String name)
Returns the attribute whose name is specified. |
JAttribute[] |
getAttributes()
Returns the array of attributes of this class member. |
java.lang.String |
getDescriptor()
Returns the descriptor of this class member. |
int |
getDescriptorIndex()
Returns the index of the CONSTANT_Utf8_info constant pool entry, representing the descriptor of this class member. |
java.lang.String |
getName()
Returns the name of this class member. |
int |
getNameIndex()
Returns the index of the CONSTANT_Utf8_info constant pool entry, representing the name of this class member. |
void |
removeAttribute(java.lang.String name)
Removes the attribute whose name is specified. |
void |
setAccessFlags(int accessFlags)
Sets the mask of flags used to denote access permission to and properties of this class member. |
void |
setAttributes(JAttribute[] attributes)
Sets the array of attributes of this class member. |
void |
setDescriptorIndex(int descriptorIndex)
Sets the index of the CONSTANT_Utf8_info constant pool entry, representing the descriptor of this class member. |
void |
setNameIndex(int nameIndex)
Sets the index of the CONSTANT_Utf8_info constant pool entry, representing the name of this class member. |
java.lang.String |
toString()
Returns a string representation of this class member. |
| Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem |
|---|
getConstantPool, readItem, setConstantPool, writeItem |
| Method Detail |
|---|
int getAccessFlags()
void setAccessFlags(int accessFlags)
accessFlags - the access flags of the classint getNameIndex()
void setNameIndex(int nameIndex)
nameIndex - the index of a constant pool entry representing the
name of this class memberint getDescriptorIndex()
void setDescriptorIndex(int descriptorIndex)
descriptorIndex - the index of a constant pool entry representing
the descriptor of this class memberjava.lang.String getName()
java.lang.String getDescriptor()
JAttribute[] getAttributes()
void setAttributes(JAttribute[] attributes)
attributes - an array of attributesJAttribute getAttribute(java.lang.String name)
name - the name of an attribute
void addAttribute(JAttribute attribute)
attribute - an attributevoid removeAttribute(java.lang.String name)
name - the name of an attributejava.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||