|
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
org.multijava.mjc.CSourceField
org.jmlspecs.checker.JmlSourceField
A class for representing an exported field of a class.
This class provides JML-specific handling of fields by overriding
several inherited methods. For example, the visibility observer
methods such as isPublic, isProtected, and
isPrivate now consider spec_public-ness and
spec_protected-ness too.
| Field Summary | |
private JmlMemberDeclaration |
fieldAST
|
| Fields inherited from class org.multijava.mjc.CSourceField |
initialized |
| Fields inherited from class org.multijava.mjc.CField |
|
| 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 |
| Fields inherited from interface org.multijava.mjc.Constants |
ACC_PURE, AMID_JAVA_MATH, AMID_MAX, AMID_SAFE_MATH, CMP_VERSION, JAV_ASSERTION_ERROR, JAV_CLASS, JAV_CLASSLOADER, JAV_CLASSNOTFOUND_EXCEPTION, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_NOCLASSDEFFOUND_ERROR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RMJ_RUNTIME_EXCEPTION, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_SERIALIZABLE, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_SUPER, JAV_THIS, JAV_THROWABLE, MJ_ANCHOR, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LAND, OPE_LE, OPE_LNOT, OPE_LOR, 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_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_MAX, TID_SHORT, TID_VOID, UNIV_ARRAY_TMP, UNIV_TMP |
| Constructor Summary | |
JmlSourceField(JmlMemberAccess access,
String ident,
CType type,
boolean deprecated)
Constructs a field export |
|
| Method Summary | |
protected FieldInfo |
createFieldInfo(int modifiers,
String name,
String type,
Object value,
boolean deprecated,
boolean synthetic)
Creates a new field info object. |
JmlMemberDeclaration |
getAST()
Returns the AST for this field. |
JmlSourceField |
getMostRefined()
Returns the most refined declaration AST for this field. |
boolean |
inJavaFile()
Returns true if this member is declared in a '.java' file. |
boolean |
isDataGroup()
Returns true if this member has an associated data group. |
boolean |
isDefinitelyAssigned()
|
boolean |
isEffectivelyModel()
Returns true iff this field should be treated as a model field; the field itself is defined as model (or ghost) or it is defined in a model class or interface. |
boolean |
isGhost()
Returns true iff this field is explicitly declared as ghost. |
boolean |
isLocalTo(CMemberHost from)
Indicates whether the declaration of this member is local to the given host. |
boolean |
isModel()
Returns true iff this field is explicitly declared as model. |
JmlMemberAccess |
jmlAccess()
|
void |
setAST(JmlMemberDeclaration fieldAST)
Sets the AST for this field. |
| Methods inherited from class org.multijava.mjc.CSourceField |
index, initializedUnlessFinalInstance, isUsed, setIndex, setUsed, toString |
| Methods inherited from class org.multijava.mjc.CField |
createFieldInfo, genFieldInfo, genLoad, genStore, getField, getType, getValue, isFieldStatic, setType, setValue |
| Methods inherited from class org.multijava.mjc.CMember |
access, deprecated, getCClass, getCCompilationUnit, getIdent, getJavaName, getMethod, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, hasProtectedVisibilityIn, host, ident, isAccessibleFrom, isDeprecated, isFinal, 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, wait, wait, wait |
| Methods inherited from interface org.multijava.mjc.VariableDescriptor |
ident, isFinal |
| Methods inherited from interface org.multijava.mjc.CFieldAccessor |
ident, isFinal, isStatic, owner |
| Field Detail |
private JmlMemberDeclaration fieldAST
| Constructor Detail |
public JmlSourceField(JmlMemberAccess access,
String ident,
CType type,
boolean deprecated)
access - contains the info used to determine visibility of this fieldident - the name of this fieldtype - the type of this fielddeprecated - is this field deprecated| Method Detail |
public boolean isDataGroup()
public boolean isDefinitelyAssigned()
isDefinitelyAssigned in class CSourceFieldpublic boolean inJavaFile()
public boolean isEffectivelyModel()
isEffectivelyModel in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isModel()
isModel in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isGhost()
isGhost in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isLocalTo(CMemberHost from)
CMember
isLocalTo in class CMemberpublic void setAST(JmlMemberDeclaration fieldAST)
public JmlMemberDeclaration getAST()
public JmlSourceField getMostRefined()
public JmlMemberAccess jmlAccess()
protected FieldInfo createFieldInfo(int modifiers,
String name,
String type,
Object value,
boolean deprecated,
boolean synthetic)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||