# 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 EvalContext`
  EvalContext.`parentContext`
  Parent context
  Methods in org.apache.commons.jxpath.ri that return EvalContext
  Modifier and Type
  Method
  Description
  `EvalContext`
  JXPathContextReferenceImpl.`getAbsoluteRootContext()`
  Gets the absolute root context.
  Constructors in org.apache.commons.jxpath.ri with parameters of type EvalContext
  Modifier
  Constructor
  Description
  ``
  `EvalContext(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.axes
  Modifier and Type
  Class
  Description
  `class`
  `AncestorContext`
  EvalContext that walks the "ancestor::" and "ancestor-or-self::" axes.
  `class`
  `AttributeContext`
  EvalContext that walks the "attribute::" axis.
  `class`
  `ChildContext`
  EvalContext that can walk the "child::", "following-sibling::" and "preceding-sibling::" axes.
  `class`
  `DescendantContext`
  An EvalContext that walks the "descendant::" and "descendant-or-self::" axes.
  `class`
  `InitialContext`
  A single-set EvalContext that provides access to the current node of the parent context and nothing else.
  `class`
  `NamespaceContext`
  EvalContext that walks the "namespace::" axis.
  `class`
  `NodeSetContext`
  A simple context that is based on a `NodeSet`.
  `class`
  `ParentContext`
  EvalContext that walks the "parent::" axis.
  `class`
  `PrecedingOrFollowingContext`
  EvalContext that walks the "preceding::" and "following::" axes.
  `class`
  `PredicateContext`
  EvalContext that checks predicates.
  `class`
  `RootContext`
  EvalContext that is used to hold the root node for the path traversal.
  `class`
  `SelfContext`
  EvalContext that returns the current node from the parent context if the test succeeds.
  `class`
  `UnionContext`
  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 EvalContext
  Modifier and Type
  Method
  Description
  `EvalContext`
  RootContext.`getAbsoluteRootContext()`
  Gets absolute root context
  `EvalContext`
  RootContext.`getConstantContext(Object constant)`
  Gets a context that points to the specified object.
  `EvalContext`
  RootContext.`getVariableContext(QName variableName)`
  Gets variable context.
  Methods in org.apache.commons.jxpath.ri.axes with parameters of type EvalContext
  Modifier and Type
  Method
  Description
  `static 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 EvalContext
  Modifier
  Constructor
  Description
  ``
  `AncestorContext(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 EvalContext
  Modifier and Type
  Method
  Description
  `protected 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 EvalContext
  Modifier and Type
  Method
  Description
  `protected EvalContext`
  Path.`buildContextChain(EvalContext context, int stepCount, boolean createInitialContext)`
  Build a context from a chain of contexts.
  `Object`
  Constant.`compute(EvalContext context)`
  `Object`
  CoreFunction.`compute(EvalContext context)`
  `Object`
  CoreOperation.`compute(EvalContext context)`
  `abstract Object`
  Expression.`compute(EvalContext context)`
  Evaluates the expression.
  `Object`
  ExpressionPath.`compute(EvalContext context)`
  `Object`
  ExtensionFunction.`compute(EvalContext context)`
  `Object`
  LocationPath.`compute(EvalContext context)`
  `Object`
  VariableReference.`compute(EvalContext context)`
  `Object`
  Constant.`computeValue(EvalContext context)`
  `Object`
  CoreFunction.`computeValue(EvalContext context)`
  `abstract Object`
  CoreOperation.`computeValue(EvalContext context)`
  `Object`
  CoreOperationAdd.`computeValue(EvalContext context)`
  `Object`
  CoreOperationAnd.`computeValue(EvalContext context)`
  `Object`
  CoreOperationCompare.`computeValue(EvalContext context)`
  `Object`
  CoreOperationDivide.`computeValue(EvalContext context)`
  `Object`
  CoreOperationMod.`computeValue(EvalContext context)`
  `Object`
  CoreOperationMultiply.`computeValue(EvalContext context)`
  `Object`
  CoreOperationNegate.`computeValue(EvalContext context)`
  `Object`
  CoreOperationOr.`computeValue(EvalContext context)`
  `final Object`
  CoreOperationRelationalExpression.`computeValue(EvalContext context)`
  `Object`
  CoreOperationSubtract.`computeValue(EvalContext context)`
  `Object`
  CoreOperationUnion.`computeValue(EvalContext context)`
  `abstract Object`
  Expression.`computeValue(EvalContext context)`
  Evaluates the expression.
  `Object`
  ExpressionPath.`computeValue(EvalContext context)`
  `Object`
  ExtensionFunction.`computeValue(EvalContext context)`
  `Object`
  LocationPath.`computeValue(EvalContext context)`
  `Object`
  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.
  `Iterator`
  Expression.`iterate(EvalContext context)`
  Iterate over the values from the specified context.
  `Iterator`
  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.