| Package | Description |
|---|---|
| org.xmlpull.v1.builder.xpath | |
| org.xmlpull.v1.builder.xpath.jaxen | |
| org.xmlpull.v1.builder.xpath.jaxen.expr | |
| org.xmlpull.v1.builder.xpath.jaxen.pattern |
| Constructor and Description |
|---|
Xb1XPath(String xpathExpr)
Compile XPath expression into an executable form suitable to use with XB1.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionCallException
FunctionCallException is thrown if an exception
occurs during the evaluation of a function. |
class |
UnresolvableException
Used 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 |
XPath.addNamespace(String prefix,
String uri)
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
void |
BaseXPath.addNamespace(String prefix,
String uri)
Add a namespace prefix-to-URI mapping for this XPath
expression.
|
boolean |
XPath.booleanValueOf(Object context)
Retrieve a boolean-value interpretation of this XPath
expression when evaluated against a given context.
|
boolean |
BaseXPath.booleanValueOf(Object node)
Retrieve a boolean-value interpretation of this XPath
expression when evaluated against a given context.
|
void |
JaxenHandler.endAbsoluteLocationPath() |
void |
JaxenHandler.endAdditiveExpr(int operator) |
void |
JaxenHandler.endAllNodeStep() |
void |
JaxenHandler.endAndExpr(boolean create) |
void |
JaxenHandler.endCommentNodeStep() |
void |
JaxenHandler.endEqualityExpr(int operator) |
void |
JaxenHandler.endFilterExpr() |
void |
JaxenHandler.endFunction() |
protected void |
JaxenHandler.endLocationPath() |
void |
JaxenHandler.endMultiplicativeExpr(int operator) |
void |
JaxenHandler.endNameStep() |
void |
JaxenHandler.endOrExpr(boolean create) |
void |
JaxenHandler.endPathExpr() |
void |
JaxenHandler.endPredicate() |
void |
JaxenHandler.endProcessingInstructionNodeStep() |
void |
JaxenHandler.endRelationalExpr(int operator) |
void |
JaxenHandler.endRelativeLocationPath() |
void |
JaxenHandler.endTextNodeStep() |
void |
JaxenHandler.endUnaryExpr(int operator) |
void |
JaxenHandler.endUnionExpr(boolean create) |
void |
JaxenHandler.endXPath() |
Object |
XPath.evaluate(Object context)
Evaluate this XPath against a given context.
|
Object |
BaseXPath.evaluate(Object node)
Evaluate this XPath against a given context.
|
void |
JaxenHandler.literal(String literal) |
void |
JaxenHandler.number(double number) |
void |
JaxenHandler.number(int number) |
Number |
XPath.numberValueOf(Object context)
Retrieve a number-value interpretation of this XPath
expression when evaluated against a given context.
|
Number |
BaseXPath.numberValueOf(Object node)
Retrieve a number-value interpretation of this XPath
expression when evaluated against a given context.
|
List |
XPath.selectNodes(Object context)
Select all nodes that are selectable by this XPath
expression.
|
List |
BaseXPath.selectNodes(Object node)
Select all nodes that are selectable by this XPath
expression.
|
protected List |
BaseXPath.selectNodesForContext(Context context)
Select all nodes that are selectable by this XPath
expression on the given Context object.
|
Object |
XPath.selectSingleNode(Object context)
Select only the first node that is selectable by this XPath
expression.
|
Object |
BaseXPath.selectSingleNode(Object node)
Select only the first node that is selectable by this XPath
expression.
|
protected Object |
BaseXPath.selectSingleNodeForContext(Context context)
Select only the first node that is selectable by this XPath
expression.
|
void |
JaxenHandler.startAbsoluteLocationPath() |
void |
JaxenHandler.startAdditiveExpr() |
void |
JaxenHandler.startAllNodeStep(int axis) |
void |
JaxenHandler.startAndExpr() |
void |
JaxenHandler.startCommentNodeStep(int axis) |
void |
JaxenHandler.startEqualityExpr() |
void |
JaxenHandler.startFilterExpr() |
void |
JaxenHandler.startFunction(String prefix,
String functionName) |
void |
JaxenHandler.startMultiplicativeExpr() |
void |
JaxenHandler.startNameStep(int axis,
String prefix,
String localName) |
void |
JaxenHandler.startOrExpr() |
void |
JaxenHandler.startPathExpr() |
void |
JaxenHandler.startPredicate() |
void |
JaxenHandler.startProcessingInstructionNodeStep(int axis,
String name) |
void |
JaxenHandler.startRelationalExpr() |
void |
JaxenHandler.startRelativeLocationPath() |
void |
JaxenHandler.startTextNodeStep(int axis) |
void |
JaxenHandler.startUnaryExpr() |
void |
JaxenHandler.startUnionExpr() |
void |
JaxenHandler.startXPath() |
String |
XPath.stringValueOf(Object context)
Retrieve a string-value interpretation of this XPath
expression when evaluated against a given context.
|
String |
BaseXPath.stringValueOf(Object node) |
String |
XPath.valueOf(Object context)
Deprecated.
As of Jaxen 1.0 RC1 please use
instead |
String |
BaseXPath.valueOf(Object node) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FilterExpr.asBoolean(Context context)
Evaluates the filter expression on the current context
and returns true if at least one node matches.
|
boolean |
DefaultFilterExpr.asBoolean(Context context)
Returns true if the current filter matches at least one of the context nodes
|
List |
XPathExpr.asList(Context context) |
List |
DefaultXPathExpr.asList(Context context) |
LocationPath |
XPathFactory.createAbsoluteLocationPath() |
LocationPath |
DefaultXPathFactory.createAbsoluteLocationPath() |
BinaryExpr |
XPathFactory.createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator) |
BinaryExpr |
DefaultXPathFactory.createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator) |
Step |
XPathFactory.createAllNodeStep(int axis) |
Step |
DefaultXPathFactory.createAllNodeStep(int axis) |
BinaryExpr |
XPathFactory.createAndExpr(Expr lhs,
Expr rhs) |
BinaryExpr |
DefaultXPathFactory.createAndExpr(Expr lhs,
Expr rhs) |
Step |
XPathFactory.createCommentNodeStep(int axis) |
Step |
DefaultXPathFactory.createCommentNodeStep(int axis) |
BinaryExpr |
XPathFactory.createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator) |
BinaryExpr |
DefaultXPathFactory.createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator) |
FilterExpr |
XPathFactory.createFilterExpr(Expr expr) |
FilterExpr |
DefaultXPathFactory.createFilterExpr(Expr expr) |
FunctionCallExpr |
XPathFactory.createFunctionCallExpr(String prefix,
String functionName) |
FunctionCallExpr |
DefaultXPathFactory.createFunctionCallExpr(String prefix,
String functionName) |
LiteralExpr |
XPathFactory.createLiteralExpr(String literal) |
LiteralExpr |
DefaultXPathFactory.createLiteralExpr(String literal) |
BinaryExpr |
XPathFactory.createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator) |
BinaryExpr |
DefaultXPathFactory.createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator) |
Step |
XPathFactory.createNameStep(int axis,
String prefix,
String localName) |
Step |
DefaultXPathFactory.createNameStep(int axis,
String prefix,
String localName) |
NumberExpr |
XPathFactory.createNumberExpr(double number) |
NumberExpr |
DefaultXPathFactory.createNumberExpr(double number) |
NumberExpr |
XPathFactory.createNumberExpr(int number) |
NumberExpr |
DefaultXPathFactory.createNumberExpr(int number) |
BinaryExpr |
XPathFactory.createOrExpr(Expr lhs,
Expr rhs) |
BinaryExpr |
DefaultXPathFactory.createOrExpr(Expr lhs,
Expr rhs) |
PathExpr |
XPathFactory.createPathExpr(FilterExpr filterExpr,
LocationPath locationPath) |
PathExpr |
DefaultXPathFactory.createPathExpr(FilterExpr filterExpr,
LocationPath locationPath) |
Predicate |
XPathFactory.createPredicate(Expr predicateExpr) |
Predicate |
DefaultXPathFactory.createPredicate(Expr predicateExpr) |
Step |
XPathFactory.createProcessingInstructionNodeStep(int axis,
String name) |
Step |
DefaultXPathFactory.createProcessingInstructionNodeStep(int axis,
String piName) |
BinaryExpr |
XPathFactory.createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator) |
BinaryExpr |
DefaultXPathFactory.createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator) |
LocationPath |
XPathFactory.createRelativeLocationPath() |
LocationPath |
DefaultXPathFactory.createRelativeLocationPath() |
Step |
XPathFactory.createTextNodeStep(int axis) |
Step |
DefaultXPathFactory.createTextNodeStep(int axis) |
Expr |
XPathFactory.createUnaryExpr(Expr expr,
int unaryOperator) |
Expr |
DefaultXPathFactory.createUnaryExpr(Expr expr,
int unaryOperator) |
UnionExpr |
XPathFactory.createUnionExpr(Expr lhs,
Expr rhs) |
UnionExpr |
DefaultXPathFactory.createUnionExpr(Expr lhs,
Expr rhs) |
VariableReferenceExpr |
XPathFactory.createVariableReferenceExpr(String prefix,
String variableName) |
VariableReferenceExpr |
DefaultXPathFactory.createVariableReferenceExpr(String prefix,
String variable) |
XPathExpr |
XPathFactory.createXPath(Expr rootExpr) |
XPathExpr |
DefaultXPathFactory.createXPath(Expr rootExpr) |
Object |
Predicate.evaluate(Context context) |
Object |
Expr.evaluate(Context context) |
Object |
DefaultUnionExpr.evaluate(Context context) |
Object |
DefaultFilterExpr.evaluate(Context context) |
Object |
DefaultAbsoluteLocationPath.evaluate(Context context) |
| Modifier and Type | Method and 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.endPathExpr() |
void |
PatternHandler.endRelativeLocationPath() |
void |
PatternHandler.endUnionExpr(boolean create) |
void |
PatternHandler.endXPath() |
boolean |
UnionPattern.matches(Object node,
Context context) |
abstract boolean |
Pattern.matches(Object node,
Context context) |
boolean |
LocationPathPattern.matches(Object node,
Context context) |
static Pattern |
PatternParser.parse(String text) |
void |
LocationPathPattern.setNodeTest(NodeTest nodeTest)
Allows the NodeTest to be set
|
void |
PatternHandler.startAbsoluteLocationPath() |
void |
PatternHandler.startAllNodeStep(int axis) |
void |
PatternHandler.startCommentNodeStep(int axis) |
void |
PatternHandler.startNameStep(int axis,
String prefix,
String localName) |
void |
PatternHandler.startProcessingInstructionNodeStep(int axis,
String name) |
void |
PatternHandler.startRelativeLocationPath() |
void |
PatternHandler.startTextNodeStep(int axis) |
void |
PatternHandler.startUnionExpr() |
Copyright © 2013. All Rights Reserved.