|
jaxen 1.1.3-redhat-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaxen.expr.DefaultXPathFactory
public class DefaultXPathFactory
The concrete implementation of the XPathFactory anstract factory.
XPathFactory| Constructor Summary | |
|---|---|
DefaultXPathFactory()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXPathFactory()
| Method Detail |
|---|
public XPathExpr createXPath(Expr rootExpr)
throws JaxenException
XPathFactoryXPathExpr from an Expr.
createXPath in interface XPathFactoryrootExpr - the expression wrapped by the resulting XPathExpr
JaxenException
public PathExpr createPathExpr(FilterExpr filterExpr,
LocationPath locationPath)
throws JaxenException
XPathFactory
createPathExpr in interface XPathFactoryfilterExpr - the filter expression that starts the path expressionlocationPath - the location path that follows the filter expression
JaxenException
public LocationPath createRelativeLocationPath()
throws JaxenException
XPathFactory
createRelativeLocationPath in interface XPathFactoryJaxenException
public LocationPath createAbsoluteLocationPath()
throws JaxenException
XPathFactory
createAbsoluteLocationPath in interface XPathFactoryJaxenException
public BinaryExpr createOrExpr(Expr lhs,
Expr rhs)
throws JaxenException
XPathFactory
createOrExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expression
lhs or rhs
JaxenException
public BinaryExpr createAndExpr(Expr lhs,
Expr rhs)
throws JaxenException
XPathFactory
createAndExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expression
lhs and rhs
JaxenException
public BinaryExpr createEqualityExpr(Expr lhs,
Expr rhs,
int equalityOperator)
throws JaxenException
XPathFactory
createEqualityExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionequalityOperator - Operator.EQUALS or Operator.NOT_EQUALS
lhs = rhs or lhs != rhs
JaxenException - if the third argument is not
Operator.EQUALS or Operator.NOT_EQUALS
public BinaryExpr createRelationalExpr(Expr lhs,
Expr rhs,
int relationalOperator)
throws JaxenException
XPathFactory
createRelationalExpr in interface 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_EQUALS
lhs relationalOperator rhs or lhs != rhs
JaxenException - if the third argument is not a relational operator constant
public BinaryExpr createAdditiveExpr(Expr lhs,
Expr rhs,
int additiveOperator)
throws JaxenException
XPathFactory
createAdditiveExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionadditiveOperator - Operator.ADD or Operator.SUBTRACT
lhs + rhs or lhs - rhs
JaxenException - if the third argument is not
Operator.ADD or Operator.SUBTRACT
public BinaryExpr createMultiplicativeExpr(Expr lhs,
Expr rhs,
int multiplicativeOperator)
throws JaxenException
XPathFactory
createMultiplicativeExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expressionmultiplicativeOperator - Operator.MULTIPLY,
Operator.DIV, or Operator.MOD
lhs * rhs, lhs div rhs,
or lhs mod rhs
JaxenException - if the third argument is not a multiplicative operator constant
public Expr createUnaryExpr(Expr expr,
int unaryOperator)
throws JaxenException
XPathFactory
createUnaryExpr in interface XPathFactoryexpr - the expression to be negatedunaryOperator - Operator.NEGATIVE
- expr or expr
JaxenException
public UnionExpr createUnionExpr(Expr lhs,
Expr rhs)
throws JaxenException
XPathFactory
createUnionExpr in interface XPathFactorylhs - the left hand side of the expressionrhs - the right hand side of the expression
lhs | rhs
JaxenException
public FilterExpr createFilterExpr(Expr expr)
throws JaxenException
XPathFactory
createFilterExpr in interface XPathFactoryexpr - the basic expression to which the predicate will be added
JaxenException
public FunctionCallExpr createFunctionCallExpr(String prefix,
String functionName)
throws JaxenException
XPathFactory
createFunctionCallExpr in interface XPathFactoryprefix - the namespace prefix of the functionfunctionName - the local name of the function
JaxenException
public NumberExpr createNumberExpr(int number)
throws JaxenException
XPathFactory
createNumberExpr in interface XPathFactorynumber - the value
JaxenException
public NumberExpr createNumberExpr(double number)
throws JaxenException
XPathFactory
createNumberExpr in interface XPathFactorynumber - the value
JaxenException
public LiteralExpr createLiteralExpr(String literal)
throws JaxenException
XPathFactory
createLiteralExpr in interface XPathFactoryliteral - the value
JaxenException
public VariableReferenceExpr createVariableReferenceExpr(String prefix,
String variable)
throws JaxenException
XPathFactory
createVariableReferenceExpr in interface XPathFactoryprefix - the namespace prefix of the variablevariable - the local name of the variable
JaxenException
public Step createNameStep(int axis,
String prefix,
String localName)
throws JaxenException
XPathFactory
createNameStep in interface XPathFactoryaxis - the axis to create the name-test onprefix - the namespace prefix for the testlocalName - the local name for the test
JaxenException - if axis is not one of the axis constants????
public Step createTextNodeStep(int axis)
throws JaxenException
XPathFactorytext() node-test.
createTextNodeStep in interface XPathFactoryaxis - the axis to create the text() node-test on
JaxenException - if axis is not one of the axis constants????
public Step createCommentNodeStep(int axis)
throws JaxenException
XPathFactorycomment() node-test.
createCommentNodeStep in interface XPathFactoryaxis - the axis to create the comment() node-test on
JaxenException - if axis is not one of the axis constants????
public Step createAllNodeStep(int axis)
throws JaxenException
XPathFactory
createAllNodeStep in interface XPathFactoryaxis - the axis to create the node-test on
JaxenException - if axis is not one of the axis constants????
public Step createProcessingInstructionNodeStep(int axis,
String piName)
throws JaxenException
XPathFactoryprocessing-instruction() node-test.
createProcessingInstructionNodeStep in interface XPathFactoryaxis - the axis to create the processing-instruction() node-test onpiName - the target to match, may be empty
JaxenException - if axis is not one of the axis constants????
public Predicate createPredicate(Expr predicateExpr)
throws JaxenException
XPathFactory
createPredicate in interface XPathFactorypredicateExpr - the expression to evaluate in the predicate
JaxenException
protected IterableAxis getIterableAxis(int axis)
throws JaxenException
JaxenException
public PredicateSet createPredicateSet()
throws JaxenException
XPathFactory
createPredicateSet in interface XPathFactoryJaxenException
|
jaxen 1.1.3-redhat-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||