|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.go.trove.classfile.FieldInfo
This class corresponds to the field_info structure as defined in section 4.5 of The Java Virtual Machine Specification.
ClassFile| Method Summary | |
void |
addAttribute(Attribute attr)
|
AccessFlags |
getAccessFlags()
Returns a copy of this field's access flags. |
Attribute[] |
getAttributes()
|
ClassFile |
getClassFile()
Returns the parent ClassFile for this FieldInfo. |
ConstantInfo |
getConstantValue()
Returns the constant value for this field or null if no constant set. |
ConstantUTFInfo |
getDescriptorConstant()
Returns a constant from the constant pool with this field's type descriptor string. |
int |
getLength()
Returns the length (in bytes) of this object in the class file. |
java.lang.String |
getName()
Returns the name of this field. |
ConstantUTFInfo |
getNameConstant()
Returns a constant from the constant pool with this field's name. |
TypeDescriptor |
getType()
Returns the type of this field. |
boolean |
isDeprecated()
|
boolean |
isSynthetic()
|
void |
markDeprecated()
Mark this field as being deprecated by adding a special attribute. |
void |
markSynthetic()
Mark this field as being synthetic by adding a special attribute. |
void |
setConstantValue(double value)
Set the constant value for this field as a double. |
void |
setConstantValue(float value)
Set the constant value for this field as a float. |
void |
setConstantValue(int value)
Set the constant value for this field as an int. |
void |
setConstantValue(long value)
Set the constant value for this field as a long. |
void |
setConstantValue(java.lang.String value)
Set the constant value for this field as a string. |
java.lang.String |
toString()
|
void |
writeTo(java.io.DataOutput dout)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public ClassFile getClassFile()
public java.lang.String getName()
public TypeDescriptor getType()
public AccessFlags getAccessFlags()
public ConstantUTFInfo getNameConstant()
public ConstantUTFInfo getDescriptorConstant()
TypeDescriptorpublic ConstantInfo getConstantValue()
public boolean isSynthetic()
public boolean isDeprecated()
public void setConstantValue(int value)
public void setConstantValue(float value)
public void setConstantValue(long value)
public void setConstantValue(double value)
public void setConstantValue(java.lang.String value)
public void markSynthetic()
public void markDeprecated()
public void addAttribute(Attribute attr)
public Attribute[] getAttributes()
public int getLength()
public void writeTo(java.io.DataOutput dout)
throws java.io.IOException
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||