|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.axes.SimplePathInterpreter
public class SimplePathInterpreter
An evaluation mechanism for simple XPaths, which
is much faster than the usual process. It is only used for
xpaths which have no context-dependent parts, consist entirely of
child::name
and self::node()
steps with
predicates that either integer or have the form [@name = ...]
.
Constructor Summary | |
---|---|
SimplePathInterpreter()
|
Method Summary | |
---|---|
static NodePointer |
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 |
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 |
interpretSimpleLocationPath(EvalContext context,
NodePointer root,
Step[] steps)
Interpret a simple path that starts with the given root and follows the given steps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePathInterpreter()
Method Detail |
---|
public static NodePointer interpretSimpleLocationPath(EvalContext context, NodePointer root, Step[] steps)
context
- evaluation contextroot
- root pointersteps
- path steps
public static NodePointer interpretSimpleExpressionPath(EvalContext context, NodePointer root, Expression[] predicates, Step[] steps)
context
- evaluation contextroot
- root pointerpredicates
- predicates corresponding to steps
steps
- path steps
public static NodePointer createNullPointer(EvalContext context, NodePointer parent, Step[] steps, int currentStep)
context
- evaluation contextparent
- parent pointersteps
- path stepscurrentStep
- step number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |