|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use EvalContext | |
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 | |
protected EvalContext |
EvalContext.parentContext
|
Methods in org.apache.commons.jxpath.ri that return EvalContext | |
private EvalContext |
JXPathContextReferenceImpl.getEvalContext()
|
EvalContext |
JXPathContextReferenceImpl.getAbsoluteRootContext()
|
Constructors in org.apache.commons.jxpath.ri with parameters of type EvalContext | |
EvalContext(EvalContext parentContext)
|
Uses of EvalContext in org.apache.commons.jxpath.ri.axes |
Subclasses of EvalContext in org.apache.commons.jxpath.ri.axes | |
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) |
Fields in org.apache.commons.jxpath.ri.axes declared as EvalContext | |
private EvalContext[] |
UnionContext.contexts
|
Methods in org.apache.commons.jxpath.ri.axes that return EvalContext | |
EvalContext |
RootContext.getAbsoluteRootContext()
|
EvalContext |
RootContext.getConstantContext(java.lang.Object constant)
|
EvalContext |
RootContext.getVariableContext(QName variableName)
|
Methods in org.apache.commons.jxpath.ri.axes with parameters of type EvalContext | |
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. |
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. |
private static NodePointer |
SimplePathInterpreter.doStep(EvalContext context,
NodePointer parent,
Step[] steps,
int currentStep)
Recursive evaluation of a path. |
private static NodePointer |
SimplePathInterpreter.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 NodePointer |
SimplePathInterpreter.doStepNoPredicatesStandard(EvalContext context,
NodePointer parentPointer,
Step[] steps,
int currentStep)
A path that starts with a standard InfoSet node (e.g. |
private static NodePointer |
SimplePathInterpreter.doStepPredicatesPropertyOwner(EvalContext context,
PropertyOwnerPointer parentPointer,
Step[] steps,
int currentStep)
A path that starts with a property owner. |
private static NodePointer |
SimplePathInterpreter.doStepPredicatesStandard(EvalContext context,
NodePointer parent,
Step[] steps,
int currentStep)
A path that starts with a standard InfoSet node, e.g. |
private static NodePointer |
SimplePathInterpreter.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 NodePointer |
SimplePathInterpreter.doPredicateName(EvalContext context,
NodePointer parent,
Step[] steps,
int currentStep,
Expression[] predicates,
int currentPredicate)
|
private static NodePointer |
SimplePathInterpreter.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 NodePointer |
SimplePathInterpreter.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 int |
SimplePathInterpreter.indexFromPredicate(EvalContext context,
Expression predicate)
Extract an integer from a subscript predicate. |
private static java.lang.String |
SimplePathInterpreter.keyFromPredicate(EvalContext context,
Expression predicate)
Extracts the string value of the expression from a predicate like [@name=expression]. |
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. |
private static NodePointer |
SimplePathInterpreter.createNullPointerForPredicates(EvalContext context,
NodePointer parent,
Step[] steps,
int currentStep,
Expression[] predicates,
int currentPredicate)
Creates a "null pointer" that starts with predicates. |
private static NodeIterator |
SimplePathInterpreter.getNodeIterator(EvalContext context,
NodePointer pointer,
Step step)
|
Constructors in org.apache.commons.jxpath.ri.axes with parameters of type EvalContext | |
UnionContext(EvalContext parentContext,
EvalContext[] contexts)
|
|
SelfContext(EvalContext parentContext,
NodeTest nodeTest)
|
|
PredicateContext(EvalContext parentContext,
Expression expression)
|
|
PrecedingOrFollowingContext(EvalContext parentContext,
NodeTest nodeTest,
boolean reverse)
|
|
ParentContext(EvalContext parentContext,
NodeTest nodeTest)
|
|
NodeSetContext(EvalContext parentContext,
NodeSet nodeSet)
|
|
NamespaceContext(EvalContext parentContext,
NodeTest nodeTest)
|
|
InitialContext(EvalContext parentContext)
|
|
DescendantContext(EvalContext parentContext,
boolean includeSelf,
NodeTest nodeTest)
|
|
ChildContext(EvalContext parentContext,
NodeTest nodeTest,
boolean startFromParentLocation,
boolean reverse)
|
|
AttributeContext(EvalContext parentContext,
NodeTest nodeTest)
|
|
AncestorContext(EvalContext parentContext,
boolean includeSelf,
NodeTest nodeTest)
|
Uses of EvalContext in org.apache.commons.jxpath.ri.compiler |
Methods in org.apache.commons.jxpath.ri.compiler that return EvalContext | |
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. |
private EvalContext |
Path.buildContextChain(EvalContext context,
int stepCount,
boolean createInitialContext)
|
protected EvalContext |
Path.createContextForStep(EvalContext context,
int axis,
NodeTest nodeTest)
Different axes are serviced by different contexts. |
Methods in org.apache.commons.jxpath.ri.compiler with parameters of type EvalContext | |
java.lang.Object |
VariableReference.compute(EvalContext context)
|
java.lang.Object |
VariableReference.computeValue(EvalContext context)
Returns the value of the variable. |
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. |
private Pointer |
Path.searchForPath(EvalContext context)
The idea here is to return a NullPointer rather than null if that's at all possible. |
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. |
private EvalContext |
Path.buildContextChain(EvalContext context,
int stepCount,
boolean createInitialContext)
|
protected EvalContext |
Path.createContextForStep(EvalContext context,
int axis,
NodeTest nodeTest)
Different axes are serviced by different contexts. |
java.lang.Object |
LocationPath.compute(EvalContext context)
|
java.lang.Object |
LocationPath.computeValue(EvalContext context)
|
java.lang.Object |
ExtensionFunction.compute(EvalContext context)
|
java.lang.Object |
ExtensionFunction.computeValue(EvalContext context)
|
java.lang.Object |
ExpressionPath.compute(EvalContext context)
|
java.lang.Object |
ExpressionPath.computeValue(EvalContext context)
|
protected java.lang.Object |
ExpressionPath.expressionPath(EvalContext evalContext,
boolean firstMatch)
Walks an expression path (a path that starts with an expression) |
abstract java.lang.Object |
Expression.computeValue(EvalContext context)
Evaluates the expression. |
abstract java.lang.Object |
Expression.compute(EvalContext context)
|
java.util.Iterator |
Expression.iterate(EvalContext context)
|
java.util.Iterator |
Expression.iteratePointers(EvalContext context)
|
java.lang.Object |
CoreOperationUnion.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationSubtract.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationOr.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationNotEqual.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationNegate.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationMultiply.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationMod.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationLessThanOrEqual.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationLessThan.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationGreaterThanOrEqual.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationGreaterThan.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationEqual.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationDivide.computeValue(EvalContext context)
|
protected boolean |
CoreOperationCompare.equal(EvalContext context,
Expression left,
Expression right)
Compares two values |
java.lang.Object |
CoreOperationAnd.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperationAdd.computeValue(EvalContext context)
|
java.lang.Object |
CoreOperation.compute(EvalContext context)
|
abstract java.lang.Object |
CoreOperation.computeValue(EvalContext context)
|
java.lang.Object |
CoreFunction.compute(EvalContext context)
|
java.lang.Object |
CoreFunction.computeValue(EvalContext context)
Computes a built-in function |
protected java.lang.Object |
CoreFunction.functionLast(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionPosition(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionCount(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionLang(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionID(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionKey(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionNamespaceURI(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionLocalName(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionName(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionString(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionConcat(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionStartsWith(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionContains(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionSubstringBefore(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionSubstringAfter(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionSubstring(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionStringLength(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionNormalizeSpace(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionTranslate(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionBoolean(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionNot(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionTrue(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionFalse(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionNull(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionNumber(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionSum(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionFloor(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionCeiling(EvalContext context)
|
protected java.lang.Object |
CoreFunction.functionRound(EvalContext context)
|
private java.lang.Object |
CoreFunction.functionFormatNumber(EvalContext context)
|
java.lang.Object |
Constant.compute(EvalContext context)
|
java.lang.Object |
Constant.computeValue(EvalContext context)
Returns the value of the constant. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |