Uses of Class
org.apache.commons.jxpath.ri.EvalContext
Packages that use EvalContext
Package
Description
Reference implementation of JXPath.
Implementations of EvalContext used for different XPath axes (child::, parent:: etc).
XPath parse tree.
-
Uses of EvalContext in org.apache.commons.jxpath.ri
Fields in org.apache.commons.jxpath.ri declared as EvalContextMethods in org.apache.commons.jxpath.ri that return EvalContextModifier and TypeMethodDescriptionJXPathContextReferenceImpl.getAbsoluteRootContext()
Gets the absolute root context.Constructors in org.apache.commons.jxpath.ri with parameters of type EvalContextModifierConstructorDescriptionEvalContext
(EvalContext parentContext) Constructs a new EvalContext. -
Uses of EvalContext in org.apache.commons.jxpath.ri.axes
Subclasses of EvalContext in org.apache.commons.jxpath.ri.axesModifier and TypeClassDescriptionclass
EvalContext that walks the "ancestor::" and "ancestor-or-self::" axes.class
EvalContext that walks the "attribute::" axis.class
EvalContext that can walk the "child::", "following-sibling::" and "preceding-sibling::" axes.class
An EvalContext that walks the "descendant::" and "descendant-or-self::" axes.class
A single-set EvalContext that provides access to the current node of the parent context and nothing else.class
EvalContext that walks the "namespace::" axis.class
A simple context that is based on aNodeSet
.class
EvalContext that walks the "parent::" axis.class
EvalContext that walks the "preceding::" and "following::" axes.class
EvalContext that checks predicates.class
EvalContext that is used to hold the root node for the path traversal.class
EvalContext that returns the current node from the parent context if the test succeeds.class
EvalContext that represents a union between other contexts - result of a union operation like (a | b)Methods in org.apache.commons.jxpath.ri.axes that return EvalContextModifier and TypeMethodDescriptionRootContext.getAbsoluteRootContext()
Gets absolute root contextRootContext.getConstantContext
(Object constant) Gets a context that points to the specified object.RootContext.getVariableContext
(QName variableName) Gets variable context.Methods in org.apache.commons.jxpath.ri.axes with parameters of type EvalContextModifier and TypeMethodDescriptionstatic NodePointer
SimplePathInterpreter.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.static NodePointer
SimplePathInterpreter.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 NodePointer
SimplePathInterpreter.interpretSimpleLocationPath
(EvalContext context, NodePointer root, Step[] steps) Interpret a simple path that starts with the given root and follows the given steps.Constructors in org.apache.commons.jxpath.ri.axes with parameters of type EvalContextModifierConstructorDescriptionAncestorContext
(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest) Constructs a new AncestorContext.AttributeContext
(EvalContext parentContext, NodeTest nodeTest) Constructs a new AttributeContext.ChildContext
(EvalContext parentContext, NodeTest nodeTest, boolean startFromParentLocation, boolean reverse) Constructs a new ChildContext.DescendantContext
(EvalContext parentContext, boolean includeSelf, NodeTest nodeTest) Constructs a new DescendantContext.InitialContext
(EvalContext parentContext) Constructs a new InitialContext.NamespaceContext
(EvalContext parentContext, NodeTest nodeTest) Constructs a new instance.NodeSetContext
(EvalContext parentContext, NodeSet nodeSet) Constructs a new NodeSetContext.ParentContext
(EvalContext parentContext, NodeTest nodeTest) Constructs a new ParentContext.PrecedingOrFollowingContext
(EvalContext parentContext, NodeTest nodeTest, boolean reverse) Constructs a new PrecedingOrFollowingContext.PredicateContext
(EvalContext parentContext, Expression expression) Constructs a new PredicateContext.SelfContext
(EvalContext parentContext, NodeTest nodeTest) Constructs a new SelfContext.UnionContext
(EvalContext parentContext, EvalContext[] contexts) Constructs a new UnionContext. -
Uses of EvalContext in org.apache.commons.jxpath.ri.compiler
Methods in org.apache.commons.jxpath.ri.compiler that return EvalContextModifier and TypeMethodDescriptionprotected EvalContext
Path.buildContextChain
(EvalContext context, int stepCount, boolean createInitialContext) Build a context from a chain of contexts.protected EvalContext
Path.createContextForStep
(EvalContext context, int axis, NodeTest nodeTest) Different axes are serviced by different contexts.protected EvalContext
Path.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 EvalContextModifier and TypeMethodDescriptionprotected EvalContext
Path.buildContextChain
(EvalContext context, int stepCount, boolean createInitialContext) Build a context from a chain of contexts.Constant.compute
(EvalContext context) CoreFunction.compute
(EvalContext context) CoreOperation.compute
(EvalContext context) abstract Object
Expression.compute
(EvalContext context) Evaluates the expression.ExpressionPath.compute
(EvalContext context) ExtensionFunction.compute
(EvalContext context) LocationPath.compute
(EvalContext context) VariableReference.compute
(EvalContext context) Constant.computeValue
(EvalContext context) CoreFunction.computeValue
(EvalContext context) abstract Object
CoreOperation.computeValue
(EvalContext context) CoreOperationAdd.computeValue
(EvalContext context) CoreOperationAnd.computeValue
(EvalContext context) CoreOperationCompare.computeValue
(EvalContext context) CoreOperationDivide.computeValue
(EvalContext context) CoreOperationMod.computeValue
(EvalContext context) CoreOperationMultiply.computeValue
(EvalContext context) CoreOperationNegate.computeValue
(EvalContext context) CoreOperationOr.computeValue
(EvalContext context) final Object
CoreOperationRelationalExpression.computeValue
(EvalContext context) CoreOperationSubtract.computeValue
(EvalContext context) CoreOperationUnion.computeValue
(EvalContext context) abstract Object
Expression.computeValue
(EvalContext context) Evaluates the expression.ExpressionPath.computeValue
(EvalContext context) ExtensionFunction.computeValue
(EvalContext context) LocationPath.computeValue
(EvalContext context) VariableReference.computeValue
(EvalContext context) Returns the value of the variable.protected EvalContext
Path.createContextForStep
(EvalContext context, int axis, NodeTest nodeTest) Different axes are serviced by different contexts.protected boolean
CoreOperationCompare.equal
(EvalContext context, Expression left, Expression right) Compares two values.protected EvalContext
Path.evalSteps
(EvalContext context) Given a root context, walks a path therefrom and builds a context that contains all nodes matching the path.protected Object
ExpressionPath.expressionPath
(EvalContext evalContext, boolean firstMatch) Walks an expression path (a path that starts with an expression)protected Object
CoreFunction.functionBoolean
(EvalContext context) boolean() implementation.protected Object
CoreFunction.functionCeiling
(EvalContext context) ceiling() implementation.protected Object
CoreFunction.functionConcat
(EvalContext context) concat() implementation.protected Object
CoreFunction.functionContains
(EvalContext context) contains() implementation.protected Object
CoreFunction.functionCount
(EvalContext context) count() implementation.protected Object
CoreFunction.functionEndsWith
(EvalContext context) ends-with() implementation.protected Object
CoreFunction.functionFalse
(EvalContext context) false() implementation.protected Object
CoreFunction.functionFloor
(EvalContext context) floor() implementation.protected Object
CoreFunction.functionID
(EvalContext context) id() implementation.protected Object
CoreFunction.functionKey
(EvalContext context) key() implementation.protected Object
CoreFunction.functionLang
(EvalContext context) lang() implementation.protected Object
CoreFunction.functionLast
(EvalContext context) last() implementation.protected Object
CoreFunction.functionLocalName
(EvalContext context) local-name() implementation.protected Object
CoreFunction.functionName
(EvalContext context) name() implementation.protected Object
CoreFunction.functionNamespaceURI
(EvalContext context) namespace-uri() implementation.protected Object
CoreFunction.functionNormalizeSpace
(EvalContext context) normalize-space() implementation.protected Object
CoreFunction.functionNot
(EvalContext context) not() implementation.protected Object
CoreFunction.functionNull
(EvalContext context) null() implementation.protected Object
CoreFunction.functionNumber
(EvalContext context) number() implementation.protected Object
CoreFunction.functionPosition
(EvalContext context) position() implementation.protected Object
CoreFunction.functionRound
(EvalContext context) round() implementation.protected Object
CoreFunction.functionStartsWith
(EvalContext context) starts-with() implementation.protected Object
CoreFunction.functionString
(EvalContext context) string() implementation.protected Object
CoreFunction.functionStringLength
(EvalContext context) string-length() implementation.protected Object
CoreFunction.functionSubstring
(EvalContext context) substring() implementation.protected Object
CoreFunction.functionSubstringAfter
(EvalContext context) substring-after() implementation.protected Object
CoreFunction.functionSubstringBefore
(EvalContext context) substring-before() implementation.protected Object
CoreFunction.functionSum
(EvalContext context) sum() implementation.protected Object
CoreFunction.functionTranslate
(EvalContext context) translate() implementation.protected Object
CoreFunction.functionTrue
(EvalContext context) true() implementation.protected Pointer
Path.getSingleNodePointerForSteps
(EvalContext context) Given a root context, walks a path therefrom and finds the pointer to the first element matching the path.Expression.iterate
(EvalContext context) Iterate over the values from the specified context.Expression.iteratePointers
(EvalContext context) Iterate over the pointers from the specified context.protected Pointer
Path.searchForPath
(EvalContext context) The idea here is to return a NullPointer rather than null if that's at all possible.