| java.lang.Object org.apache.commons.jxpath.ri.compiler.Expression org.apache.commons.jxpath.ri.compiler.Path
All known Subclasses: org.apache.commons.jxpath.ri.compiler.ExpressionPath, org.apache.commons.jxpath.ri.compiler.LocationPath,
Path | abstract public class Path extends Expression (Code) | | author: Dmitri Plotnikov version: $Revision: 1.14 $ $Date: 2004/04/01 02:55:32 $ |
Constructor Summary | |
public | Path(Step[] steps) |
areBasicPredicates | protected boolean areBasicPredicates(Expression predicates)(Code) | | |
computeContextDependent | public boolean computeContextDependent()(Code) | | |
createContextForStep | protected EvalContext createContextForStep(EvalContext context, int axis, NodeTest nodeTest)(Code) | | Different axes are serviced by different contexts. This method
allocates the right context for the supplied step.
|
evalSteps | protected EvalContext evalSteps(EvalContext context)(Code) | | Given a root context, walks a path therefrom and builds a context
that contains all nodes matching the path.
|
getSingleNodePointerForSteps | protected Pointer getSingleNodePointerForSteps(EvalContext context)(Code) | | Given a root context, walks a path therefrom and finds the
pointer to the first element matching the path.
|
isSimplePath | public boolean isSimplePath()(Code) | | Recognized paths formatted as foo/bar[3]/baz[@name = 'biz']
. The evaluation of such "simple" paths is optimized and
streamlined.
|
isSimpleStep | protected boolean isSimpleStep(Step step)(Code) | | A Step is "simple" if it takes one of these forms: ".", "/foo",
"@bar", "/foo[3]". If there are predicates, they should be
context independent for the step to still be considered simple.
|
|
|