|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.ClassMember
org.apache.jdo.impl.enhancer.classfile.ClassField
ClassField models the static and non-static fields of a class within a class file.
| Field Summary | |
private int |
accessFlags
|
private AttributeVector |
fieldAttributes
|
private ConstUtf8 |
fieldName
|
private ConstUtf8 |
fieldSignature
|
| Constructor Summary | |
ClassField(int accFlags,
ConstUtf8 name,
ConstUtf8 sig,
AttributeVector field_attrs)
Construct a class field object |
|
| Method Summary | |
int |
access()
Return the access flags for the field - see VMConstants |
AttributeVector |
attributes()
Return the attributes associated with the field |
void |
changeName(ConstUtf8 name)
Change the name of the field |
void |
changeSignature(ConstUtf8 newSig)
Change the type signature of the field |
SignatureAttribute |
getSignatureAttribute()
Returns the SignatureAttribute, if there's any, for this field. |
boolean |
isTransient()
Is the field transient? |
ConstUtf8 |
name()
Return the name of the field |
(package private) void |
print(java.io.PrintStream out,
int indent)
|
(package private) static ClassField |
read(java.io.DataInputStream data,
ConstantPool pool)
|
void |
setAccess(int newFlags)
Update the access flags for the field - see VMConstants |
ConstUtf8 |
signature()
Return the type signature of the field |
(package private) void |
write(java.io.DataOutputStream data)
|
| Methods inherited from class org.apache.jdo.impl.enhancer.classfile.ClassMember |
isEqual, isFinal, isPrivate, isProtected, isPublic, isStatic, setIsFinal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int accessFlags
private ConstUtf8 fieldName
private ConstUtf8 fieldSignature
private AttributeVector fieldAttributes
| Constructor Detail |
public ClassField(int accFlags,
ConstUtf8 name,
ConstUtf8 sig,
AttributeVector field_attrs)
| Method Detail |
public boolean isTransient()
public int access()
access in class ClassMemberpublic void setAccess(int newFlags)
setAccess in class ClassMemberpublic ConstUtf8 name()
name in class ClassMemberpublic void changeName(ConstUtf8 name)
public ConstUtf8 signature()
signature in class ClassMemberpublic void changeSignature(ConstUtf8 newSig)
public AttributeVector attributes()
attributes in class ClassMemberpublic SignatureAttribute getSignatureAttribute()
static ClassField read(java.io.DataInputStream data,
ConstantPool pool)
throws java.io.IOException
java.io.IOException
void write(java.io.DataOutputStream data)
throws java.io.IOException
java.io.IOException
void print(java.io.PrintStream out,
int indent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||