org.jaxen.expr

Class DefaultXPathFactory

Implemented Interfaces:
XPathFactory

public class DefaultXPathFactory
extends java.lang.Object
implements XPathFactory

Method Summary

LocationPath
createAbsoluteLocationPath()
BinaryExpr
createAdditiveExpr(Expr lhs, Expr rhs, int additiveOperator)
Step
createAllNodeStep(int axis)
BinaryExpr
createAndExpr(Expr lhs, Expr rhs)
Step
createCommentNodeStep(int axis)
BinaryExpr
createEqualityExpr(Expr lhs, Expr rhs, int equalityOperator)
FilterExpr
createFilterExpr(Expr expr)
FunctionCallExpr
createFunctionCallExpr(String prefix, String functionName)
LiteralExpr
createLiteralExpr(String literal)
BinaryExpr
createMultiplicativeExpr(Expr lhs, Expr rhs, int multiplicativeOperator)
Step
createNameStep(int axis, String prefix, String localName)
NumberExpr
createNumberExpr(double number)
NumberExpr
createNumberExpr(int number)
BinaryExpr
createOrExpr(Expr lhs, Expr rhs)
PathExpr
createPathExpr(FilterExpr filterExpr, LocationPath locationPath)
Predicate
createPredicate(Expr predicateExpr)
PredicateSet
createPredicateSet()
Step
createProcessingInstructionNodeStep(int axis, String piName)
BinaryExpr
createRelationalExpr(Expr lhs, Expr rhs, int relationalOperator)
LocationPath
createRelativeLocationPath()
Step
createTextNodeStep(int axis)
Expr
createUnaryExpr(Expr expr, int unaryOperator)
UnionExpr
createUnionExpr(Expr lhs, Expr rhs)
VariableReferenceExpr
createVariableReferenceExpr(String prefix, String variable)
XPathExpr
createXPath(Expr rootExpr)
protected IterableAxis
getIterableAxis(int axis)

Method Details

createAbsoluteLocationPath

public LocationPath createAbsoluteLocationPath()
            throws JaxenException
Specified by:
createAbsoluteLocationPath in interface XPathFactory

createAdditiveExpr

public BinaryExpr createAdditiveExpr(Expr lhs,
                                     Expr rhs,
                                     int additiveOperator)
            throws JaxenException
Specified by:
createAdditiveExpr in interface XPathFactory

createAllNodeStep

public Step createAllNodeStep(int axis)
            throws JaxenException
Specified by:
createAllNodeStep in interface XPathFactory

createAndExpr

public BinaryExpr createAndExpr(Expr lhs,
                                Expr rhs)
            throws JaxenException
Specified by:
createAndExpr in interface XPathFactory

createCommentNodeStep

public Step createCommentNodeStep(int axis)
            throws JaxenException
Specified by:
createCommentNodeStep in interface XPathFactory

createEqualityExpr

public BinaryExpr createEqualityExpr(Expr lhs,
                                     Expr rhs,
                                     int equalityOperator)
            throws JaxenException
Specified by:
createEqualityExpr in interface XPathFactory

createFilterExpr

public FilterExpr createFilterExpr(Expr expr)
            throws JaxenException
Specified by:
createFilterExpr in interface XPathFactory

createFunctionCallExpr

public FunctionCallExpr createFunctionCallExpr(String prefix,
                                               String functionName)
            throws JaxenException
Specified by:
createFunctionCallExpr in interface XPathFactory

createLiteralExpr

public LiteralExpr createLiteralExpr(String literal)
            throws JaxenException
Specified by:
createLiteralExpr in interface XPathFactory

createMultiplicativeExpr

public BinaryExpr createMultiplicativeExpr(Expr lhs,
                                           Expr rhs,
                                           int multiplicativeOperator)
            throws JaxenException
Specified by:
createMultiplicativeExpr in interface XPathFactory

createNameStep

public Step createNameStep(int axis,
                           String prefix,
                           String localName)
            throws JaxenException
Specified by:
createNameStep in interface XPathFactory

createNumberExpr

public NumberExpr createNumberExpr(double number)
            throws JaxenException
Specified by:
createNumberExpr in interface XPathFactory

createNumberExpr

public NumberExpr createNumberExpr(int number)
            throws JaxenException
Specified by:
createNumberExpr in interface XPathFactory

createOrExpr

public BinaryExpr createOrExpr(Expr lhs,
                               Expr rhs)
            throws JaxenException
Specified by:
createOrExpr in interface XPathFactory

createPathExpr

public PathExpr createPathExpr(FilterExpr filterExpr,
                               LocationPath locationPath)
            throws JaxenException
Specified by:
createPathExpr in interface XPathFactory

createPredicate

public Predicate createPredicate(Expr predicateExpr)
            throws JaxenException
Specified by:
createPredicate in interface XPathFactory

createPredicateSet

public PredicateSet createPredicateSet()
            throws JaxenException
Specified by:
createPredicateSet in interface XPathFactory

createProcessingInstructionNodeStep

public Step createProcessingInstructionNodeStep(int axis,
                                                String piName)
            throws JaxenException
Specified by:
createProcessingInstructionNodeStep in interface XPathFactory

createRelationalExpr

public BinaryExpr createRelationalExpr(Expr lhs,
                                       Expr rhs,
                                       int relationalOperator)
            throws JaxenException
Specified by:
createRelationalExpr in interface XPathFactory

createRelativeLocationPath

public LocationPath createRelativeLocationPath()
            throws JaxenException
Specified by:
createRelativeLocationPath in interface XPathFactory

createTextNodeStep

public Step createTextNodeStep(int axis)
            throws JaxenException
Specified by:
createTextNodeStep in interface XPathFactory

createUnaryExpr

public Expr createUnaryExpr(Expr expr,
                            int unaryOperator)
            throws JaxenException
Specified by:
createUnaryExpr in interface XPathFactory

createUnionExpr

public UnionExpr createUnionExpr(Expr lhs,
                                 Expr rhs)
            throws JaxenException
Specified by:
createUnionExpr in interface XPathFactory

createVariableReferenceExpr

public VariableReferenceExpr createVariableReferenceExpr(String prefix,
                                                         String variable)
            throws JaxenException
Specified by:
createVariableReferenceExpr in interface XPathFactory

createXPath

public XPathExpr createXPath(Expr rootExpr)
            throws JaxenException
Specified by:
createXPath in interface XPathFactory

getIterableAxis

protected IterableAxis getIterableAxis(int axis)