|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jml4.rac.runtime.JMLRacValue
public class JMLRacValue
A class for denoting JML expressible values for the runtime assertion checker. In addition to regular Java values and objects, this class can represent two special JML values: undefinedness and non-executability. An undefined value denotes the value of an expression that throws an exception during evaluation. Similarly, a non-executable value denotes a non-executable JML expression.
Method Summary | |
---|---|
boolean |
isAngel()
Returns true if this object represents an angelic undefinedness. |
boolean |
isDemon()
Returns true if this object represents a demonic undefinedness. |
static JMLRacValue |
ofBoolean(boolean v)
Returns a new JMLRacValue object that wraps the given boolean value, v . |
static JMLRacValue |
ofInt(int v)
Returns a new JMLRacValue object that wraps the given int value, v . |
static JMLRacValue |
ofNonExecutable()
Returns an instance that denotes a demonic undefinedness. |
static JMLRacValue |
ofObject(java.lang.Object v)
Returns a new JMLRacValue object that wraps the given argument. |
static JMLRacValue |
ofUndefined()
Returns an instance that denotes an angelic undefinedness. |
java.lang.String |
toString()
Returns the string representation of this object. |
java.lang.Object |
value()
Returns the wrapped value of this JMLRacValue object . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static JMLRacValue ofUndefined()
public static JMLRacValue ofNonExecutable()
public static JMLRacValue ofObject(java.lang.Object v)
public static JMLRacValue ofBoolean(boolean v)
v
.
public static JMLRacValue ofInt(int v)
v
.
public java.lang.Object value()
public boolean isAngel()
public boolean isDemon()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |