Uses of Class
org.apache.commons.jxpath.ri.compiler.Expression
-
Packages that use Expression Package Description org.apache.commons.jxpath.ri Reference implementation of JXPath.org.apache.commons.jxpath.ri.axes Implementations of EvalContext used for different XPath axes (child::, parent:: etc).org.apache.commons.jxpath.ri.compiler XPath parse tree. -
-
Uses of Expression in org.apache.commons.jxpath.ri
Fields in org.apache.commons.jxpath.ri declared as Expression Modifier and Type Field Description private ExpressionJXPathCompiledExpression. expressionMethods in org.apache.commons.jxpath.ri that return Expression Modifier and Type Method Description private ExpressionJXPathContextReferenceImpl. compileExpression(java.lang.String xpath)Compile the given expression.protected ExpressionJXPathCompiledExpression. getExpression()Get the compiled expression.Methods in org.apache.commons.jxpath.ri with parameters of type Expression Modifier and Type Method Description private voidJXPathContextReferenceImpl. checkSimplePath(Expression expr)Checks if the path follows the JXPath restrictions on the type of path that can be passed to create...PointerJXPathContextReferenceImpl. createPath(java.lang.String xpath, Expression expr)Create the given path.PointerJXPathContextReferenceImpl. createPathAndSetValue(java.lang.String xpath, Expression expr, java.lang.Object value)Create the given path setting its value to value.PointerJXPathContextReferenceImpl. getPointer(java.lang.String xpath, Expression expr)Get a pointer to the specified path/expression.java.lang.ObjectJXPathContextReferenceImpl. getValue(java.lang.String xpath, Expression expr)Get the value indicated.java.lang.ObjectJXPathContextReferenceImpl. getValue(java.lang.String xpath, Expression expr, java.lang.Class requiredType)Get the value indicated.java.util.IteratorJXPathContextReferenceImpl. iterate(java.lang.String xpath, Expression expr)Traverses the xpath and returns a Iterator of all results found for the path.java.util.IteratorJXPathContextReferenceImpl. iteratePointers(java.lang.String xpath, Expression expr)Traverses the xpath and returns an Iterator of Pointers.voidJXPathContextReferenceImpl. removeAll(java.lang.String xpath, Expression expr)Remove all matching nodes.voidJXPathContextReferenceImpl. removePath(java.lang.String xpath, Expression expr)Remove the specified path.voidJXPathContextReferenceImpl. setValue(java.lang.String xpath, Expression expr, java.lang.Object value)Set the value of xpath to value.private PointerJXPathContextReferenceImpl. setValue(java.lang.String xpath, Expression expr, java.lang.Object value, boolean create)Set the specified value.Constructors in org.apache.commons.jxpath.ri with parameters of type Expression Constructor Description JXPathCompiledExpression(java.lang.String xpath, Expression expression)Create a new JXPathCompiledExpression. -
Uses of Expression in org.apache.commons.jxpath.ri.axes
Fields in org.apache.commons.jxpath.ri.axes declared as Expression Modifier and Type Field Description private ExpressionPredicateContext. expressionprivate ExpressionPredicateContext. nameTestExpressionMethods in org.apache.commons.jxpath.ri.axes with parameters of type Expression Modifier and Type Method Description private static NodePointerSimplePathInterpreter. createNullPointerForPredicates(EvalContext context, NodePointer parent, Step[] steps, int currentStep, Expression[] predicates, int currentPredicate)Creates a "null pointer" that starts with predicates.private static NodePointerSimplePathInterpreter. doPredicate(EvalContext context, NodePointer parent, Step[] steps, int currentStep, Expression[] predicates, int currentPredicate)Evaluates predicates and proceeds with the subsequent steps of the path.private static NodePointerSimplePathInterpreter. doPredicateIndex(EvalContext context, NodePointer parent, Step[] steps, int currentStep, Expression[] predicates, int currentPredicate)Evaluate a subscript predicate: see if the node is a collection and if the index is inside the collection.private static NodePointerSimplePathInterpreter. doPredicateName(EvalContext context, NodePointer parent, Step[] steps, int currentStep, Expression[] predicates, int currentPredicate)Execute a NameAttributeTest predicateprivate static NodePointerSimplePathInterpreter. doPredicatesStandard(EvalContext context, java.util.List parents, Step[] steps, int currentStep, Expression[] predicates, int currentPredicate)Called exclusively for standard InfoSet nodes, e.g.private static intSimplePathInterpreter. indexFromPredicate(EvalContext context, Expression predicate)Extract an integer from a subscript predicate.static NodePointerSimplePathInterpreter. interpretSimpleExpressionPath(EvalContext context, NodePointer root, Expression[] predicates, Step[] steps)Interpret the steps of a simple expression path that starts with the given root, which is the result of evaluation of the root expression of the expression path, applies the given predicates to it and then follows the given steps.private static java.lang.StringSimplePathInterpreter. keyFromPredicate(EvalContext context, Expression predicate)Extracts the string value of the expression from a predicate like [@name=expression].Constructors in org.apache.commons.jxpath.ri.axes with parameters of type Expression Constructor Description PredicateContext(EvalContext parentContext, Expression expression)Create a new PredicateContext. -
Uses of Expression in org.apache.commons.jxpath.ri.compiler
Subclasses of Expression in org.apache.commons.jxpath.ri.compiler Modifier and Type Class Description classConstantA compile tree element containing a constant number or string.classCoreFunctionAn element of the compile tree representing one of built-in functions like "position()" or "number()".classCoreOperationThe common subclass for tree elements representing core operations like "+", "- ", "*" etc.classCoreOperationAddImplementation ofExpressionfor the operation "+".classCoreOperationAndImplementation ofExpressionfor the operation "and".classCoreOperationCompareCommon superclass for the implementations of Expression for the operations "=" and "!=".classCoreOperationDivideImplementation ofExpressionfor the operation "div".classCoreOperationEqualImplementation ofExpressionfor the operation "=".classCoreOperationGreaterThanImplementation ofExpressionfor the operation ">".classCoreOperationGreaterThanOrEqualImplementation ofExpressionfor the operation ">=".classCoreOperationLessThanImplementation ofExpressionfor the operation "<".classCoreOperationLessThanOrEqualImplementation ofExpressionfor the operation "<=".classCoreOperationModImplementation ofExpressionfor the operation "mod".classCoreOperationMultiplyImplementation ofExpressionfor the operation "*".classCoreOperationNegateImplementation ofExpressionfor the operation unary "-".classCoreOperationNotEqualImplementation ofExpressionfor the operation "!=".classCoreOperationOrImplementation ofExpressionfor the operation "or".classCoreOperationRelationalExpressionBase implementation of Expression for the operations ">", ">=", "<", "<=".classCoreOperationSubtractImplementation ofExpressionfor the operation "-".classCoreOperationUnionImplementation ofExpressionfor the operation "|".classExpressionPathAn element of the parse tree that represents an expression path, which is a path that starts with an expression like a function call:getFoo(.) /bar.classExtensionFunctionRepresents an element of the parse tree representing an extension function call.classLocationPathclassNameAttributeTestCaptures thefoo[@name=expr]expression.classOperationclassPathclassVariableReferenceAn element of the compile tree holding a variable reference.Fields in org.apache.commons.jxpath.ri.compiler declared as Expression Modifier and Type Field Description protected Expression[]Operation. argsExpression[] of argumentsprivate ExpressionExpressionPath. expressionprivate Expression[]ExpressionPath. predicatesprivate Expression[]Step. predicatesMethods in org.apache.commons.jxpath.ri.compiler that return Expression Modifier and Type Method Description ExpressionCoreFunction. getArg1()Convenience method to return the first argument.ExpressionCoreFunction. getArg2()Convenience method to return the second argument.ExpressionCoreFunction. getArg3()Convenience method to return the third argument.Expression[]Operation. getArguments()Get the arguments.ExpressionExpressionPath. getExpression()Get the expression.ExpressionNameAttributeTest. getNameTestExpression()Get the name test expression.Expression[]ExpressionPath. getPredicates()Predicates are the expressions in brackets that may follow the root expression of the path.Expression[]Step. getPredicates()Get the predicates.private Expression[]TreeCompiler. toExpressionArray(java.lang.Object[] array)Get an Object[] as an Expression[].Methods in org.apache.commons.jxpath.ri.compiler with parameters of type Expression Modifier and Type Method Description protected booleanPath. areBasicPredicates(Expression[] predicates)Learn whether the elements of the specified array are "basic" predicates.protected booleanCoreOperationCompare. equal(EvalContext context, Expression left, Expression right)Compares two values.private booleanTreeCompiler. isNameAttributeTest(Expression arg)Learn whether arg is a name attribute test.private java.lang.StringCoreOperation. parenthesize(Expression expression, boolean left)Wrap an expression in parens if necessary.Constructors in org.apache.commons.jxpath.ri.compiler with parameters of type Expression Constructor Description CoreFunction(int functionCode, Expression[] args)Create a new CoreFunction.CoreOperation(Expression[] args)Create a new CoreOperation.CoreOperationAdd(Expression[] args)Create a new CoreOperationAdd.CoreOperationAnd(Expression[] args)Create a new CoreOperationAnd.CoreOperationCompare(Expression arg1, Expression arg2)Create a new CoreOperationCompare.CoreOperationCompare(Expression arg1, Expression arg2, boolean invert)Create a new CoreOperationCompare.CoreOperationDivide(Expression arg1, Expression arg2)Create a new CoreOperationDivide.CoreOperationEqual(Expression arg1, Expression arg2)Create a new CoreOperationEqualCoreOperationGreaterThan(Expression arg1, Expression arg2)Create a new CoreOperationGreaterThan.CoreOperationGreaterThanOrEqual(Expression arg1, Expression arg2)Create a new CoreOperationGreaterThanOrEqual.CoreOperationLessThan(Expression arg1, Expression arg2)Create a new CoreOperationLessThan.CoreOperationLessThanOrEqual(Expression arg1, Expression arg2)Create a new CoreOperationLessThanOrEqual.CoreOperationMod(Expression arg1, Expression arg2)Create a new CoreOperationMod.CoreOperationMultiply(Expression arg1, Expression arg2)Create a new CoreOperationMultiply.CoreOperationNegate(Expression arg)Create a new CoreOperationNegate.CoreOperationNotEqual(Expression arg1, Expression arg2)Create a new CoreOperationNotEqual.CoreOperationOr(Expression[] args)Create a new CoreOperationOr.CoreOperationRelationalExpression(Expression[] args)Create a new CoreOperationRelationalExpression.CoreOperationSubtract(Expression arg1, Expression arg2)Create a new CoreOperationSubtract.CoreOperationUnion(Expression[] args)Create a new CoreOperationUnion.ExpressionPath(Expression expression, Expression[] predicates, Step[] steps)Create a new ExpressionPath.ExtensionFunction(QName functionName, Expression[] args)Create a new ExtensionFunction.NameAttributeTest(Expression namePath, Expression nameValue)Create a new NameAttributeTest.Operation(Expression[] args)Create a new Operation.Step(int axis, NodeTest nodeTest, Expression[] predicates)Create a new Step.
-