|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.jml4.ast.JmlQuantifier
public abstract class JmlQuantifier
Field Summary | |
---|---|
static java.lang.String |
EXISTS
The \exists quantifier lexeme. |
static java.lang.String |
FORALL
The \forall quantifier lexeme. |
java.lang.String |
lexeme
The lexeme of this quantifier. |
static java.lang.String |
MAX
The \max quantifier lexeme. |
static java.lang.String |
MIN
The \min quantifier lexeme. |
static java.lang.String |
NUM_OF
The \num_of quantifier lexeme. |
static java.lang.String |
PRODUCT
The \product quantifier lexeme. |
static java.lang.String |
SUM
The \sum quantifier lexeme. |
TypeBinding |
type
The type of this quantifier (null means the type of the body). |
Method Summary | |
---|---|
static JmlQuantifier |
fromLexeme(java.lang.String lexeme)
Factory method for obtaining quantifiers from quantifier lexemes. |
abstract void |
generateCode(LocalDeclaration[] boundVariables,
Expression range,
Expression body,
BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Generates code for this quantifier. |
TypeBinding |
getFirstLegalType()
|
boolean |
isLegalType(TypeBinding queryType)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FORALL
public static final java.lang.String EXISTS
public static final java.lang.String NUM_OF
public static final java.lang.String MAX
public static final java.lang.String MIN
public static final java.lang.String PRODUCT
public static final java.lang.String SUM
public final java.lang.String lexeme
public final TypeBinding type
Method Detail |
---|
public boolean isLegalType(TypeBinding queryType)
public TypeBinding getFirstLegalType()
public abstract void generateCode(LocalDeclaration[] boundVariables, Expression range, Expression body, BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
boundVariables
- The bound variables.range
- The range.body
- The body.currentScope
- The current scope.codeStream
- The code stream.valueRequired
- The value required flag.public static JmlQuantifier fromLexeme(java.lang.String lexeme)
lexeme
- The lexeme.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |