public interface QueryTree extends ExpressionFactory, Node
| Modifier and Type | Method and Description |
|---|---|
void |
addAscendingOrdering(Expression expression)
Adds an ascending ordering expression to this query tree.
|
void |
addDescendingOrdering(Expression expression)
Adds an descending ordering expression to this query tree.
|
void |
declareParameter(java.lang.Class type,
java.lang.String parameter)
Declares a parameter for this query tree.
|
void |
declareVariable(java.lang.Class type,
java.lang.String variable)
Declares a variable for this query tree.
|
java.lang.Class |
getCandidateClass()
Returns the candidate class.
|
java.util.Map |
getDeclaredParameters()
Returns a map containing all declared parameters.
|
java.util.List |
getDeclaredParametersAsList()
Returns a list of all declared parameters.
|
java.util.Map |
getDeclaredVariables()
Returns a map containing all declared variables.
|
Expression |
getFilter()
Returns the filter expression of this query tree.
|
java.util.List |
getOrderingExpressions()
Returns a list of all added ordering expressions.
|
void |
setCandidateClass(java.lang.Class clazz)
Sets the candidate class for this query tree.
|
void |
setFilter(Expression filter)
Sets the filter expression for this query tree.
|
newAnd, newCast, newComplement, newConditionalAnd, newConditionalOr, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newConstant, newDivide, newEquals, newFieldAccess, newFieldAccess, newGreaterThan, newGreaterThanEquals, newIdentifier, newLessThan, newLessThanEquals, newMethodCall, newMinus, newMinus, newNot, newNotEquals, newOr, newPlus, newPlus, newTimesarrive, getChildren, getJavaClass, getObject, getParent, getTokenType, leave, setObject, setParent, walkNextChildvoid setCandidateClass(java.lang.Class clazz)
clazz - the candidate classvoid declareParameter(java.lang.Class type,
java.lang.String parameter)
newIdentifier.type - the instance of a Java class which is the type of the declared parameterparameter - the name of the declared parametervoid declareVariable(java.lang.Class type,
java.lang.String variable)
newIdentifier.type - the instance of a Java class which is the type of the declared variablevariable - the name of the declared variablevoid setFilter(Expression filter)
filter - the filter expressionvoid addAscendingOrdering(Expression expression)
expression - the order expressionvoid addDescendingOrdering(Expression expression)
expression - the order expressionjava.lang.Class getCandidateClass()
java.util.Map getDeclaredParameters()
ParameterDeclaration as values.java.util.Map getDeclaredVariables()
VariableDeclaration as values.java.util.List getDeclaredParametersAsList()
declareParameter.
This list contains instances of
ParametersDeclaration as entries.Expression getFilter()
java.util.List getOrderingExpressions()
addAscendingOrdering and addDescendingOrdering.
This list contains instances of
OrderingExpression as entries.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.