public class SimplePathInterpreter extends Object
child::name
and self::node()
steps with
predicates that either integer or have the form [@name = ...]
.Constructor and Description |
---|
SimplePathInterpreter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public SimplePathInterpreter()
public static NodePointer interpretSimpleLocationPath(EvalContext context, NodePointer root, Step[] steps)
context
- evaluation contextroot
- root pointersteps
- path stepspublic static NodePointer interpretSimpleExpressionPath(EvalContext context, NodePointer root, Expression[] predicates, Step[] steps)
context
- evaluation contextroot
- root pointerpredicates
- predicates corresponding to steps
steps
- path stepspublic static NodePointer createNullPointer(EvalContext context, NodePointer parent, Step[] steps, int currentStep)
context
- evaluation contextparent
- parent pointersteps
- path stepscurrentStep
- step numberCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.