|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JConstantFieldref
A JConstantFieldref object represents a CONSTANT_Fieldref_info entry of a constant pool.
A CONSTANT_Fieldref_info entry is used to represent a field. Among its items there are two index into the constant pool. The first index is an index to a CONSTANT_Class_info entry representing the class or interface type that contains the declaration of the field. The second index is an index to a CONSTANT_NameAndType_info entry that indicates the name and descriptor of the field.
JConstantPool| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.classfile.constant.JConstant |
|---|
CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACE_METHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAME_AND_TYPE, CONSTANT_STRING, CONSTANT_UTF8 |
| Method Summary | |
|---|---|
int |
getClassIndex()
Returns the index of a CONSTANT_Class_info entry representing a valid fully qualified class or interface name. |
java.lang.String |
getClassName()
Returns the fully qualified class or interface name. |
java.lang.String |
getDescriptor()
Returns a field descriptor. |
java.lang.String |
getName()
Returns a field name. |
int |
getNameAndTypeIndex()
Returns the index of a CONSTANT_NameAndType_info entry representing the name and the descriptor of a field. |
JField |
getResolvedField()
|
boolean |
isResolved()
|
void |
setClassIndex(int classIndex)
Sets the index of a CONSTANT_Class_info entry representing a valid fully qualified class or interface name. |
void |
setNameAndTypeIndex(int nameAndTypeIndex)
Sets the index of a CONSTANT_NameAndType_info entry representing the name and the descriptor of a field. |
void |
setResolvedField(JField field)
|
| Methods inherited from interface fr.umlv.corosol.classfile.constant.JConstant |
|---|
getLength, getTag, toString |
| Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem |
|---|
getConstantPool, readItem, setConstantPool, writeItem |
| Method Detail |
|---|
java.lang.String getClassName()
java.lang.String getName()
java.lang.String getDescriptor()
int getClassIndex()
int getNameAndTypeIndex()
void setClassIndex(int classIndex)
classIndex - an index of a constant pool entry representing the
name of the declaring class or interface of a fieldvoid setNameAndTypeIndex(int nameAndTypeIndex)
nameAndTypeIndex - an index of a constant pool entry representing
the name and the descriptor of a fieldJField getResolvedField()
void setResolvedField(JField field)
boolean isResolved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||