1 61 package org.jaxen.expr; 62 63 import org.jaxen.JaxenException; 64 65 public interface XPathFactory 66 { 67 XPathExpr createXPath( Expr rootExpr ) throws JaxenException; 68 69 PathExpr createPathExpr( FilterExpr filterExpr, 70 LocationPath locationPath ) throws JaxenException; 71 72 LocationPath createRelativeLocationPath() throws JaxenException; 73 74 LocationPath createAbsoluteLocationPath() throws JaxenException; 75 76 BinaryExpr createOrExpr( Expr lhs, 77 Expr rhs ) throws JaxenException; 78 79 BinaryExpr createAndExpr( Expr lhs, 80 Expr rhs ) throws JaxenException; 81 82 BinaryExpr createEqualityExpr( Expr lhs, 83 Expr rhs, 84 int equalityOperator ) throws JaxenException; 85 86 BinaryExpr createRelationalExpr( Expr lhs, 87 Expr rhs, 88 int relationalOperator ) throws JaxenException; 89 90 BinaryExpr createAdditiveExpr( Expr lhs, 91 Expr rhs, 92 int additiveOperator ) throws JaxenException; 93 94 BinaryExpr createMultiplicativeExpr( Expr lhs, 95 Expr rhs, 96 int multiplicativeOperator ) throws JaxenException; 97 98 Expr createUnaryExpr( Expr expr, 99 int unaryOperator ) throws JaxenException; 100 101 UnionExpr createUnionExpr( Expr lhs, 102 Expr rhs ) throws JaxenException; 103 104 FilterExpr createFilterExpr( Expr expr ) throws JaxenException; 105 106 FunctionCallExpr createFunctionCallExpr( String prefix, 107 String functionName ) throws JaxenException; 108 109 NumberExpr createNumberExpr( int number ) throws JaxenException; 110 111 NumberExpr createNumberExpr( double number ) throws JaxenException; 112 113 LiteralExpr createLiteralExpr( String literal ) throws JaxenException; 114 115 VariableReferenceExpr createVariableReferenceExpr( String prefix, 116 String variableName ) throws JaxenException; 117 118 Step createNameStep( int axis, 119 String prefix, 120 String localName ) throws JaxenException; 121 122 Step createAllNodeStep( int axis ) throws JaxenException; 123 124 Step createCommentNodeStep( int axis ) throws JaxenException; 125 126 Step createTextNodeStep( int axis ) throws JaxenException; 127 128 Step createProcessingInstructionNodeStep( int axis, 129 String name ) throws JaxenException; 130 131 Predicate createPredicate( Expr predicateExpr ) throws JaxenException; 132 133 PredicateSet createPredicateSet() throws JaxenException; 134 } 135 | Popular Tags |