org.jaxen.expr
Class DefaultXPathFactory

java.lang.Object
  extended byorg.jaxen.expr.DefaultXPathFactory
All Implemented Interfaces:
Operator, XPathFactory

public class DefaultXPathFactory
extends java.lang.Object
implements XPathFactory


Field Summary
 
Fields inherited from interface org.jaxen.saxpath.Operator
ADD, DIV, EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, MOD, MULTIPLY, NEGATIVE, NO_OP, NOT_EQUALS, SUBTRACT
 
Constructor Summary
DefaultXPathFactory()
           
 
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(java.lang.String prefix, java.lang.String functionName)
           
 LiteralExpr createLiteralExpr(java.lang.String literal)
           
 BinaryExpr createMultiplicativeExpr(Expr lhs, Expr rhs, int multiplicativeOperator)
           
 Step createNameStep(int axis, java.lang.String prefix, java.lang.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, java.lang.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(java.lang.String prefix, java.lang.String variable)
           
 XPathExpr createXPath(Expr rootExpr)
           
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

DefaultXPathFactory

public DefaultXPathFactory()
Method Detail

createXPath

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

createPathExpr

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

createRelativeLocationPath

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

createAbsoluteLocationPath

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

createOrExpr

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

createAndExpr

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

createEqualityExpr

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

createRelationalExpr

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

createAdditiveExpr

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

createMultiplicativeExpr

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

createUnaryExpr

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

createUnionExpr

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

createFilterExpr

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

createFunctionCallExpr

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

createNumberExpr

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

createNumberExpr

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

createLiteralExpr

public LiteralExpr createLiteralExpr(java.lang.String literal)
                              throws JaxenException
Specified by:
createLiteralExpr in interface XPathFactory
Throws:
JaxenException

createVariableReferenceExpr

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

createNameStep

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

createTextNodeStep

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

createCommentNodeStep

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

createAllNodeStep

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

createProcessingInstructionNodeStep

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

createPredicate

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

getIterableAxis

protected IterableAxis getIterableAxis(int axis)

createPredicateSet

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