1 /* 2 * Copyright 2015-2018 HuntLabs.cn 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 module hunt.sql.dialect.postgresql.visitor.PGASTVisitorAdapter; 17 18 import hunt.sql.dialect.postgresql.ast.expr.PGBoxExpr; 19 import hunt.sql.dialect.postgresql.ast.expr.PGCidrExpr; 20 import hunt.sql.dialect.postgresql.ast.expr.PGCircleExpr; 21 import hunt.sql.dialect.postgresql.ast.expr.PGExtractExpr; 22 import hunt.sql.dialect.postgresql.ast.expr.PGInetExpr; 23 import hunt.sql.dialect.postgresql.ast.expr.PGLineSegmentsExpr; 24 import hunt.sql.dialect.postgresql.ast.expr.PGMacAddrExpr; 25 import hunt.sql.dialect.postgresql.ast.expr.PGPointExpr; 26 import hunt.sql.dialect.postgresql.ast.expr.PGPolygonExpr; 27 import hunt.sql.dialect.postgresql.ast.expr.PGTypeCastExpr; 28 import hunt.sql.dialect.postgresql.ast.stmt; 29 import hunt.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock; 30 // import hunt.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.FetchClause; 31 // import hunt.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.ForClause; 32 // import hunt.sql.dialect.postgresql.ast.stmt.PGSelectQueryBlock.WindowClause; 33 import hunt.sql.visitor.SQLASTVisitorAdapter; 34 import hunt.sql.dialect.postgresql.visitor.PGASTVisitor; 35 36 public class PGASTVisitorAdapter : SQLASTVisitorAdapter , PGASTVisitor { 37 alias endVisit = SQLASTVisitorAdapter.endVisit; 38 alias visit = SQLASTVisitorAdapter.visit; 39 40 override 41 public void endVisit(PGSelectQueryBlock.WindowClause x) { 42 43 } 44 45 override 46 public bool visit(PGSelectQueryBlock.WindowClause x) { 47 48 return true; 49 } 50 51 override 52 public void endVisit(PGSelectQueryBlock.FetchClause x) { 53 54 } 55 56 override 57 public bool visit(PGSelectQueryBlock.FetchClause x) { 58 59 return true; 60 } 61 62 override 63 public void endVisit(PGSelectQueryBlock.ForClause x) { 64 65 } 66 67 override 68 public bool visit(PGSelectQueryBlock.ForClause x) { 69 70 return true; 71 } 72 73 override 74 public void endVisit(PGDeleteStatement x) { 75 76 } 77 78 override 79 public bool visit(PGDeleteStatement x) { 80 81 return true; 82 } 83 84 override 85 public void endVisit(PGInsertStatement x) { 86 87 } 88 89 override 90 public bool visit(PGInsertStatement x) { 91 return true; 92 } 93 94 override 95 public void endVisit(PGSelectStatement x) { 96 97 } 98 99 override 100 public bool visit(PGSelectStatement x) { 101 return true; 102 } 103 104 override 105 public void endVisit(PGUpdateStatement x) { 106 107 } 108 109 override 110 public bool visit(PGUpdateStatement x) { 111 return true; 112 } 113 114 override 115 public void endVisit(PGSelectQueryBlock x) { 116 117 } 118 119 override 120 public bool visit(PGSelectQueryBlock x) { 121 return true; 122 } 123 124 override 125 public void endVisit(PGFunctionTableSource x) { 126 127 } 128 129 override 130 public bool visit(PGFunctionTableSource x) { 131 return true; 132 } 133 134 override 135 public bool visit(PGTypeCastExpr x) { 136 return true; 137 } 138 139 override 140 public void endVisit(PGTypeCastExpr x) { 141 142 } 143 144 override 145 public void endVisit(PGValuesQuery x) { 146 147 } 148 149 override 150 public bool visit(PGValuesQuery x) { 151 return true; 152 } 153 154 override 155 public void endVisit(PGExtractExpr x) { 156 157 } 158 159 override 160 public bool visit(PGExtractExpr x) { 161 return true; 162 } 163 164 override 165 public void endVisit(PGBoxExpr x) { 166 167 } 168 169 override 170 public bool visit(PGBoxExpr x) { 171 return true; 172 } 173 174 override 175 public void endVisit(PGPointExpr x) { 176 177 } 178 179 override 180 public bool visit(PGPointExpr x) { 181 return true; 182 } 183 184 override 185 public void endVisit(PGMacAddrExpr x) { 186 187 } 188 189 override 190 public bool visit(PGMacAddrExpr x) { 191 return true; 192 } 193 194 override 195 public void endVisit(PGInetExpr x) { 196 197 } 198 199 override 200 public bool visit(PGInetExpr x) { 201 return true; 202 } 203 204 override 205 public void endVisit(PGCidrExpr x) { 206 207 } 208 209 override 210 public bool visit(PGCidrExpr x) { 211 return true; 212 } 213 214 override 215 public void endVisit(PGPolygonExpr x) { 216 217 } 218 219 override 220 public bool visit(PGPolygonExpr x) { 221 return true; 222 } 223 224 override 225 public void endVisit(PGCircleExpr x) { 226 227 } 228 229 override 230 public bool visit(PGCircleExpr x) { 231 return true; 232 } 233 234 override 235 public void endVisit(PGLineSegmentsExpr x) { 236 237 } 238 239 override 240 public bool visit(PGLineSegmentsExpr x) { 241 return true; 242 } 243 244 override 245 public void endVisit(PGShowStatement x) { 246 247 } 248 249 override 250 public bool visit(PGShowStatement x) { 251 return true; 252 } 253 254 override 255 public void endVisit(PGStartTransactionStatement x) { 256 257 } 258 259 override 260 public bool visit(PGStartTransactionStatement x) { 261 return true; 262 } 263 264 override 265 public void endVisit(PGConnectToStatement x) { 266 267 } 268 269 override 270 public bool visit(PGConnectToStatement x) { 271 return true; 272 } 273 274 }