|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A set of string constants used by RAC implementation classes. The
convention is that a class or interface name starts with
TN_ (e.g., TN_SURROGATE), a method name
prefix starts with MN_ (e.g.,
MN_CHECK_PRE), and a variable name prefix starts with
VN_ (e.g., VN_DELEGEE).
| Field Summary | |
static String |
MN_CHECK_HC
The method name prefix for methods that check history constraints. |
static String |
MN_CHECK_INV
The method name prefix for methods that check invariants. |
static String |
MN_CHECK_POST
The method name prefix for methods that check normal postconditions, often called normal postcondition check methods. |
static String |
MN_CHECK_PRE
The method name prefix for methods that check method preconditions, often called precondition check methods. |
static String |
MN_CHECK_XPOST
The method name prefix for methods that check exceptional postconditions, often called exceptional postcondition check methods. |
static String |
MN_EVAL_OLD
The method name prefix for methods that evaluate, in the pre-state, old expressions appearing in history constraints, for use in the post-state by constraint check methods. |
static String |
MN_GHOST
The variable and method name prefix for the private field and a pair of access methods generated for a ghost variable. |
static String |
MN_INIT
The name of the internal method and the assertion check methods for the constructors. |
static String |
MN_INTERNAL
The method name prefix for renaming original methods into private internal methods. |
static String |
MN_MODEL
The method name prefix for access methods generated for model fields. |
static String |
MN_MODEL_PUBLIC
The method name prefix of access methods generated for model methods. |
static String |
MN_RESTORE_FROM
The method name prefix for the method that restores pre-state values from the private stack field ( VN_STACK_VAR)
for possible recursive method calls. |
static String |
MN_SAVE_TO
The method name prefix for the method that saves pre-state values into the private stack field ( VN_STACK_VAR)
for possible recursive method calls. |
static String |
MN_SPEC
The method name prefix for spec_public and spec_protected access methods generated for spec_public and spec_protected fields. |
static String |
MN_SPEC_PUBLIC
The method name prefix of access methods generated for spec_public and spec_protected methods. |
static String |
TN_JMLCHECKABLE
The type name of a private delegee field ( VN_DELEGEE) of the surrogate class
(TN_SURROGATE) for an interface. |
static String |
TN_JMLSURROGATE
The name of the interface that all surrogate classes have to implement. |
static String |
TN_JMLUNIT_TEST_POSTFIX
The name of test class generated by jmlunit. |
static String |
TN_JMLUNIT_TESTDATA_POSTFIX
The name of test case class generated by jmlunit. |
static String |
TN_JMLVALUE
The name of a special wrapper class that can encapsulate two special values in addition to Java regular values: undefined and non-executable. |
static String |
TN_SURROGATE
The name of the surrogate class for an interface. |
static String |
VN_ASSERTION
|
static String |
VN_CATCH_VAR
The name of variables to generate for use in catch clauses. |
static String |
VN_CLASS_INIT
Name of a static boolean field that indicates whether the initialization of a class or an inteface has been completed. |
static String |
VN_CONSTRUCTED
Name of a boolean variable that indicates whether an instance finishes its construction. |
static String |
VN_DELEGEE
Name of a private delegee field of a surrogate class ( TN_SURROGATE) for an interface. |
static String |
VN_ERROR_SET
The name of a set variable that holds information about all the assertion violations detected so far by the runtime assertion checker. |
static String |
VN_EXCEPTION
Name of the exception parameter. |
static String |
VN_FREE_VAR
The name of local variables to be generated to evaluate varisous JML predicates and expressions. |
static String |
VN_INIT
Name of a non-static boolean field that indicates whether a class instance, during its construction, has finished its initialization. |
static String |
VN_OLD_VAR
The name of a private field generated to store the pre-state value of an old expression in postcoditions and history constraints and an old variable appearing in a method specification. |
static String |
VN_POST_VAR
The name of a local variable generated to store the result of evaluating a specification case of a postcondition |
static String |
VN_PRE_VAR
The name of a private field generated to store the result of precondition evaluation, for reference by the postcondition check methods. |
static String |
VN_PRECOND
|
static String |
VN_RAC_COMPILED
Name of the static final field generated by the runtime assertion checker to indicate that a type is compiled with the runtime asssertion check code. |
static String |
VN_RAC_LEVEL
Name of the static field generated by the runtime assertion checker to indicate the per-class runtime assertion check level. |
static String |
VN_RESULT
The name of a varialbe that holds the return value of the method being assertion checked. |
static String |
VN_STACK_VAR
Name of the stack variable. |
static String |
VN_XRESULT
The name of a variable that holds the exceptional result of the method being assertion checked. |
| 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 |
| Field Detail |
public static final String TN_SURROGATE
TransInterfacepublic static final String TN_JMLSURROGATE
TN_JMLCHECKABLE,
TransInterface,
JMLSurrogatepublic static final String TN_JMLCHECKABLE
VN_DELEGEE) of the surrogate class
(TN_SURROGATE) for an interface. This interface
defines a protocol for the surrogate class and the implementing
class to communicate with each other for the dynamic delegation
of assertion checks. All generated classes are supposed to
implement this interface.
VN_DELEGEE,
TN_SURROGATE,
TN_JMLSURROGATE,
JMLCheckable,
TransInterface,
TransClass,
TransTypepublic static final String TN_JMLVALUE
JMLRacValue,
TransMethod,
TransExpression,
PreValueVarspublic static final String TN_JMLUNIT_TEST_POSTFIX
public static final String TN_JMLUNIT_TESTDATA_POSTFIX
public static final String MN_CHECK_PRE
m declared in a type T, is
MN_CHECK_PRE + m + "$" + T.
PreconditionMethodpublic static final String MN_CHECK_POST
m declared in a type
T, is MN_CHECK_POST + m + "$" + T.
PostconditionMethodpublic static final String MN_CHECK_XPOST
m declared in a type
T, is MN_CHECK_XPOST + m + "$" + T.
PostconditionMethodpublic static final String MN_EVAL_OLD
T, two old expression evaluation methods are
generated, one for static constraints and other for non-static
constraints, whose names are respectively
MN_EVAL_OLD + "$" + T + "$" + instance and
MN_EVAL_OLD + "$" + T + "$" + static.
TransConstraint,
TransType,
TransClass,
TransInterfacepublic static final String MN_CHECK_INV
T, two invariant check methods
are generated, one for static invariants and the other for
non-static invariants, whose names are respectively
MN_CHECK_INV + "$" + T + "$" + static and
MN_CHECK_INV + "$" + T + "$" + instance.
InvariantMethod,
TransType,
TransClass,
TransInterfacepublic static final String MN_CHECK_HC
T, two constraint check
methods are generated, one for static constraints and the other
for non-static constraints, whose names are respectively
MN_CHECK_HC + "$" + T + "$" + static and
MN_CHECK_HC + "$" + T + "$" + instance.
ConstraintMethod,
TransConstraint,
TransType,
TransClass,
TransInterfacepublic static final String MN_INTERNAL
m, of type
T is renamed into a method
MN_INTERNAL + "$" + m + "$" + T.
TransMethodpublic static final String MN_MODEL
v, declared in a
type, T, the name of the generated access method is
MN_MODEL + v + "$" + T.
public static final String MN_SPEC
v, declared in a
type, T, the name of the generated access method
is MN_SPEC + v + "$" + T.
public static final String MN_GHOST
v, a private field of name
MN_GHOST + v is generated; also generated is the
same named getter and setter methods.
public static final String MN_SPEC_PUBLIC
m, declared in a type, T, the
name of the generated access method is MN_SPEC_PUBLIC +
m + "$" + T.
public static final String MN_MODEL_PUBLIC
m, declared in a
type, T, the name of the generated access method
is MN_MODEL_PUBLIC + m + "$" + T.
public static final String MN_SAVE_TO
VN_STACK_VAR)
for possible recursive method calls.
VN_STACK_VAR,
MN_RESTORE_FROMpublic static final String MN_RESTORE_FROM
VN_STACK_VAR)
for possible recursive method calls.
VN_STACK_VAR,
MN_SAVE_TOpublic static final String MN_INIT
internal$$init$
and checkPre$$init$.
public static final String VN_ERROR_SET
public static final String VN_PRECOND
public static final String VN_RESULT
public static final String VN_XRESULT
public static final String VN_FREE_VAR
VarGenerator.freshVar()public static final String VN_CATCH_VAR
VarGenerator.freshCatchVar()public static final String VN_OLD_VAR
VarGenerator.freshOldVar()public static final String VN_PRE_VAR
VarGenerator.freshPreVar()public static final String VN_POST_VAR
VarGenerator.freshPostVar()public static final String VN_ASSERTION
public static final String VN_EXCEPTION
public static final String VN_STACK_VAR
MN_SAVE_TO,
MN_RESTORE_FROM,
VarGenerator.freshStackVar()public static final String VN_INIT
VN_CLASS_INIT,
WrapperMethod.generate(),
TransType.finalizeTranslation()public static final String VN_CLASS_INIT
VN_INIT,
ConstructorWrapper.generate(),
TransType.finalizeTranslation()public static final String VN_DELEGEE
TN_SURROGATE) for an interface. The type of this
field is the interface defined by the constant
TN_JMLCHECKABLE.
TN_JMLCHECKABLE,
TN_SURROGATEpublic static final String VN_RAC_LEVEL
JMLChecker.setLevel(Class, int) and
JMLChecker.getLevel(Class).
JMLChecker.setLevel(Class, int),
JMLChecker.getLevel(Class)public static final String VN_RAC_COMPILED
JMLChecker.isRacCompiled(Class).
JMLChecker.isRACCompiled(Class)public static final String VN_CONSTRUCTED
ConstructorWrapper.generate(),
WrapperMethod.generate(),
TransClass.finalizeTranslation()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||