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.expr |
Interfaces and default implementations for
XPath expression components.
|
org.jaxen.javabean |
Navigation for JavaBeans.
|
Modifier and Type | Class and 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 and Description |
---|---|
void |
BaseXPath.addNamespace(String prefix,
String uri)
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
void |
XPath.addNamespace(String prefix,
String uri)
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
boolean |
BaseXPath.booleanValueOf(Object node)
Retrieve a boolean-value interpretation of this XPath
expression when evaluated against a given context.
|
boolean |
XPath.booleanValueOf(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() |
Object |
BaseXPath.evaluate(Object context)
Evaluate this XPath against a given context.
|
Object |
XPath.evaluate(Object context)
Evaluate this XPath against the given context.
|
void |
JaxenHandler.literal(String literal) |
void |
JaxenHandler.number(double number) |
void |
JaxenHandler.number(int number) |
Number |
BaseXPath.numberValueOf(Object node)
Retrieve a number-value interpretation of this XPath
expression when evaluated against a given context.
|
Number |
XPath.numberValueOf(Object context)
Retrieve the number-value of the first node in document order
returned by this XPath expression when evaluated in
the given context.
|
List |
BaseXPath.selectNodes(Object node)
List all the nodes selected by this XPath
expression.
|
List |
XPath.selectNodes(Object context)
Select all nodes that are selectable by this XPath
expression.
|
protected List |
BaseXPath.selectNodesForContext(Context context)
Select all nodes that match this XPath
expression on the given Context object.
|
Object |
BaseXPath.selectSingleNode(Object node)
Return the first node selected by this XPath
expression.
|
Object |
XPath.selectSingleNode(Object context)
Return the first node in document order that is selected by this
XPath expression.
|
protected 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(String prefix,
String functionName) |
void |
JaxenHandler.startNameStep(int axis,
String prefix,
String localName) |
void |
JaxenHandler.startProcessingInstructionNodeStep(int axis,
String name) |
void |
JaxenHandler.startRelativeLocationPath() |
void |
JaxenHandler.startTextNodeStep(int axis) |
String |
BaseXPath.stringValueOf(Object node)
Retrieves the string-value of the result of
evaluating this XPath expression when evaluated
against the specified context.
|
String |
XPath.stringValueOf(Object context)
Retrieve a string-value interpretation of this XPath
expression when evaluated against the given context.
|
void |
JaxenHandler.variableReference(String prefix,
String variableName) |
Constructor and Description |
---|
BaseXPath(String xpathExpr)
Construct given an XPath expression string.
|
BaseXPath(String xpathExpr,
Navigator navigator)
Construct given an XPath expression string.
|
Constructor and Description |
---|
DOMXPath(String xpathExpr)
Create a new
DOMXPath from an XPath expression string. |
Modifier and Type | Method and Description |
---|---|
List |
PredicateSet.applyPredicate(Predicate predicate,
List nodes2Filter,
ContextSupport support) |
boolean |
DefaultFilterExpr.asBoolean(Context context)
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.
|
List |
XPathExpr.asList(Context context)
Evaluates the expression and returns a list containing 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(String prefix,
String functionName) |
FunctionCallExpr |
XPathFactory.createFunctionCallExpr(String prefix,
String functionName)
Create a new function call expression.
|
LiteralExpr |
DefaultXPathFactory.createLiteralExpr(String literal) |
LiteralExpr |
XPathFactory.createLiteralExpr(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,
String prefix,
String localName) |
Step |
XPathFactory.createNameStep(int axis,
String prefix,
String localName)
Create a step with a named node-test.
|
NumberExpr |
DefaultXPathFactory.createNumberExpr(double number) |
NumberExpr |
XPathFactory.createNumberExpr(double number)
Create a number expression.
|
NumberExpr |
DefaultXPathFactory.createNumberExpr(int number) |
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,
String piName) |
Step |
XPathFactory.createProcessingInstructionNodeStep(int axis,
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(String prefix,
String variable) |
VariableReferenceExpr |
XPathFactory.createVariableReferenceExpr(String prefix,
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 . |
Object |
DefaultFilterExpr.evaluate(Context context) |
List |
DefaultStep.evaluate(Context context) |
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.
|
Object |
Expr.evaluate(Context context)
Evaluate the expression in the given context, and return the result.
|
Object |
Predicate.evaluate(Context context)
Evaluates this predicate's expression and returns the result.
|
List |
DefaultNameStep.evaluate(Context context)
Evaluate the context node set to find the new node set.
|
protected boolean |
PredicateSet.evaluateAsBoolean(List contextNodeSet,
ContextSupport support)
Returns true if any of the supplied nodes satisfy
all the predicates in the set.
|
protected List |
PredicateSet.evaluatePredicates(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 |
Step.matches(Object node,
ContextSupport contextSupport)
Performs the node-test part of evaluating the step for the given node
(which must be on the axis).
|
boolean |
DefaultNameStep.matches(Object node,
ContextSupport contextSupport)
Checks whether the node matches this step.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaBeanXPath.evaluate(Object node) |
Constructor and Description |
---|
JavaBeanXPath(String xpathExpr)
Construct given an XPath expression string.
|
Copyright 2001–2022 The Jaxen Project. All rights reserved.