1 16 19 package org.apache.xpath; 20 21 import org.apache.xpath.axes.LocPathIterator; 22 import org.apache.xpath.axes.UnionPathIterator; 23 import org.apache.xpath.functions.Function; 24 import org.apache.xpath.objects.XNumber; 25 import org.apache.xpath.objects.XString; 26 import org.apache.xpath.operations.Operation; 27 import org.apache.xpath.operations.UnaryOperation; 28 import org.apache.xpath.operations.Variable; 29 import org.apache.xpath.patterns.NodeTest; 30 import org.apache.xpath.patterns.StepPattern; 31 import org.apache.xpath.patterns.UnionPattern; 32 33 49 public class XPathVisitor 50 { 51 58 public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path) 59 { 60 return true; 61 } 62 63 70 public boolean visitUnionPath(ExpressionOwner owner, UnionPathIterator path) 71 { 72 return true; 73 } 74 75 82 public boolean visitStep(ExpressionOwner owner, NodeTest step) 83 { 84 return true; 85 } 86 87 97 public boolean visitPredicate(ExpressionOwner owner, Expression pred) 98 { 99 return true; 100 } 101 102 109 public boolean visitBinaryOperation(ExpressionOwner owner, Operation op) 110 { 111 return true; 112 } 113 114 121 public boolean visitUnaryOperation(ExpressionOwner owner, UnaryOperation op) 122 { 123 return true; 124 } 125 126 133 public boolean visitVariableRef(ExpressionOwner owner, Variable var) 134 { 135 return true; 136 } 137 138 145 public boolean visitFunction(ExpressionOwner owner, Function func) 146 { 147 return true; 148 } 149 150 157 public boolean visitMatchPattern(ExpressionOwner owner, StepPattern pattern) 158 { 159 return true; 160 } 161 162 169 public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern) 170 { 171 return true; 172 } 173 174 181 public boolean visitStringLiteral(ExpressionOwner owner, XString str) 182 { 183 return true; 184 } 185 186 187 194 public boolean visitNumberLiteral(ExpressionOwner owner, XNumber num) 195 { 196 return true; 197 } 198 199 200 } 201 202 | Popular Tags |