Package | Description |
---|---|
org.jaxen |
This package defines the core Jaxen API to the XPath engine.
|
org.jaxen.dom |
Navigation for W3C DOM trees.
|
org.jaxen.dom4j |
Navigation for dom4j trees.
|
org.jaxen.expr |
Interfaces and default implementations for
XPath expression components.
|
org.jaxen.javabean |
Navigation for JavaBeans.
|
org.jaxen.jdom |
Navigation for JDOM trees.
|
org.jaxen.pattern |
Defines XSLT Pattern objects.
|
org.jaxen.xom |
Navigation for XOM trees.
|
Modifier and Type | Class | Description |
---|---|---|
class |
FunctionCallException |
Thrown if an exception occurs during the evaluation of a function.
|
class |
UnresolvableException |
Thrown when a function-call or variable-reference, or any other lookup
based on namespace and local name, couldn't be resolved.
|
class |
UnsupportedAxisException |
Indicates attempt to evaluate an XPath axis that
is unsupported by the current object-model.
|
class |
XPathSyntaxException |
Indicates an error during parsing of an XPath expression.
|
Modifier and Type | Method | Description |
---|---|---|
void |
BaseXPath.addNamespace(java.lang.String prefix,
java.lang.String uri) |
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
void |
XPath.addNamespace(java.lang.String prefix,
java.lang.String uri) |
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
boolean |
BaseXPath.booleanValueOf(java.lang.Object node) |
Retrieve a boolean-value interpretation of this XPath
expression when evaluated against a given context.
|
boolean |
XPath.booleanValueOf(java.lang.Object context) |
Retrieve the boolean value of the first node in document order
returned by this XPath expression when evaluated in
the given context.
|
void |
JaxenHandler.endAbsoluteLocationPath() |
|
void |
JaxenHandler.endAdditiveExpr(int operator) |
|
void |
JaxenHandler.endAndExpr(boolean create) |
|
void |
JaxenHandler.endEqualityExpr(int operator) |
|
void |
JaxenHandler.endFilterExpr() |
|
protected void |
JaxenHandler.endLocationPath() |
|
void |
JaxenHandler.endMultiplicativeExpr(int operator) |
|
void |
JaxenHandler.endOrExpr(boolean create) |
|
void |
JaxenHandler.endPathExpr() |
|
void |
JaxenHandler.endPredicate() |
|
void |
JaxenHandler.endRelationalExpr(int operator) |
|
void |
JaxenHandler.endRelativeLocationPath() |
|
void |
JaxenHandler.endUnaryExpr(int operator) |
|
void |
JaxenHandler.endUnionExpr(boolean create) |
|
void |
JaxenHandler.endXPath() |
|
java.lang.Object |
BaseXPath.evaluate(java.lang.Object context) |
Evaluate this XPath against a given context.
|
java.lang.Object |
XPath.evaluate(java.lang.Object context) |
Evaluate this XPath against the given context.
|
void |
JaxenHandler.literal(java.lang.String literal) |
|
void |
JaxenHandler.number(double number) |
|
void |
JaxenHandler.number(int number) |
|
java.lang.Number |
BaseXPath.numberValueOf(java.lang.Object node) |
Retrieve a number-value interpretation of this XPath
expression when evaluated against a given context.
|
java.lang.Number |
XPath.numberValueOf(java.lang.Object context) |
Retrieve the number-value of the first node in document order
returned by this XPath expression when evaluated in
the given context.
|
java.util.List |
BaseXPath.selectNodes(java.lang.Object node) |
Select all nodes that are selected by this XPath
expression.
|
java.util.List |
XPath.selectNodes(java.lang.Object context) |
Select all nodes that are selectable by this XPath
expression.
|
protected java.util.List |
BaseXPath.selectNodesForContext(Context context) |
Select all nodes that match this XPath
expression on the given Context object.
|
java.lang.Object |
BaseXPath.selectSingleNode(java.lang.Object node) |
Select only the first node selected by this XPath
expression.
|
java.lang.Object |
XPath.selectSingleNode(java.lang.Object context) |
Return the first node in document order that is selected by this
XPath expression.
|
protected java.lang.Object |
BaseXPath.selectSingleNodeForContext(Context context) |
Return only the first node that is selected by this XPath
expression.
|
void |
JaxenHandler.startAbsoluteLocationPath() |
|
void |
JaxenHandler.startAllNodeStep(int axis) |
|
void |
JaxenHandler.startCommentNodeStep(int axis) |
|
void |
JaxenHandler.startFunction(java.lang.String prefix,
java.lang.String functionName) |
|
void |
JaxenHandler.startNameStep(int axis,
java.lang.String prefix,
java.lang.String localName) |
|
void |
JaxenHandler.startProcessingInstructionNodeStep(int axis,
java.lang.String name) |
|
void |
JaxenHandler.startRelativeLocationPath() |
|
void |
JaxenHandler.startTextNodeStep(int axis) |
|
java.lang.String |
BaseXPath.stringValueOf(java.lang.Object node) |
Retrieves the string-value of the result of
evaluating this XPath expression when evaluated
against the specified context.
|
java.lang.String |
XPath.stringValueOf(java.lang.Object context) |
Retrieve a string-value interpretation of this XPath
expression when evaluated against the given context.
|
java.lang.String |
BaseXPath.valueOf(java.lang.Object node) |
Deprecated.
replaced by
BaseXPath.stringValueOf(java.lang.Object) |
java.lang.String |
XPath.valueOf(java.lang.Object context) |
Deprecated.
use
XPath.stringValueOf(Object) instead |
void |
JaxenHandler.variableReference(java.lang.String prefix,
java.lang.String variableName) |
Constructor | Description |
---|---|
BaseXPath(java.lang.String xpathExpr) |
Construct given an XPath expression string.
|
BaseXPath(java.lang.String xpathExpr,
Navigator navigator) |
Construct given an XPath expression string.
|
Constructor | Description |
---|---|
DOMXPath(java.lang.String xpathExpr) |
Create a new
DOMXPath from an XPath expression string. |
Constructor | Description |
---|---|
Dom4jXPath(java.lang.String xpathExpr) |
Construct given an XPath expression string.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List |
PredicateSet.applyPredicate(Predicate predicate,
java.util.List nodes2Filter,
ContextSupport support) |
|
boolean |
DefaultFilterExpr.asBoolean(Context context) |
Deprecated.
Returns true if the current filter matches at least one of the context nodes
|
boolean |
FilterExpr.asBoolean(Context context) |
Evaluates the filter expression on the current context
and returns true if at least one node matches.
|
java.util.List |
DefaultXPathExpr.asList(Context context) |
Deprecated.
|
java.util.List |
XPathExpr.asList(Context context) |
Evaluates the expression and returns a list cintaing the resulting nodes,
or a singleton list containing a
Double , String ,
or Boolean . |
LocationPath |
DefaultXPathFactory.createAbsoluteLocationPath() |
|
LocationPath |
XPathFactory.createAbsoluteLocationPath() |
Create a new empty absolute location path.
|
BinaryExpr |
DefaultXPathFactory.createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator) |
|
BinaryExpr |
XPathFactory.createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator) |
Returns a new XPath additive expression.
|
Step |
DefaultXPathFactory.createAllNodeStep(int axis) |
|
Step |
XPathFactory.createAllNodeStep(int axis) |
Create a step with a node() node-test.
|
BinaryExpr |
DefaultXPathFactory.createAndExpr(Expr lhs,
Expr rhs) |
|
BinaryExpr |
XPathFactory.createAndExpr(Expr lhs,
Expr rhs) |
Returns a new XPath And expression.
|
Step |
DefaultXPathFactory.createCommentNodeStep(int axis) |
|
Step |
XPathFactory.createCommentNodeStep(int axis) |
Create a step with a
comment() node-test. |
BinaryExpr |
DefaultXPathFactory.createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator) |
|
BinaryExpr |
XPathFactory.createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator) |
Returns a new XPath equality expression.
|
FilterExpr |
DefaultXPathFactory.createFilterExpr(Expr expr) |
|
FilterExpr |
XPathFactory.createFilterExpr(Expr expr) |
Returns a new XPath filter expression.
|
FunctionCallExpr |
DefaultXPathFactory.createFunctionCallExpr(java.lang.String prefix,
java.lang.String functionName) |
|
FunctionCallExpr |
XPathFactory.createFunctionCallExpr(java.lang.String prefix,
java.lang.String functionName) |
Create a new function call expression.
|
LiteralExpr |
DefaultXPathFactory.createLiteralExpr(java.lang.String literal) |
|
LiteralExpr |
XPathFactory.createLiteralExpr(java.lang.String literal) |
Create a string literal expression.
|
BinaryExpr |
DefaultXPathFactory.createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator) |
|
BinaryExpr |
XPathFactory.createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator) |
Returns a new XPath multiplicative expression.
|
Step |
DefaultXPathFactory.createNameStep(int axis,
java.lang.String prefix,
java.lang.String localName) |
|
Step |
XPathFactory.createNameStep(int axis,
java.lang.String prefix,
java.lang.String localName) |
Create a step with a named node-test.
|
NumberExpr |
DefaultXPathFactory.createNumberExpr(double number) |
|
NumberExpr |
DefaultXPathFactory.createNumberExpr(int number) |
|
NumberExpr |
XPathFactory.createNumberExpr(double number) |
Create a number expression.
|
NumberExpr |
XPathFactory.createNumberExpr(int number) |
Create a number expression.
|
BinaryExpr |
DefaultXPathFactory.createOrExpr(Expr lhs,
Expr rhs) |
|
BinaryExpr |
XPathFactory.createOrExpr(Expr lhs,
Expr rhs) |
Returns a new XPath Or expression.
|
PathExpr |
DefaultXPathFactory.createPathExpr(FilterExpr filterExpr,
LocationPath locationPath) |
|
PathExpr |
XPathFactory.createPathExpr(FilterExpr filterExpr,
LocationPath locationPath) |
Create a new path expression.
|
Predicate |
DefaultXPathFactory.createPredicate(Expr predicateExpr) |
|
Predicate |
XPathFactory.createPredicate(Expr predicateExpr) |
Create from the supplied expression.
|
PredicateSet |
DefaultXPathFactory.createPredicateSet() |
|
PredicateSet |
XPathFactory.createPredicateSet() |
Create an empty predicate set.
|
Step |
DefaultXPathFactory.createProcessingInstructionNodeStep(int axis,
java.lang.String piName) |
|
Step |
XPathFactory.createProcessingInstructionNodeStep(int axis,
java.lang.String name) |
Create a step with a
processing-instruction() node-test. |
BinaryExpr |
DefaultXPathFactory.createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator) |
|
BinaryExpr |
XPathFactory.createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator) |
Returns a new XPath relational expression.
|
LocationPath |
DefaultXPathFactory.createRelativeLocationPath() |
|
LocationPath |
XPathFactory.createRelativeLocationPath() |
Create a new empty relative location path.
|
Step |
DefaultXPathFactory.createTextNodeStep(int axis) |
|
Step |
XPathFactory.createTextNodeStep(int axis) |
Create a step with a
text() node-test. |
Expr |
DefaultXPathFactory.createUnaryExpr(Expr expr,
int unaryOperator) |
|
Expr |
XPathFactory.createUnaryExpr(Expr expr,
int unaryOperator) |
Returns a new XPath unary expression.
|
UnionExpr |
DefaultXPathFactory.createUnionExpr(Expr lhs,
Expr rhs) |
|
UnionExpr |
XPathFactory.createUnionExpr(Expr lhs,
Expr rhs) |
Returns a new XPath union expression.
|
VariableReferenceExpr |
DefaultXPathFactory.createVariableReferenceExpr(java.lang.String prefix,
java.lang.String variable) |
|
VariableReferenceExpr |
XPathFactory.createVariableReferenceExpr(java.lang.String prefix,
java.lang.String variableName) |
Create a new variable reference expression.
|
XPathExpr |
DefaultXPathFactory.createXPath(Expr rootExpr) |
|
XPathExpr |
XPathFactory.createXPath(Expr rootExpr) |
Create a new
XPathExpr from an Expr . |
java.lang.Object |
DefaultAbsoluteLocationPath.evaluate(Context context) |
Deprecated.
|
java.lang.Object |
DefaultFilterExpr.evaluate(Context context) |
Deprecated.
|
java.lang.Object |
DefaultFunctionCallExpr.evaluate(Context context) |
Deprecated.
|
java.util.List |
DefaultNameStep.evaluate(Context context) |
Deprecated.
Evaluate the context node set to find the new node set.
|
java.util.List |
DefaultStep.evaluate(Context context) |
Deprecated.
|
java.lang.Object |
DefaultUnionExpr.evaluate(Context context) |
Deprecated.
|
java.lang.Object |
Expr.evaluate(Context context) |
Evaluate the expression in the given context, and return the result.
|
java.lang.Object |
Predicate.evaluate(Context context) |
Evaluates this predicate's expression and returns the result.
|
java.util.List |
Step.evaluate(Context context) |
For each node in the given context calls matches() for every node on the
axis, then filters the result by each of the predicates.
|
protected boolean |
PredicateSet.evaluateAsBoolean(java.util.List contextNodeSet,
ContextSupport support) |
Returns true if any of the supplied nodes satisfy
all the predicates in the set.
|
java.util.List |
DefaultFunctionCallExpr.evaluateParams(Context context) |
Deprecated.
|
protected java.util.List |
PredicateSet.evaluatePredicates(java.util.List contextNodeSet,
ContextSupport support) |
Returns all of the supplied nodes that satisfy
all the predicates in the set.
|
protected IterableAxis |
DefaultXPathFactory.getIterableAxis(int axis) |
|
boolean |
DefaultNameStep.matches(java.lang.Object node,
ContextSupport contextSupport) |
Deprecated.
Checks whether the node matches this step.
|
boolean |
Step.matches(java.lang.Object node,
ContextSupport contextSupport) |
Performs the node-test part of evaluating the step for the given node
(which must be on the axis).
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
JavaBeanXPath.evaluate(java.lang.Object node) |
Constructor | Description |
---|---|
JavaBeanXPath(java.lang.String xpathExpr) |
Construct given an XPath expression string.
|
Constructor | Description |
---|---|
JDOMXPath(java.lang.String xpathExpr) |
Construct given an XPath expression string.
|
Modifier and Type | Method | Description |
---|---|---|
protected static LocationPathPattern |
PatternParser.convertDefaultStep(LocationPathPattern path,
DefaultStep step) |
|
protected static Pattern |
PatternParser.convertExpr(Expr expr) |
|
protected static LocationPathPattern |
PatternParser.convertExpr(LocationPath locationPath) |
|
protected static LocationPathPattern |
PatternParser.convertStep(LocationPathPattern path,
Step step) |
|
void |
PatternHandler.endAbsoluteLocationPath() |
|
protected void |
PatternHandler.endLocationPath() |
|
void |
PatternHandler.endRelativeLocationPath() |
|
void |
PatternHandler.endUnionExpr(boolean create) |
|
boolean |
LocationPathPattern.matches(java.lang.Object node,
Context context) |
|
abstract boolean |
Pattern.matches(java.lang.Object node,
Context context) |
|
boolean |
UnionPattern.matches(java.lang.Object node,
Context context) |
|
static Pattern |
PatternParser.parse(java.lang.String text) |
|
void |
LocationPathPattern.setNodeTest(NodeTest nodeTest) |
Allows the NodeTest to be set
|
Constructor | Description |
---|---|
XOMXPath(java.lang.String xpathExpr) |
Construct given an XPath expression string.
|
Copyright © 2001–2018 Codehaus. All rights reserved.