|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.techtrader.modules.tools.bytecode.BCEntity | +--com.techtrader.modules.tools.bytecode.BCField
Representation of a bytecode field of a class; a BCField can only be obtained from a BCClass.
Constructor Summary | |
protected |
BCField(BCClass owner)
Protected constructor. |
Method Summary | |
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object. |
int |
getAccessFlags()
Return the access flags for this class as a bit array of ACCESS_XXX constants. |
int |
getDescriptorIndex()
Get the index in the constant pool of the UTF entry holding the descriptor of this field. |
String |
getName()
Get the name of this field. |
int |
getNameIndex()
Get the index in the constant pool of the UTF entry holding the name of this field. |
BCClass |
getOwner()
Get the BCClass that owns this field. |
ConstantPool |
getPool()
Get the class constant pool; this method delegates to the owning class. |
Class |
getType()
Get the Class object for the type of this field. |
int |
getTypeIndex()
Get the index in the constant pool of the UTF entry holding the descriptor of this field. |
String |
getTypeName()
Get the name of the type of this field. |
protected void |
invalidate()
Used when this field is deleted from its class. |
boolean |
isFinal()
Manipulate the method access flags. |
boolean |
isPackage()
Manipulate the method access flags. |
boolean |
isPrivate()
Manipulate the method access flags. |
boolean |
isProtected()
Manipulate the method access flags. |
boolean |
isPublic()
Manipulate the method access flags. |
boolean |
isStatic()
Manipulate the method access flags. |
boolean |
isTransient()
Manipulate the method access flags. |
boolean |
isVolatile()
Manipulate the method access flags. |
void |
makePackage()
Manipulate the method access flags. |
void |
makePrivate()
Manipulate the method access flags. |
void |
makeProtected()
Manipulate the method access flags. |
void |
makePublic()
Manipulate the method access flags. |
protected void |
readData(DataInput in)
|
void |
setAccessFlags(int access)
Set the access flags for this class as a bit array of ACCESS_XXX constants. |
void |
setDescriptorIndex(int index)
Set the index in the constant pool of the UTF entry holding the descriptor of this field. |
void |
setFinal(boolean on)
Manipulate the method access flags. |
void |
setName(String name)
Set the name of this field. |
void |
setNameIndex(int index)
Set the index in the constant pool of the UTF entry holding the name of this field. |
void |
setStatic(boolean on)
Manipulate the method access flags. |
void |
setTransient(boolean on)
Manipulate the method access flags. |
void |
setType(Class type)
Set the type of this field. |
void |
setTypeIndex(int index)
Set the index in the constant pool of the UTF entry holding the descriptor of this field. |
void |
setTypeName(String name)
Set the type name for this field. |
void |
setVolatile(boolean on)
Manipulate the method access flags. |
protected void |
writeData(DataOutput out)
|
Methods inherited from class com.techtrader.modules.tools.bytecode.BCEntity |
addAttribute,
clearAttributes,
getAttribute,
getAttributes,
getAttributes,
importAttribute,
importAttributes,
readAttributes,
removeAttribute,
removeAttribute,
visitAttributes,
writeAttributes |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected BCField(BCClass owner)
Method Detail |
protected void invalidate()
public BCClass getOwner()
public int getAccessFlags()
public void setAccessFlags(int access)
public boolean isPublic()
public void makePublic()
public boolean isProtected()
public void makeProtected()
public boolean isPrivate()
public void makePrivate()
public boolean isPackage()
public void makePackage()
public boolean isFinal()
public void setFinal(boolean on)
public boolean isStatic()
public void setStatic(boolean on)
public boolean isVolatile()
public void setVolatile(boolean on)
public boolean isTransient()
public void setTransient(boolean on)
public int getNameIndex()
public void setNameIndex(int index)
public int getDescriptorIndex()
public void setDescriptorIndex(int index)
public String getName()
public void setName(String name)
public int getTypeIndex()
public void setTypeIndex(int index)
public String getTypeName()
public void setTypeName(String name)
public Class getType() throws ClassNotFoundException
public void setType(Class type)
public ConstantPool getPool()
protected void readData(DataInput in) throws IOException
protected void writeData(DataOutput out) throws IOException
public void acceptVisit(BCVisitor visit)
|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |