Uses of Class
org.apache.commons.jxpath.ri.EvalContext
-
Packages that use EvalContext 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 EvalContext in org.apache.commons.jxpath.ri
Fields in org.apache.commons.jxpath.ri declared as EvalContext Modifier and Type Field Description protected EvalContextEvalContext. parentContextparent contextMethods in org.apache.commons.jxpath.ri that return EvalContext Modifier and Type Method Description EvalContextJXPathContextReferenceImpl. getAbsoluteRootContext()Get the absolute root context.private EvalContextJXPathContextReferenceImpl. getEvalContext()Get the evaluation context.Constructors in org.apache.commons.jxpath.ri with parameters of type EvalContext Constructor Description EvalContext(EvalContext parentContext)Create a new EvalContext. -
Uses of EvalContext in org.apache.commons.jxpath.ri.axes
Subclasses of EvalContext in org.apache.commons.jxpath.ri.axes Modifier and Type Class Description classAncestorContextEvalContext that walks the "ancestor::" and "ancestor-or-self::" axes.classAttributeContextEvalContext that walks the "attribute::" axis.classChildContextEvalContext that can walk the "child::", "following-sibling::" and "preceding-sibling::" axes.classDescendantContextAn EvalContext that walks the "descendant::" and "descendant-or-self::" axes.classInitialContextA single-set EvalContext that provides access to the current node of the parent context and nothing else.classNamespaceContextEvalContext that walks the "namespace::" axis.classNodeSetContextA simple context that is based on aNodeSet.classParentContextEvalContext that walks the "parent::" axis.classPrecedingOrFollowingContextEvalContext that walks the "preceding::" and "following::" axes.classPredicateContextEvalContext that checks predicates.classRootContextEvalContext that is used to hold the root node for the path traversal.classSelfContextEvalContext that returns the current node from the parent context if the test succeeds.classUnionContextEvalContext that represents a union between other contexts - result of a union operation like (a | b)Fields in org.apache.commons.jxpath.ri.axes declared as EvalContext Modifier and Type Field Description private EvalContext[]UnionContext. contextsMethods in org.apache.commons.jxpath.ri.axes that return EvalContext Modifier and Type Method Description EvalContextRootContext. getAbsoluteRootContext()Get absolute root contextEvalContextRootContext. getConstantContext(java.lang.Object constant)Get a context that points to the specified object.EvalContextRootContext. getVariableContext(QName variableName)Get variable context.Methods in org.apache.commons.jxpath.ri.axes with parameters of type EvalContext Modifier and Type Method Description static NodePointerSimplePathInterpreter. createNullPointer(EvalContext context, NodePointer parent, Step[] steps, int currentStep)Creates a "null pointer" that a) represents the requested path and b) can be used for creation of missing nodes in the path.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 NodePointerSimplePathInterpreter. doStep(EvalContext context, NodePointer parent, Step[] steps, int currentStep)Recursive evaluation of a path.private static NodePointerSimplePathInterpreter. doStepNoPredicatesPropertyOwner(EvalContext context, PropertyOwnerPointer parentPointer, Step[] steps, int currentStep)We have a step that starts with a property owner (bean, map, etc) and has no predicates.private static NodePointerSimplePathInterpreter. doStepNoPredicatesStandard(EvalContext context, NodePointer parentPointer, Step[] steps, int currentStep)A path that starts with a standard InfoSet node (e.g.private static NodePointerSimplePathInterpreter. doStepPredicatesPropertyOwner(EvalContext context, PropertyOwnerPointer parentPointer, Step[] steps, int currentStep)A path that starts with a property owner.private static NodePointerSimplePathInterpreter. doStepPredicatesStandard(EvalContext context, NodePointer parent, Step[] steps, int currentStep)A path that starts with a standard InfoSet node, e.g.private static NodeIteratorSimplePathInterpreter. getNodeIterator(EvalContext context, NodePointer pointer, Step step)Get a NodeIterator.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.static NodePointerSimplePathInterpreter. interpretSimpleLocationPath(EvalContext context, NodePointer root, Step[] steps)Interpret a simple path that starts with the given root and 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 EvalContext Constructor Description AncestorContext(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest)Create a new AncestorContext.AttributeContext(EvalContext parentContext, NodeTest nodeTest)Create a new AttributeContext.ChildContext(EvalContext parentContext, NodeTest nodeTest, boolean startFromParentLocation, boolean reverse)Create a new ChildContext.DescendantContext(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest)Create a new DescendantContext.InitialContext(EvalContext parentContext)Create a new InitialContext.NamespaceContext(EvalContext parentContext, NodeTest nodeTest)NodeSetContext(EvalContext parentContext, NodeSet nodeSet)Create a new NodeSetContext.ParentContext(EvalContext parentContext, NodeTest nodeTest)Create a new ParentContext.PrecedingOrFollowingContext(EvalContext parentContext, NodeTest nodeTest, boolean reverse)Create a new PrecedingOrFollowingContext.PredicateContext(EvalContext parentContext, Expression expression)Create a new PredicateContext.SelfContext(EvalContext parentContext, NodeTest nodeTest)Create a new SelfContext.UnionContext(EvalContext parentContext, EvalContext[] contexts)Create a new UnionContext. -
Uses of EvalContext in org.apache.commons.jxpath.ri.compiler
Methods in org.apache.commons.jxpath.ri.compiler that return EvalContext Modifier and Type Method Description protected EvalContextPath. buildContextChain(EvalContext context, int stepCount, boolean createInitialContext)Build a context from a chain of contexts.protected EvalContextPath. createContextForStep(EvalContext context, int axis, NodeTest nodeTest)Different axes are serviced by different contexts.protected EvalContextPath. evalSteps(EvalContext context)Given a root context, walks a path therefrom and builds a context that contains all nodes matching the path.Methods in org.apache.commons.jxpath.ri.compiler with parameters of type EvalContext Modifier and Type Method Description protected EvalContextPath. buildContextChain(EvalContext context, int stepCount, boolean createInitialContext)Build a context from a chain of contexts.java.lang.ObjectConstant. compute(EvalContext context)java.lang.ObjectCoreFunction. compute(EvalContext context)java.lang.ObjectCoreOperation. compute(EvalContext context)abstract java.lang.ObjectExpression. compute(EvalContext context)Evaluates the expression.java.lang.ObjectExpressionPath. compute(EvalContext context)java.lang.ObjectExtensionFunction. compute(EvalContext context)java.lang.ObjectLocationPath. compute(EvalContext context)java.lang.ObjectVariableReference. compute(EvalContext context)java.lang.ObjectConstant. computeValue(EvalContext context)java.lang.ObjectCoreFunction. computeValue(EvalContext context)abstract java.lang.ObjectCoreOperation. computeValue(EvalContext context)java.lang.ObjectCoreOperationAdd. computeValue(EvalContext context)java.lang.ObjectCoreOperationAnd. computeValue(EvalContext context)java.lang.ObjectCoreOperationCompare. computeValue(EvalContext context)java.lang.ObjectCoreOperationDivide. computeValue(EvalContext context)java.lang.ObjectCoreOperationMod. computeValue(EvalContext context)java.lang.ObjectCoreOperationMultiply. computeValue(EvalContext context)java.lang.ObjectCoreOperationNegate. computeValue(EvalContext context)java.lang.ObjectCoreOperationOr. computeValue(EvalContext context)java.lang.ObjectCoreOperationRelationalExpression. computeValue(EvalContext context)java.lang.ObjectCoreOperationSubtract. computeValue(EvalContext context)java.lang.ObjectCoreOperationUnion. computeValue(EvalContext context)abstract java.lang.ObjectExpression. computeValue(EvalContext context)Evaluates the expression.java.lang.ObjectExpressionPath. computeValue(EvalContext context)java.lang.ObjectExtensionFunction. computeValue(EvalContext context)java.lang.ObjectLocationPath. computeValue(EvalContext context)java.lang.ObjectVariableReference. computeValue(EvalContext context)Returns the value of the variable.protected EvalContextPath. createContextForStep(EvalContext context, int axis, NodeTest nodeTest)Different axes are serviced by different contexts.protected booleanCoreOperationCompare. equal(EvalContext context, Expression left, Expression right)Compares two values.protected EvalContextPath. evalSteps(EvalContext context)Given a root context, walks a path therefrom and builds a context that contains all nodes matching the path.protected java.lang.ObjectExpressionPath. expressionPath(EvalContext evalContext, boolean firstMatch)Walks an expression path (a path that starts with an expression)protected java.lang.ObjectCoreFunction. functionBoolean(EvalContext context)boolean() implementation.protected java.lang.ObjectCoreFunction. functionCeiling(EvalContext context)ceiling() implementation.protected java.lang.ObjectCoreFunction. functionConcat(EvalContext context)concat() implementation.protected java.lang.ObjectCoreFunction. functionContains(EvalContext context)contains() implementation.protected java.lang.ObjectCoreFunction. functionCount(EvalContext context)count() implementation.protected java.lang.ObjectCoreFunction. functionFalse(EvalContext context)false() implementation.protected java.lang.ObjectCoreFunction. functionFloor(EvalContext context)floor() implementation.private java.lang.ObjectCoreFunction. functionFormatNumber(EvalContext context)format-number() implementation.protected java.lang.ObjectCoreFunction. functionID(EvalContext context)id() implementation.protected java.lang.ObjectCoreFunction. functionKey(EvalContext context)key() implementation.protected java.lang.ObjectCoreFunction. functionLang(EvalContext context)lang() implementation.protected java.lang.ObjectCoreFunction. functionLast(EvalContext context)last() implementation.protected java.lang.ObjectCoreFunction. functionLocalName(EvalContext context)local-name() implementation.protected java.lang.ObjectCoreFunction. functionName(EvalContext context)name() implementation.protected java.lang.ObjectCoreFunction. functionNamespaceURI(EvalContext context)namespace-uri() implementation.protected java.lang.ObjectCoreFunction. functionNormalizeSpace(EvalContext context)normalize-space() implementation.protected java.lang.ObjectCoreFunction. functionNot(EvalContext context)not() implementation.protected java.lang.ObjectCoreFunction. functionNull(EvalContext context)null() implementation.protected java.lang.ObjectCoreFunction. functionNumber(EvalContext context)number() implementation.protected java.lang.ObjectCoreFunction. functionPosition(EvalContext context)position() implementation.protected java.lang.ObjectCoreFunction. functionRound(EvalContext context)round() implementation.protected java.lang.ObjectCoreFunction. functionStartsWith(EvalContext context)starts-with() implementation.protected java.lang.ObjectCoreFunction. functionString(EvalContext context)string() implementation.protected java.lang.ObjectCoreFunction. functionStringLength(EvalContext context)string-length() implementation.protected java.lang.ObjectCoreFunction. functionSubstring(EvalContext context)substring() implementation.protected java.lang.ObjectCoreFunction. functionSubstringAfter(EvalContext context)substring-after() implementation.protected java.lang.ObjectCoreFunction. functionSubstringBefore(EvalContext context)substring-before() implementation.protected java.lang.ObjectCoreFunction. functionSum(EvalContext context)sum() implementation.protected java.lang.ObjectCoreFunction. functionTranslate(EvalContext context)translate() implementation.protected java.lang.ObjectCoreFunction. functionTrue(EvalContext context)true() implementation.protected PointerPath. getSingleNodePointerForSteps(EvalContext context)Given a root context, walks a path therefrom and finds the pointer to the first element matching the path.java.util.IteratorExpression. iterate(EvalContext context)Iterate over the values from the specified context.java.util.IteratorExpression. iteratePointers(EvalContext context)Iterate over the pointers from the specified context.protected PointerPath. searchForPath(EvalContext context)The idea here is to return a NullPointer rather than null if that's at all possible.
-