1 2 12 package com.versant.core.jdo.query; 13 14 19 public class NodeVisitorAdapter implements NodeVisitor { 20 21 24 protected Object defaultVisit(Node node, Object [] results) { 25 return null; 26 } 27 28 31 protected Object defaultArrive(Node node, Object msg) { 32 return null; 33 } 34 35 public Object visitLiteralNode(LiteralNode node, Object [] results) { 36 return defaultVisit(node, results); 37 } 38 39 public Object visitAddNode(AddNode node, Object [] results) { 40 return defaultVisit(node, results); 41 } 42 43 public Object visitMultiplyNode(MultiplyNode node, Object [] results) { 44 return defaultVisit(node, results); 45 } 46 47 public Object visitUnaryNode(UnaryNode node, Object [] results) { 48 return defaultVisit(node, results); 49 } 50 51 public Object visitUnaryOpNode(UnaryOpNode node, Object [] results) { 52 return defaultVisit(node, results); 53 } 54 55 public Object visitNotEqualNode(NotEqualNode node, Object [] results) { 56 return defaultVisit(node, results); 57 } 58 59 public Object visitEqualNode(EqualNode node, Object [] results) { 60 return defaultVisit(node, results); 61 } 62 63 public Object visitLikeNode(LikeNode node, Object [] results) { 64 return defaultVisit(node, results); 65 } 66 67 public Object visitCompareOpNode(CompareOpNode node, Object [] results) { 68 return defaultVisit(node, results); 69 } 70 71 public Object visitParamNode(ParamNode node, Object [] results) { 72 return defaultVisit(node, results); 73 } 74 75 public Object visitFieldNode(FieldNode node, Object [] results) { 76 return defaultVisit(node, results); 77 } 78 79 public Object visitFieldNavNode(FieldNavNode node, Object [] results) { 80 return defaultVisit(node, results); 81 } 82 83 public Object visitVarNode(VarNode node, Object [] results) { 84 return defaultVisit(node, results); 85 } 86 87 public Object visitMethodNode(MethodNode node, Object [] results) { 88 return defaultVisit(node, results); 89 } 90 91 public Object visitAndNode(AndNode node, Object [] results) { 92 return defaultVisit(node, results); 93 } 94 95 public Object visitOrNode(OrNode node, Object [] results) { 96 return defaultVisit(node, results); 97 } 98 99 public Object visitAggregateCountStarNode(AggregateCountStarNode node, 100 Object [] results) { 101 return defaultVisit(node, results); 102 } 103 104 public Object visitAggregateNode(AggregateNode node, Object [] results) { 105 return defaultVisit(node, results); 106 } 107 108 public Object visitAsValueNode(AsValueNode node, Object [] results) { 109 return defaultVisit(node, results); 110 } 111 112 public Object visitGroupingNode(GroupingNode node, Object [] results) { 113 return defaultVisit(node, results); 114 } 115 116 public Object visitResultNode(ResultNode node, Object [] results) { 117 return defaultVisit(node, results); 118 } 119 120 public Object visitVarBindingNode(VarBindingNode node, Object [] results) { 121 return defaultVisit(node, results); 122 } 123 124 public Object visitOrderNode(OrderNode node, Object [] results) { 125 return defaultVisit(node, results); 126 } 127 128 public Object arriveLiteralNode(LiteralNode node, Object msg) { 129 return defaultArrive(node, msg); 130 } 131 132 public Object arriveFieldNavNode(FieldNavNode node, Object msg) { 133 return defaultArrive(node, msg); 134 } 135 136 public Object arriveMethodNode(MethodNode node, Object msg) { 137 return defaultArrive(node, msg); 138 } 139 140 public Object arrivePrimaryExprNode(PrimaryExprNode node, Object msg) { 141 return defaultArrive(node, msg); 142 } 143 144 public Object arriveFieldNode(FieldNode node, Object msg) { 145 return defaultArrive(node, msg); 146 } 147 148 public Object arriveEqualNode(EqualNode node, Object msg) { 149 return defaultArrive(node, msg); 150 } 151 152 public Object arriveLikeNode(LikeNode node, Object msg) { 153 return defaultArrive(node, msg); 154 } 155 156 public Object arriveNotEqualNode(NotEqualNode node, Object msg) { 157 return defaultArrive(node, msg); 158 } 159 160 public Object arriveAndNode(AndNode node, Object msg) { 161 return defaultArrive(node, msg); 162 } 163 164 public Object arriveOrNode(OrNode node, Object msg) { 165 return defaultArrive(node, msg); 166 } 167 168 public Object arriveMultiplyNode(MultiplyNode node, Object msg) { 169 return defaultArrive(node, msg); 170 } 171 172 public Object arriveAddNode(AddNode node, Object msg) { 173 return defaultArrive(node, msg); 174 } 175 176 public Object arriveUnaryOpNode(UnaryOpNode node, Object msg) { 177 return defaultArrive(node, msg); 178 } 179 180 public Object arriveCompareOpNode(CompareOpNode node, Object msg) { 181 return defaultArrive(node, msg); 182 } 183 184 public Object arriveUnaryNode(UnaryNode node, Object msg) { 185 return defaultArrive(node, msg); 186 } 187 188 public Object arriveBinaryNode(BinaryNode node, Object msg) { 189 return defaultArrive(node, msg); 190 } 191 192 public Object arriveCastNode(CastNode node, Object msg) { 193 return defaultArrive(node, msg); 194 } 195 196 public Object arriveParamNode(ParamNode node, Object msg) { 197 return defaultArrive(node, msg); 198 } 199 200 public Object arriveParamNodeProxy(ParamNodeProxy node, Object msg) { 201 return defaultArrive(node, msg); 202 } 203 204 public Object arriveArgNode(ArgNode node, Object msg) { 205 return defaultArrive(node, msg); 206 } 207 208 public Object arriveArrayNode(ArrayNode node, Object msg) { 209 return defaultArrive(node, msg); 210 } 211 212 public Object arriveImportNode(ImportNode node, Object msg) { 213 return defaultArrive(node, msg); 214 } 215 216 public Object arriveLeafNode(LeafNode node, Object msg) { 217 return defaultArrive(node, msg); 218 } 219 220 public Object arriveOrderNode(OrderNode node, Object msg) { 221 return defaultArrive(node, msg); 222 } 223 224 public Object arriveVarNode(VarNode node, Object msg) { 225 return defaultArrive(node, msg); 226 } 227 228 public Object arriveVarNodeProxy(VarNodeProxy node, Object msg) { 229 return defaultArrive(node, msg); 230 } 231 232 public Object arriveReservedFieldNode(ReservedFieldNode node, 233 Object msg) { 234 return defaultArrive(node, msg); 235 } 236 237 public Object arriveAggregateCountStarNode(AggregateCountStarNode node, 238 Object msg) { 239 return defaultArrive(node, msg); 240 } 241 242 public Object arriveAggregateNode(AggregateNode node, Object msg) { 243 return defaultArrive(node, msg); 244 } 245 246 public Object arriveAsValueNode(AsValueNode node, Object msg) { 247 return defaultArrive(node, msg); 248 } 249 250 public Object arriveGroupingNode(GroupingNode node, Object msg) { 251 return defaultArrive(node, msg); 252 } 253 254 public Object arriveResultNode(ResultNode node, Object msg) { 255 return defaultArrive(node, msg); 256 } 257 258 public Object arriveVarBindingNode(VarBindingNode node, Object msg) { 259 return defaultArrive(node, msg); 260 } 261 262 } 263 264 | Popular Tags |