|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class BCField

java.lang.Objectcom.techtrader.modules.tools.bytecode.BCEntity
com.techtrader.modules.tools.bytecode.BCField
- All Implemented Interfaces:
- Constants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
Representation of a bytecode field of a class; a BCField can only be obtained from a BCClass.
| Field Summary | |
private int |
_access
|
private int |
_descriptorIndex
|
private int |
_nameIndex
|
private BCClass |
_owner
|
| Fields inherited from class com.techtrader.modules.tools.bytecode.BCEntity |
|
| Constructor Summary | |
protected |
BCField(BCClass owner)
Protected constructor. |
| Method Summary | |
void |
acceptVisit(com.techtrader.modules.tools.bytecode.visitor.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. |
java.lang.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. |
com.techtrader.modules.tools.bytecode.lowlevel.ConstantPool |
getPool()
Get the class constant pool; this method delegates to the owning class. |
java.lang.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. |
java.lang.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(java.io.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(java.lang.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(java.lang.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(java.lang.String name)
Set the type name for this field. |
void |
setVolatile(boolean on)
Manipulate the method access flags. |
protected void |
writeData(java.io.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 |
| Field Detail |
_owner
private BCClass _owner
_access
private int _access
_nameIndex
private int _nameIndex
_descriptorIndex
private int _descriptorIndex
| Constructor Detail |
BCField
protected BCField(BCClass owner)
- Protected constructor.
| Method Detail |
invalidate
protected void invalidate()
- Used when this field is deleted from its class.
getOwner
public BCClass getOwner()
- Get the BCClass that owns this field.
getAccessFlags
public int getAccessFlags()
- Return the access flags for this class as a bit array of
ACCESS_XXX constants. This can be used to transfer access flags
between fields without getting/setting each possible access flag.
setAccessFlags
public void setAccessFlags(int access)
- Set the access flags for this class as a bit array of
ACCESS_XXX constants. This can be used to transfer access flags
between fields without getting/setting each possible access flag.
isPublic
public boolean isPublic()
- Manipulate the method access flags.
makePublic
public void makePublic()
- Manipulate the method access flags.
isProtected
public boolean isProtected()
- Manipulate the method access flags.
makeProtected
public void makeProtected()
- Manipulate the method access flags.
isPrivate
public boolean isPrivate()
- Manipulate the method access flags.
makePrivate
public void makePrivate()
- Manipulate the method access flags.
isPackage
public boolean isPackage()
- Manipulate the method access flags.
makePackage
public void makePackage()
- Manipulate the method access flags.
isFinal
public boolean isFinal()
- Manipulate the method access flags.
setFinal
public void setFinal(boolean on)
- Manipulate the method access flags.
isStatic
public boolean isStatic()
- Manipulate the method access flags.
setStatic
public void setStatic(boolean on)
- Manipulate the method access flags.
isVolatile
public boolean isVolatile()
- Manipulate the method access flags.
setVolatile
public void setVolatile(boolean on)
- Manipulate the method access flags.
isTransient
public boolean isTransient()
- Manipulate the method access flags.
setTransient
public void setTransient(boolean on)
- Manipulate the method access flags.
getNameIndex
public int getNameIndex()
- Get the index in the constant pool of the UTF entry holding the name
of this field.
setNameIndex
public void setNameIndex(int index)
- Set the index in the constant pool of the UTF entry holding the name
of this field.
getDescriptorIndex
public int getDescriptorIndex()
- Get the index in the constant pool of the UTF entry holding the
descriptor of this field.
setDescriptorIndex
public void setDescriptorIndex(int index)
- Set the index in the constant pool of the UTF entry holding the
descriptor of this field.
getName
public java.lang.String getName()
- Get the name of this field.
setName
public void setName(java.lang.String name)
- Set the name of this field.
getTypeIndex
public int getTypeIndex()
- Get the index in the constant pool of the UTF entry holding the
descriptor of this field.
setTypeIndex
public void setTypeIndex(int index)
- Set the index in the constant pool of the UTF entry holding the
descriptor of this field.
getTypeName
public java.lang.String getTypeName()
- Get the name of the type of this field.
setTypeName
public void setTypeName(java.lang.String name)
- Set the type name for this field.
getType
public java.lang.Class getType() throws java.lang.ClassNotFoundException
- Get the Class object for the type of this field.
setType
public void setType(java.lang.Class type)
- Set the type of this field.
getPool
public com.techtrader.modules.tools.bytecode.lowlevel.ConstantPool getPool()
- Get the class constant pool; this method delegates to the
owning class.
readData
protected void readData(java.io.DataInput in) throws java.io.IOException
writeData
protected void writeData(java.io.DataOutput out) throws java.io.IOException
acceptVisit
public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
- Description copied from interface:
com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor - 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.
- Specified by:
acceptVisitin interfacecom.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC