|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object serp.bytecode.Attributes serp.bytecode.Annotated serp.bytecode.BCMember serp.bytecode.BCField
public class BCField
A field of a class.
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 one. |
ConstantValue |
getConstantValue(boolean add)
Return the constant value information for the field. |
Class |
getType()
Return the Class object for the type of this field. |
BCClass |
getTypeBC()
Return the bytecode for the type of this field. |
String |
getTypeName()
Return the name of the type of this field. |
boolean |
isEnum()
Manipulate the field access flags. |
boolean |
isTransient()
Manipulate the field access flags. |
boolean |
isVolatile()
Manipulate the field access flags. |
boolean |
removeConstantValue()
Remove the constant value attribute for the field. |
void |
setEnum(boolean on)
Manipulate the field access flags. |
void |
setTransient(boolean on)
Manipulate the field access flags. |
void |
setType(BCClass type)
Set the type of this field. |
void |
setType(Class type)
Set the type of this field. |
void |
setType(String type)
Set the name of the type of this field. |
void |
setVolatile(boolean on)
Manipulate the field access flags. |
Methods inherited from class serp.bytecode.BCMember |
---|
getAccessFlags, getClassLoader, getDeclarer, getDescriptor, getDescriptorIndex, getName, getNameIndex, getPool, getProject, isDeprecated, isFinal, isPackage, isPrivate, isProtected, isPublic, isStatic, isSynthetic, isValid, makePackage, makePrivate, makeProtected, makePublic, setAccessFlags, setDeprecated, setDescriptor, setDescriptorIndex, setFinal, setName, setNameIndex, setStatic, setSynthetic |
Methods inherited from class serp.bytecode.Annotated |
---|
getDeclaredAnnotations, getDeclaredRuntimeAnnotations, removeDeclaredAnnotations, removeDeclaredRuntimeAnnotations |
Methods inherited from class serp.bytecode.Attributes |
---|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isVolatile()
public void setVolatile(boolean on)
public boolean isTransient()
public void setTransient(boolean on)
public boolean isEnum()
public void setEnum(boolean on)
public String getTypeName()
Class.forName(java.lang.String)
call.
BCMember.getDescriptor()
public Class getType()
Class
object for the type of this field.
public BCClass getTypeBC()
public void setType(String type)
BCMember.setDescriptor(java.lang.String)
public void setType(Class type)
BCMember.setDescriptor(java.lang.String)
public void setType(BCClass type)
BCMember.setDescriptor(java.lang.String)
public ConstantValue getConstantValue(boolean add)
Attributes
interface.
add
- if true, a new constant value attribute will be added
if not already present
add
param is set to falsepublic boolean removeConstantValue()
Attributes
interface.
public void acceptVisit(BCVisitor visit)
VisitAcceptor
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 one.
acceptVisit
in interface VisitAcceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |