public class DefaultXPathFactory extends Object implements XPathFactory
XPathFactory| コンストラクタと説明 |
|---|
DefaultXPathFactory() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
LocationPath |
createAbsoluteLocationPath()
Create a new empty absolute location path.
|
BinaryExpr |
createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator)
Returns a new XPath additive expression.
|
Step |
createAllNodeStep(int axis)
Create a step with a node() node-test.
|
BinaryExpr |
createAndExpr(Expr lhs,
Expr rhs)
Returns a new XPath And expression.
|
Step |
createCommentNodeStep(int axis)
Create a step with a
comment() node-test. |
BinaryExpr |
createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator)
Returns a new XPath equality expression.
|
FilterExpr |
createFilterExpr(Expr expr)
Returns a new XPath filter expression.
|
FunctionCallExpr |
createFunctionCallExpr(String prefix,
String functionName)
Create a new function call expression.
|
LiteralExpr |
createLiteralExpr(String literal)
Create a string literal expression.
|
BinaryExpr |
createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator)
Returns a new XPath multiplicative expression.
|
Step |
createNameStep(int axis,
String prefix,
String localName)
Create a step with a named node-test.
|
NumberExpr |
createNumberExpr(double number)
Create a number expression.
|
NumberExpr |
createNumberExpr(int number)
Create a number expression.
|
BinaryExpr |
createOrExpr(Expr lhs,
Expr rhs)
Returns a new XPath Or expression.
|
PathExpr |
createPathExpr(FilterExpr filterExpr,
LocationPath locationPath)
Create a new path expression.
|
Predicate |
createPredicate(Expr predicateExpr)
Create from the supplied expression.
|
PredicateSet |
createPredicateSet()
Create an empty predicate set.
|
Step |
createProcessingInstructionNodeStep(int axis,
String piName)
Create a step with a
processing-instruction() node-test. |
BinaryExpr |
createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator)
Returns a new XPath relational expression.
|
LocationPath |
createRelativeLocationPath()
Create a new empty relative location path.
|
Step |
createTextNodeStep(int axis)
Create a step with a
text() node-test. |
Expr |
createUnaryExpr(Expr expr,
int unaryOperator)
Returns a new XPath unary expression.
|
UnionExpr |
createUnionExpr(Expr lhs,
Expr rhs)
Returns a new XPath union expression.
|
VariableReferenceExpr |
createVariableReferenceExpr(String prefix,
String variable)
Create a new variable reference expression.
|
XPathExpr |
createXPath(Expr rootExpr)
Create a new
XPathExpr from an Expr. |
protected IterableAxis |
getIterableAxis(int axis) |
public XPathExpr createXPath(Expr rootExpr) throws JaxenException
XPathFactoryXPathExpr from an Expr.createXPath インタフェース内 XPathFactoryrootExpr - the expression wrapped by the resulting XPathExprJaxenExceptionpublic PathExpr createPathExpr(FilterExpr filterExpr, LocationPath locationPath) throws JaxenException
XPathFactorycreatePathExpr インタフェース内 XPathFactoryfilterExpr - the filter expression that starts the path expressionlocationPath - the location path that follows the filter expressionJaxenExceptionpublic LocationPath createRelativeLocationPath() throws JaxenException
XPathFactorycreateRelativeLocationPath インタフェース内 XPathFactoryJaxenExceptionpublic LocationPath createAbsoluteLocationPath() throws JaxenException
XPathFactorycreateAbsoluteLocationPath インタフェース内 XPathFactoryJaxenExceptionpublic BinaryExpr createOrExpr(Expr lhs, Expr rhs) throws JaxenException
XPathFactorycreateOrExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionlhs or rhsJaxenExceptionpublic BinaryExpr createAndExpr(Expr lhs, Expr rhs) throws JaxenException
XPathFactorycreateAndExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionlhs and rhsJaxenExceptionpublic BinaryExpr createEqualityExpr(Expr lhs, Expr rhs, int equalityOperator) throws JaxenException
XPathFactorycreateEqualityExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionequalityOperator - Operator.EQUALS or Operator.NOT_EQUALSlhs = rhs or lhs != rhsJaxenException - if the third argument is not
Operator.EQUALS or Operator.NOT_EQUALSpublic BinaryExpr createRelationalExpr(Expr lhs, Expr rhs, int relationalOperator) throws JaxenException
XPathFactorycreateRelationalExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionrelationalOperator - Operator.LESS_THAN, Operator.GREATER_THAN,
Operator.LESS_THAN_EQUALS, or Operator.GREATER_THAN_EQUALSlhs relationalOperator rhs or lhs != rhsJaxenException - if the third argument is not a relational operator constantpublic BinaryExpr createAdditiveExpr(Expr lhs, Expr rhs, int additiveOperator) throws JaxenException
XPathFactorycreateAdditiveExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionadditiveOperator - Operator.ADD or Operator.SUBTRACTlhs + rhs or lhs - rhsJaxenException - if the third argument is not
Operator.ADD or Operator.SUBTRACTpublic BinaryExpr createMultiplicativeExpr(Expr lhs, Expr rhs, int multiplicativeOperator) throws JaxenException
XPathFactorycreateMultiplicativeExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionmultiplicativeOperator - Operator.MULTIPLY,
Operator.DIV, or Operator.MODlhs * rhs, lhs div rhs,
or lhs mod rhsJaxenException - if the third argument is not a multiplicative operator constantpublic Expr createUnaryExpr(Expr expr, int unaryOperator) throws JaxenException
XPathFactorycreateUnaryExpr インタフェース内 XPathFactoryexpr - the expression to be negatedunaryOperator - Operator.NEGATIVE- expr or exprJaxenExceptionpublic UnionExpr createUnionExpr(Expr lhs, Expr rhs) throws JaxenException
XPathFactorycreateUnionExpr インタフェース内 XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionlhs | rhsJaxenExceptionpublic FilterExpr createFilterExpr(Expr expr) throws JaxenException
XPathFactorycreateFilterExpr インタフェース内 XPathFactoryexpr - the basic expression to which the predicate will be addedJaxenExceptionpublic FunctionCallExpr createFunctionCallExpr(String prefix, String functionName) throws JaxenException
XPathFactorycreateFunctionCallExpr インタフェース内 XPathFactoryprefix - the namespace prefix of the functionfunctionName - the local name of the functionJaxenExceptionpublic NumberExpr createNumberExpr(int number) throws JaxenException
XPathFactorycreateNumberExpr インタフェース内 XPathFactorynumber - the valueJaxenExceptionpublic NumberExpr createNumberExpr(double number) throws JaxenException
XPathFactorycreateNumberExpr インタフェース内 XPathFactorynumber - the valueJaxenExceptionpublic LiteralExpr createLiteralExpr(String literal) throws JaxenException
XPathFactorycreateLiteralExpr インタフェース内 XPathFactoryliteral - the valueJaxenExceptionpublic VariableReferenceExpr createVariableReferenceExpr(String prefix, String variable) throws JaxenException
XPathFactorycreateVariableReferenceExpr インタフェース内 XPathFactoryprefix - the namespace prefix of the variablevariable - the local name of the variableJaxenExceptionpublic Step createNameStep(int axis, String prefix, String localName) throws JaxenException
XPathFactorycreateNameStep インタフェース内 XPathFactoryaxis - the axis to create the name-test onprefix - the namespace prefix for the testlocalName - the local name for the testJaxenException - if axis is not one of the axis constants????public Step createTextNodeStep(int axis) throws JaxenException
XPathFactorytext() node-test.createTextNodeStep インタフェース内 XPathFactoryaxis - the axis to create the text() node-test onJaxenException - if axis is not one of the axis constants????public Step createCommentNodeStep(int axis) throws JaxenException
XPathFactorycomment() node-test.createCommentNodeStep インタフェース内 XPathFactoryaxis - the axis to create the comment() node-test onJaxenException - if axis is not one of the axis constants????public Step createAllNodeStep(int axis) throws JaxenException
XPathFactorycreateAllNodeStep インタフェース内 XPathFactoryaxis - the axis to create the node-test onJaxenException - if axis is not one of the axis constants????public Step createProcessingInstructionNodeStep(int axis, String piName) throws JaxenException
XPathFactoryprocessing-instruction() node-test.createProcessingInstructionNodeStep インタフェース内 XPathFactoryaxis - the axis to create the processing-instruction() node-test onpiName - the target to match, may be emptyJaxenException - if axis is not one of the axis constants????public Predicate createPredicate(Expr predicateExpr) throws JaxenException
XPathFactorycreatePredicate インタフェース内 XPathFactorypredicateExpr - the expression to evaluate in the predicateJaxenExceptionprotected IterableAxis getIterableAxis(int axis) throws JaxenException
JaxenExceptionpublic PredicateSet createPredicateSet() throws JaxenException
XPathFactorycreatePredicateSet インタフェース内 XPathFactoryJaxenExceptionCopyright © 2001-2013 Codehaus. All Rights Reserved.