public class BCField extends BCMember implements VisitAcceptor
Modifier and Type | Method and Description |
---|---|
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.
|
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
getDeclaredAnnotations, getDeclaredRuntimeAnnotations, removeDeclaredAnnotations, removeDeclaredRuntimeAnnotations
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes
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 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 presentadd
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
Copyright © 2002–2019. All rights reserved.