|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.Expression
org.jmlspecs.jml4.ast.JmlQuantifiedExpression
public class JmlQuantifiedExpression
Field Summary | |
---|---|
Expression |
body
The body expression. |
LocalDeclaration[] |
boundVariables
The bound variables (as LocalDeclarations). |
JmlQuantifier |
quantifier
The quantifier, which determines (among other things) the type of the expression. |
Expression |
range
The range predicate. |
BlockScope |
scope
The scope. |
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
constant, implicitConversion, resolvedType, statementEnd |
Constructor Summary | |
---|---|
JmlQuantifiedExpression(java.lang.String lexeme,
Expression range,
Expression body,
LocalDeclaration[] boundVariables,
int sourceStart)
Constructs a JmlQuantifiedExpression with the specified parameters. |
Method Summary | |
---|---|
FlowInfo |
analyseCode(BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo)
|
void |
generateCode(BlockScope currentScope,
CodeStream codeStream,
boolean valueRequired)
Every expression is responsible for generating its implicit conversion when necessary. |
java.lang.StringBuffer |
printExpression(int indent,
java.lang.StringBuffer output)
|
Expression |
rangeExprWhenNotSpecified(int quantSourceStart)
Returns a TRUE Expressions AST node that can be used as a range when the range is not explicitly given. |
TypeBinding |
resolveType(BlockScope upperScope)
Resolve the type of this expression in the context of a blockScope |
void |
traverse(ASTVisitor visitor,
BlockScope blockScope)
Traverse an expression in the context of a blockScope |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final JmlQuantifier quantifier
public final LocalDeclaration[] boundVariables
public final Expression range
public final Expression body
public BlockScope scope
Constructor Detail |
---|
public JmlQuantifiedExpression(java.lang.String lexeme, Expression range, Expression body, LocalDeclaration[] boundVariables, int sourceStart)
lexeme
- The lexeme of the quantifier as a String.range
- The range predicate. Null, if none was specified explicitly.body
- The body expression.sourceStart
- The source start marker.Method Detail |
---|
public Expression rangeExprWhenNotSpecified(int quantSourceStart)
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo)
analyseCode
in class Expression
public java.lang.StringBuffer printExpression(int indent, java.lang.StringBuffer output)
printExpression
in class Expression
public TypeBinding resolveType(BlockScope upperScope)
resolveType
in class Expression
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
generateCode
in class Expression
currentScope
- org.eclipse.jdt.internal.compiler.lookup.BlockScopecodeStream
- org.eclipse.jdt.internal.compiler.codegen.CodeStreamvalueRequired
- booleanpublic void traverse(ASTVisitor visitor, BlockScope blockScope)
Expression
traverse
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |