|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.classFile.FieldInfo
public final class FieldInfo
Represents a field in a class file.
| Field Summary | |
|---|---|
private short |
_accessFlags
Field access flags |
private java.util.ArrayList<AAttributeInfo> |
_attributes
Attributes. |
private AUTFPoolInfo |
_descriptor
Type descriptor information. |
private AUTFPoolInfo |
_name
Name information. |
| Constructor Summary | |
|---|---|
FieldInfo(java.io.DataInputStream di,
ConstantPool pool)
Constructor. |
|
FieldInfo(short accessFlags,
AUTFPoolInfo name,
AUTFPoolInfo descriptor,
SourceFileAttributeInfo[] attributes)
Constructor. |
|
| Method Summary | |
|---|---|
short |
getAccessFlags()
Accessor for access flags. |
AAttributeInfo |
getAttribute(java.lang.String name)
Return the attribute with the specified name. |
java.util.ArrayList<AAttributeInfo> |
getAttributes()
Accessor for attributes. |
AUTFPoolInfo |
getDescriptor()
Accessor for descriptor. |
AUTFPoolInfo |
getName()
Accessor for field name. |
void |
setAccessFlags(short accessFlags)
Mutator for access flags. |
void |
setAttributes(java.util.ArrayList<AAttributeInfo> attributes)
Mutator for attributes. |
void |
setDescriptor(AUTFPoolInfo descriptor)
Mutator for descriptor. |
void |
setName(AUTFPoolInfo name)
Mutator for field name. |
java.lang.String |
toString()
Return a human-readable version of this field. |
java.lang.String |
toString(ConstantPool pool)
Return a human-readable version of this field and correctly handle booleans and strings. |
void |
write(java.io.DataOutputStream dos,
ConstantPool pool)
Write this field into a stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private short _accessFlags
private AUTFPoolInfo _name
private AUTFPoolInfo _descriptor
private java.util.ArrayList<AAttributeInfo> _attributes
| Constructor Detail |
|---|
public FieldInfo(short accessFlags,
AUTFPoolInfo name,
AUTFPoolInfo descriptor,
SourceFileAttributeInfo[] attributes)
accessFlags - field access flagsname - field namedescriptor - field descriptorattributes - array of attributes
public FieldInfo(java.io.DataInputStream di,
ConstantPool pool)
throws java.io.IOException,
java.lang.ClassFormatError
di - input streampool - constant pool
java.io.IOException
java.lang.ClassFormatError| Method Detail |
|---|
public void write(java.io.DataOutputStream dos,
ConstantPool pool)
throws java.io.IOException
dos - output streampool - constant pool
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String toString(ConstantPool pool)
pool - constant pool
public short getAccessFlags()
public void setAccessFlags(short accessFlags)
accessFlags - new access flagspublic AUTFPoolInfo getName()
public void setName(AUTFPoolInfo name)
name - new field namepublic AUTFPoolInfo getDescriptor()
public void setDescriptor(AUTFPoolInfo descriptor)
descriptor - new descriptorpublic java.util.ArrayList<AAttributeInfo> getAttributes()
public AAttributeInfo getAttribute(java.lang.String name)
name - attribute name
public void setAttributes(java.util.ArrayList<AAttributeInfo> attributes)
attributes - new attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||