|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Utils
at.dms.kjc.CMember
at.dms.kjc.CField
public abstract class CField
This class represents an exported member of a class (fields)
Field Summary |
---|
Fields inherited from class at.dms.kjc.CMember |
---|
owner |
Fields inherited from class at.dms.util.Utils |
---|
EMPTY_LIST, getForLoopCallers |
Fields inherited from interface at.dms.kjc.Constants |
---|
CMP_VERSION, JAV_CLASS, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_THIS, JAV_THROWABLE, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LE, OPE_LNOT, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BIT, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_SHORT, TID_VECTOR, TID_VOID, VECTOR_EMPTY |
Constructor Summary | |
---|---|
protected |
CField()
|
|
CField(CClass owner,
int modifiers,
JVariableDefinition variable,
boolean deprecated)
Constructs a field export |
|
CField(CClass owner,
int modifiers,
String ident,
CType type,
boolean deprecated)
Constructs a field export |
Method Summary | |
---|---|
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(CField other)
Clones all fields of this into |
FieldInfo |
genFieldInfo()
Generate the code in a class file |
void |
genLoad(CodeSequence code)
Generates a sequence of bytecodes to load |
void |
genStore(CodeSequence code)
Generates a sequence of bytecodes to load |
Object |
getConstantValue()
Returns the constant value of a constant final field or null. |
CField |
getField()
|
CType |
getType()
|
JExpression |
getValue()
|
void |
setType(CType type)
Set type. |
void |
setValue(JExpression value)
|
String |
toString()
Returns a string representation of this object. |
Methods inherited from class at.dms.kjc.CMember |
---|
deepCloneInto, getCClass, getIdent, getJavaName, getMethod, getModifiers, getOwner, getPrefixName, getQualifiedName, isAccessible, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, setModifiers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CField()
public CField(CClass owner, int modifiers, JVariableDefinition variable, boolean deprecated)
owner
- the owner of this fieldmodifiers
- the modifiers on this fieldvariable
- the variable of this fielddeprecated
- is this field deprecated ?public CField(CClass owner, int modifiers, String ident, CType type, boolean deprecated)
owner
- the owner of this fieldmodifiers
- the modifiers on this fieldident
- the name of this fieldtype
- the type of this fielddeprecated
- is this field deprecated ?Method Detail |
---|
public CField getField()
getField
in class CMember
public CType getType()
public void setType(CType type)
type
- CType to setpublic void setValue(JExpression value)
value
- the value known at third passpublic JExpression getValue()
public String toString()
toString
in class Object
public void genLoad(CodeSequence code)
code
- the code listpublic void genStore(CodeSequence code)
code
- the code listpublic Object getConstantValue()
public FieldInfo genFieldInfo()
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class CMember
protected void deepCloneInto(CField other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |