|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CMember
org.multijava.mjc.CField
This class represents an exported member of a class (fields)
| Field Summary | |
private CType |
type
|
private JExpression |
value
|
| Fields inherited from class org.multijava.mjc.CMember |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
CField(MemberAccess access,
String ident,
CType type,
boolean deprecated)
Constructs a field export |
|
| Method Summary | |
protected FieldInfo |
createFieldInfo(long modifiers,
String name,
String type,
String generictype,
Object value,
boolean deprecated,
boolean synthetic)
Creates a new field info object. |
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 |
CField |
getField()
Returns the target of this accessor method. |
CType |
getType()
|
JExpression |
getValue()
|
boolean |
isFieldStatic()
This method does the same thing as isStatic(). |
void |
setType(CType type)
|
void |
setValue(JExpression value)
|
| Methods inherited from class org.multijava.mjc.CMember |
access, addModifiers, deprecated, getCClass, getCCompilationUnit, getIdent, getJavaName, getMethod, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, hasProtectedVisibilityIn, host, ident, isAccessibleFrom, isDeclaredNonNull, isDeprecated, isFinal, isLocalTo, isPrivate, isProtected, isPublic, isStatic, modifiers, owner, qualifiedName, setModifiers |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.multijava.mjc.CFieldAccessor |
ident, isFinal, isStatic, owner |
| Field Detail |
private CType type
private JExpression value
| Constructor Detail |
public CField(MemberAccess access,
String ident,
CType type,
boolean deprecated)
access - contains the info used to determine accessibility of this fieldident - the name of this fieldtype - the type of this fielddeprecated - is this field deprecated ?| Method Detail |
public CField getField()
CFieldAccessor
getField in interface CFieldAccessorgetField in class CMemberpublic CType getType()
getType in interface CFieldAccessorpublic void setType(CType type)
setType in interface CFieldAccessorpublic void setValue(JExpression value)
value - the value known at third passpublic JExpression getValue()
getValue in interface CFieldAccessorpublic boolean isFieldStatic()
isFieldStatic in interface CFieldAccessorpublic void genLoad(CodeSequence code)
genLoad in interface CFieldAccessorcode - the code listpublic void genStore(CodeSequence code)
genStore in interface CFieldAccessorcode - the code listpublic FieldInfo genFieldInfo()
protected FieldInfo createFieldInfo(long modifiers,
String name,
String type,
String generictype,
Object value,
boolean deprecated,
boolean synthetic)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||