Methods Summary |
---|
public int | access()Return the access flags for the field - see VMConstants
return accessFlags;
|
public AttributeVector | attributes()Return the attributes associated with the field
return fieldAttributes;
|
public void | changeName(ConstUtf8 name)Change the name of the field
fieldName = name;
|
public void | changeSignature(ConstUtf8 newSig)Change the type signature of the field
fieldSignature = newSig;
|
public boolean | isTransient()Is the field transient?
return (accessFlags & ACCTransient) != 0;
|
public ConstUtf8 | name()Return the name of the field
return fieldName;
|
void | print(java.io.PrintStream out, int indent)
ClassPrint.spaces(out, indent);
out.print("'" + fieldName.asString() + "'");//NOI18N
out.print(" sig = " + fieldSignature.asString());//NOI18N
out.print(" access_flags = " + Integer.toString(accessFlags));//NOI18N
out.println(" attributes:");//NOI18N
fieldAttributes.print(out, indent+2);
|
static com.sun.jdo.api.persistence.enhancer.classfile.ClassField | read(java.io.DataInputStream data, ConstantPool pool)
ClassField f = null;
int accessFlags = data.readUnsignedShort();
int name_index = data.readUnsignedShort();
int sig_index = data.readUnsignedShort();
AttributeVector fieldAttribs = AttributeVector.readAttributes(data, pool);
f = new ClassField(accessFlags,
(ConstUtf8) pool.constantAt(name_index),
(ConstUtf8) pool.constantAt(sig_index),
fieldAttribs);
return f;
|
public void | setAccess(int newFlags)Update the access flags for the field - see VMConstants
accessFlags = newFlags;
|
public ConstUtf8 | signature()Return the type signature of the field
return fieldSignature;
|
void | write(java.io.DataOutputStream data)
data.writeShort(accessFlags);
data.writeShort(fieldName.getIndex());
data.writeShort(fieldSignature.getIndex());
fieldAttributes.write(data);
|