Package | Description |
---|---|
org.apache.jdo.impl.jdoql.jdoqlc | |
org.apache.jdo.impl.jdoql.tree |
Modifier and Type | Field and Description |
---|---|
protected JDOQLAST |
JDOQLC.filterAST
The AST representing the filter expression.
|
protected JDOQLAST |
JDOQLC.importsAST
The AST representing the import declarations.
|
protected JDOQLAST |
JDOQLC.orderingAST
The AST representing the ordering specification.
|
protected JDOQLAST |
JDOQLC.paramsAST
The AST representing the parameter declarations.
|
protected JDOQLAST |
JDOQLC.queryTree
The complete query tree.
|
protected JDOQLAST |
JDOQLC.varsAST
The AST representing the variable declarations.
|
Modifier and Type | Method and Description |
---|---|
protected JDOQLAST |
Semantic.addCharacterCast(JDOQLAST ast,
org.apache.jdo.model.java.JavaType common)
The query runtime has a problem with binary or relational expressions
having an operand of type char or Character.
|
protected JDOQLAST |
Semantic.analyseBinaryArithmeticExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a binary arithmetic expression +, -, *, /.
|
protected JDOQLAST |
Semantic.analyseCollectionCall(JDOQLAST dot,
JDOQLAST collection,
JDOQLAST method,
JDOQLAST args)
Analyses a call for an object that implements Collection.
|
protected JDOQLAST |
Semantic.analyseComplementExpr(JDOQLAST op,
JDOQLAST argAST)
Analyses a complement expression.
|
protected JDOQLAST |
Semantic.analyseDefinedIdentifier(JDOQLAST ident)
This method analyses an identifier defined in the current scope which
is a field, variable or parameter defined in the symbol table.
|
protected JDOQLAST |
Semantic.analyseDotExpr(JDOQLAST dot,
JDOQLAST expr,
JDOQLAST ident,
JDOQLAST args)
This method analyses a dot expression of the form expr.ident or
expr.ident(params) where expr itself can again be a dot expression.
|
protected JDOQLAST |
Semantic.analyseFieldAccess(JDOQLAST objectExpr,
JDOQLAST ident,
org.apache.jdo.model.java.JavaType classType,
org.apache.jdo.model.java.JavaField javaField) |
protected JDOQLAST |
Semantic.analyseRelationalExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a relational operation.
|
protected JDOQLAST |
Semantic.analyseStaticFieldAccess(JDOQLAST typename,
JDOQLAST ident,
org.apache.jdo.model.java.JavaType classType,
org.apache.jdo.model.java.JavaField javaField) |
protected JDOQLAST |
Semantic.analyseStringCall(JDOQLAST dot,
JDOQLAST string,
JDOQLAST method,
JDOQLAST args)
Analyses a call for an object of type String.
|
protected JDOQLAST |
Semantic.analyseUnaryArithmeticExpr(JDOQLAST op,
JDOQLAST argAST)
Analyses a unary expression + and -
|
protected JDOQLAST |
Optimizer.checkAnd(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check an AND operation (BAND, AND) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkBinaryMinusOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary minus operation (MINUS) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkBinaryPlusOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary plus operation (PLUS) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkCollectionEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a collection equality operation (COLLECTION_EQUAL,
COLLECTION_NOT_EQUAL) for constant operands that could be optimized.
|
protected JDOQLAST |
Optimizer.checkConcatOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a string concatenation operation (CONCAT) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkDivisionOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary division operation (DIV) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a equality operation (EQUAL, NOT_EQUAL) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkLogicalNotOp(JDOQLAST op,
JDOQLAST arg)
Check a logical not operation (LNOT) for a constant operand
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkMultiplicationOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary multiplication operation (STAR) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkObjectEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a object equality operation (OBJECT_EQUAL, OBJECT_NOT_EQUAL)
for constant operands that could be optimized.
|
protected JDOQLAST |
Optimizer.checkOr(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check an OR operation (BOR, OR) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkUnaryMinusOp(JDOQLAST op,
JDOQLAST arg)
Check a unary minus operation (UNARY_MINUS) for a constant operand
that could be optimized.
|
JDOQLAST |
JDOQLASTFactory.create(JDOQLAST tr) |
JDOQLAST |
Semantic.createQueryTree(java.lang.Class candidateClass,
JDOQLAST importsAST,
JDOQLAST paramsAST,
JDOQLAST varsAST,
JDOQLAST orderingAST,
JDOQLAST filterAST)
Combines partial ASTs into one query AST.
|
protected JDOQLAST |
Optimizer.handleValueEqValue(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
This method is called in the case of an equality operation having two
constant operands.
|
JDOQLAST |
JDOQLC.optimize(JDOQLAST tree) |
JDOQLAST |
JDOQLC.optimize(JDOQLAST tree,
ParameterTable paramtab) |
JDOQLAST |
JDOQLC.semanticCheck(ParameterTable paramtab,
VariableTable vartab) |
Modifier and Type | Method and Description |
---|---|
protected JDOQLAST |
Semantic.addCharacterCast(JDOQLAST ast,
org.apache.jdo.model.java.JavaType common)
The query runtime has a problem with binary or relational expressions
having an operand of type char or Character.
|
protected JDOQLAST |
Semantic.analyseBinaryArithmeticExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a binary arithmetic expression +, -, *, /.
|
protected org.apache.jdo.model.java.JavaType |
Semantic.analyseBitwiseExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a bitwise/logical operation (&, |, ^)
|
protected JDOQLAST |
Semantic.analyseCollectionCall(JDOQLAST dot,
JDOQLAST collection,
JDOQLAST method,
JDOQLAST args)
Analyses a call for an object that implements Collection.
|
protected JDOQLAST |
Semantic.analyseComplementExpr(JDOQLAST op,
JDOQLAST argAST)
Analyses a complement expression.
|
protected org.apache.jdo.model.java.JavaType |
Semantic.analyseComplementExprType(JDOQLAST op,
JDOQLAST argAST)
Analyses a complement expression.
|
protected org.apache.jdo.model.java.JavaType |
Semantic.analyseConditionalExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a boolean conditional operation (&&, ||)
|
protected JDOQLAST |
Semantic.analyseDefinedIdentifier(JDOQLAST ident)
This method analyses an identifier defined in the current scope which
is a field, variable or parameter defined in the symbol table.
|
protected JDOQLAST |
Semantic.analyseDotExpr(JDOQLAST dot,
JDOQLAST expr,
JDOQLAST ident,
JDOQLAST args)
This method analyses a dot expression of the form expr.ident or
expr.ident(params) where expr itself can again be a dot expression.
|
protected JDOQLAST |
Semantic.analyseFieldAccess(JDOQLAST objectExpr,
JDOQLAST ident,
org.apache.jdo.model.java.JavaType classType,
org.apache.jdo.model.java.JavaField javaField) |
protected void |
Semantic.analyseOrderingExpression(JDOQLAST expr)
This method analyses the expression of a single ordering definition.
|
protected JDOQLAST |
Semantic.analyseRelationalExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a relational operation.
|
protected JDOQLAST |
Semantic.analyseStaticFieldAccess(JDOQLAST typename,
JDOQLAST ident,
org.apache.jdo.model.java.JavaType classType,
org.apache.jdo.model.java.JavaField javaField) |
protected JDOQLAST |
Semantic.analyseStringCall(JDOQLAST dot,
JDOQLAST string,
JDOQLAST method,
JDOQLAST args)
Analyses a call for an object of type String.
|
protected JDOQLAST |
Semantic.analyseUnaryArithmeticExpr(JDOQLAST op,
JDOQLAST argAST)
Analyses a unary expression + and -
|
protected org.apache.jdo.model.java.JavaType |
Semantic.analyseUnaryArithmeticExprType(JDOQLAST op,
JDOQLAST argAST)
Analyses a unary expression + and -
|
protected JDOQLAST |
Optimizer.checkAnd(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check an AND operation (BAND, AND) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkBinaryMinusOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary minus operation (MINUS) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkBinaryPlusOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary plus operation (PLUS) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkCollectionEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a collection equality operation (COLLECTION_EQUAL,
COLLECTION_NOT_EQUAL) for constant operands that could be optimized.
|
protected JDOQLAST |
Optimizer.checkConcatOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a string concatenation operation (CONCAT) for constant operands
that could be optimized.
|
protected void |
Semantic.checkConstraints(JDOQLAST ast,
java.lang.String dependentVariable,
VariableChecker tab) |
protected void |
Semantic.checkConstraints(JDOQLAST ast,
VariableChecker tab) |
protected void |
Semantic.checkContainsArgs(JDOQLAST collection,
JDOQLAST method,
JDOQLAST args)
Check the arguments of a contains call.
|
protected JDOQLAST |
Optimizer.checkDivisionOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary division operation (DIV) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a equality operation (EQUAL, NOT_EQUAL) for constant operands
that could be optimized.
|
protected void |
Semantic.checkIsEmptyArgs(JDOQLAST args)
Check the arguments of a isEmpty call.
|
protected JDOQLAST |
Optimizer.checkLogicalNotOp(JDOQLAST op,
JDOQLAST arg)
Check a logical not operation (LNOT) for a constant operand
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkMultiplicationOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check a binary multiplication operation (STAR) for constant operands
that could be optimized.
|
protected JDOQLAST |
Optimizer.checkObjectEqualityOp(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
Check a object equality operation (OBJECT_EQUAL, OBJECT_NOT_EQUAL)
for constant operands that could be optimized.
|
protected JDOQLAST |
Optimizer.checkOr(JDOQLAST op,
JDOQLAST left,
JDOQLAST right)
Check an OR operation (BOR, OR) for constant operands
that could be optimized.
|
protected void |
Semantic.checkStringCallArgs(JDOQLAST method,
JDOQLAST args)
Check the arguments of a startWith or endWith call.
|
protected JDOQLAST |
Optimizer.checkUnaryMinusOp(JDOQLAST op,
JDOQLAST arg)
Check a unary minus operation (UNARY_MINUS) for a constant operand
that could be optimized.
|
JDOQLAST |
JDOQLASTFactory.create(JDOQLAST tr) |
JDOQLAST |
Semantic.createQueryTree(java.lang.Class candidateClass,
JDOQLAST importsAST,
JDOQLAST paramsAST,
JDOQLAST varsAST,
JDOQLAST orderingAST,
JDOQLAST filterAST)
Combines partial ASTs into one query AST.
|
protected org.apache.jdo.model.java.JavaField |
Semantic.getCollectionField(JDOQLAST expr) |
protected JDOQLAST |
Optimizer.handleValueEqValue(JDOQLAST op,
JDOQLAST left,
JDOQLAST right,
boolean negate)
This method is called in the case of an equality operation having two
constant operands.
|
protected boolean |
Optimizer.isBooleanValueAST(JDOQLAST ast)
Returns true if the specified AST represents a constant boolean value.
|
void |
VariableChecker.markConstraint(JDOQLAST variable,
JDOQLAST expr)
Mark the specified variable as constaint with the specified expr.
|
void |
VariableChecker.markUsed(JDOQLAST variable,
java.lang.String dependendVar)
Mark the specified variable as used.
|
JDOQLAST |
JDOQLC.optimize(JDOQLAST tree) |
JDOQLAST |
JDOQLC.optimize(JDOQLAST tree,
ParameterTable paramtab) |
void |
JDOQLC.setQueryTree(JDOQLAST queryTree) |
Constructor and Description |
---|
JDOQLAST(JDOQLAST ast) |
Modifier and Type | Class and Description |
---|---|
class |
AndExpr
This node represents a logical and operator.
|
class |
AscendingOrderingExpr
This node represents an operator defining ascendent ordering of instances
returned by a query execution.
|
class |
BinaryExpr
This node represents a binary operator.
|
class |
BooleanLiteralExpr
This node represents a boolean literal such as
true or
false . |
class |
ByteLiteralExpr
This node represents a byte literal.
|
class |
CandidateClassImpl
This node represents the candidate class of a query.
|
class |
CastExpr
This node represents a cast expression.
|
class |
CharLiteralExpr
This node represents a character literal.
|
class |
ComplementExpr
This node represents a bitwise not operator.
|
class |
ConditionalAndExpr
This node represents a conditional and operator.
|
class |
ConditionalOrExpr
This node represents a conditional or operator.
|
class |
ConstantExpr
This node represents a constant expression.
|
class |
ContainsCallExpr
This node represents the method call expression
Collection.contains . |
class |
Decl
This node represents a declaration expression.
|
class |
DescendingOrderingExpr
This node represents an operator defining descendent ordering of instances
returned by a query execution.
|
class |
DivideExpr
This node represents a division operator.
|
class |
DoubleLiteralExpr
This node represents a double literal.
|
class |
EndsWithCallExpr
This node represents the method call expression
String.endsWith . |
class |
EqualsExpr
This node represents an equals operator.
|
class |
Expr
This node represents a general expression.
|
class |
FieldAccessExpr
This node represents a field access expression.
|
class |
FloatLiteralExpr
This node represents a float literal.
|
class |
GreaterThanEqualsExpr
This node represents a greater than equals operator.
|
class |
GreaterThanExpr
This node represents a greater than operator.
|
class |
IdentifierExpr
This node represents an identifier expression.
|
class |
IntLiteralExpr
This node represents a integer literal.
|
class |
IsEmptyCallExpr
This node represents the method call expression
Collection.isEmpty . |
class |
LessThanEqualsExpr
This node represents a less than equals operator.
|
class |
LessThanExpr
This node represents a less than operator.
|
class |
LongLiteralExpr
This node represents a long literal.
|
class |
MethodCallExpr
This node represents a method call expression.
|
class |
MinusExpr
This node represents a binary minus operator.
|
class |
NodeImpl
This is the base class of all nodes.
|
class |
NotEqualsExpr
This node represents a not equals operator.
|
class |
NotExpr
This node represents a logical not operator.
|
class |
OrderingExpr
This node represents an ordering expression.
|
class |
OrExpr
This node represents a logical or operator.
|
class |
ParameterAccessExpr
This node represents a parameter access expression.
|
class |
ParameterDecl
This node represents a parameter declaration.
|
class |
PlusExpr
This node represents a binary plus operator.
|
class |
ShortLiteralExpr
This node represents a short literal.
|
class |
StartsWithCallExpr
This node represents the method call expression
String.startsWith . |
class |
StaticFieldAccessExpr
This node represents a static field access expression.
|
class |
ThisExpr
This node represents an access to
this . |
class |
TimesExpr
This node represents a times operator.
|
class |
Tree
This node represents the root of a query tree.
|
class |
TypeImpl
This node represents a type instance.
|
class |
UnaryExpr
This node represents a unary operator.
|
class |
UnaryMinusExpr
This node represents a unary minus operator.
|
class |
UnaryPlusExpr
This node represents a unary plus operator.
|
class |
VariableAccessExpr
This node represents a variable access expression.
|
class |
VariableDecl
This node represents a variable declaration.
|
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.