|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rsta.ac.java.classreader.MemberInfo
org.fife.rsta.ac.java.classreader.FieldInfo
public class FieldInfo
Represents a "field_info" structure as defined by the Java VM spec.
| Field Summary | |
|---|---|
static String |
CONSTANT_VALUE
|
| Fields inherited from class org.fife.rsta.ac.java.classreader.MemberInfo |
|---|
cf, DEPRECATED |
| Constructor Summary | |
|---|---|
FieldInfo(ClassFile cf,
int accessFlags,
int nameIndex,
int descriptorIndex)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAttribute(AttributeInfo info)
Adds the specified attribute to this field. |
AttributeInfo |
getAttribute(int index)
Returns the specified attribute. |
int |
getAttributeCount()
Returns the number of attributes of this field. |
String |
getConstantValueAsString()
|
String |
getDescriptor()
Returns the field descriptor of this field. |
String |
getName()
Returns the name of this member. |
int |
getNameIndex()
Returns the index into the constant pool of a ConstantUtf8Info
structure representing the field name, as a simple name. |
String |
getTypeString()
Returns the type of this field, as determined from its field descriptor. |
boolean |
isConstant()
|
static FieldInfo |
read(ClassFile cf,
DataInputStream in)
Reads a FieldInfo structure from the specified input
stream. |
| Methods inherited from class org.fife.rsta.ac.java.classreader.MemberInfo |
|---|
getAccessFlags, getClassFile, isDeprecated, isFinal, isStatic, readAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONSTANT_VALUE
| Constructor Detail |
|---|
public FieldInfo(ClassFile cf,
int accessFlags,
int nameIndex,
int descriptorIndex)
AccessFlags| Method Detail |
|---|
public void addAttribute(AttributeInfo info)
info - Information about the attribute.public AttributeInfo getAttribute(int index)
index - The index of the attribute.
public int getAttributeCount()
public String getConstantValueAsString()
public String getDescriptor()
getDescriptor in class MemberInfopublic String getName()
getName in class MemberInfopublic int getNameIndex()
ConstantUtf8Info
structure representing the field name, as a simple name.
public String getTypeString()
public boolean isConstant()
public static FieldInfo read(ClassFile cf,
DataInputStream in)
throws IOException
FieldInfo structure from the specified input
stream.
cf - The class file containing this field.in - The input stream to read from.
IOException - If an IO error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||