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.visitor.SQLASTVisitorAdapter;
17 
18 import hunt.sql.ast;
19 import hunt.sql.ast.expr;
20 import hunt.sql.ast.statement;
21 import hunt.sql.ast.statement.SQLInsertStatement;
22 // import hunt.sql.ast.statement.SQLInsertStatement.ValuesClause;
23 // import hunt.sql.ast.statement.SQLMergeStatement.MergeInsertClause;
24 // import hunt.sql.ast.statement.SQLMergeStatement.MergeUpdateClause;
25 import hunt.sql.ast.statement.SQLWhileStatement;
26 import hunt.sql.ast.statement.SQLDeclareStatement;
27 import hunt.sql.ast.statement.SQLCommitStatement;
28 import hunt.sql.visitor.SQLASTVisitor;
29 import hunt.sql.visitor.VisitorFeature;
30 
31 
32 class SQLASTVisitorAdapter : SQLASTVisitor {
33     protected int features;
34 
35     void endVisit(SQLAllColumnExpr x) {
36     }
37 
38     void endVisit(SQLBetweenExpr x) {
39     }
40 
41     void endVisit(SQLBinaryOpExpr x) {
42     }
43 
44     void endVisit(SQLCaseExpr x) {
45     }
46 
47     void endVisit(SQLCaseExpr.Item x) {
48     }
49 
50     void endVisit(SQLCaseStatement x) {
51     }
52 
53     void endVisit(SQLCaseStatement.Item x) {
54     }
55 
56     void endVisit(SQLCharExpr x) {
57     }
58 
59     void endVisit(SQLIdentifierExpr x) {
60     }
61 
62     void endVisit(SQLInListExpr x) {
63     }
64 
65     void endVisit(SQLIntegerExpr x) {
66     }
67 
68     void endVisit(SQLExistsExpr x) {
69     }
70 
71     void endVisit(SQLNCharExpr x) {
72     }
73 
74     void endVisit(SQLNotExpr x) {
75     }
76 
77     void endVisit(SQLNullExpr x) {
78     }
79 
80     void endVisit(SQLNumberExpr x) {
81     }
82 
83     void endVisit(SQLPropertyExpr x) {
84     }
85 
86     void endVisit(SQLSelectGroupByClause x) {
87     }
88 
89     void endVisit(SQLSelectItem x) {
90     }
91 
92     void endVisit(SQLSelectStatement selectStatement) {
93     }
94 
95     void postVisit(SQLObject astNode) {
96     }
97 
98     void preVisit(SQLObject astNode) {
99     }
100 
101     bool visit(SQLAllColumnExpr x) {
102         return true;
103     }
104 
105     bool visit(SQLBetweenExpr x) {
106         return true;
107     }
108 
109     bool visit(SQLBinaryOpExpr x) {
110         return true;
111     }
112 
113     bool visit(SQLCaseExpr x) {
114         return true;
115     }
116 
117     bool visit(SQLCaseExpr.Item x) {
118         return true;
119     }
120 
121     bool visit(SQLCaseStatement x) {
122         return true;
123     }
124 
125     bool visit(SQLCaseStatement.Item x) {
126         return true;
127     }
128 
129     bool visit(SQLCastExpr x) {
130         return true;
131     }
132 
133     bool visit(SQLCharExpr x) {
134         return true;
135     }
136 
137     bool visit(SQLExistsExpr x) {
138         return true;
139     }
140 
141     bool visit(SQLIdentifierExpr x) {
142         return true;
143     }
144 
145     bool visit(SQLInListExpr x) {
146         return true;
147     }
148 
149     bool visit(SQLIntegerExpr x) {
150         return true;
151     }
152 
153     bool visit(SQLNCharExpr x) {
154         return true;
155     }
156 
157     bool visit(SQLNotExpr x) {
158         return true;
159     }
160 
161     bool visit(SQLNullExpr x) {
162         return true;
163     }
164 
165     bool visit(SQLNumberExpr x) {
166         return true;
167     }
168 
169     bool visit(SQLPropertyExpr x) {
170         return true;
171     }
172 
173     bool visit(SQLSelectGroupByClause x) {
174         return true;
175     }
176 
177     bool visit(SQLSelectItem x) {
178         return true;
179     }
180 
181     void endVisit(SQLCastExpr x) {
182     }
183 
184     bool visit(SQLSelectStatement astNode) {
185         return true;
186     }
187 
188     void endVisit(SQLAggregateExpr x) {
189     }
190 
191     bool visit(SQLAggregateExpr x) {
192         return true;
193     }
194 
195     bool visit(SQLVariantRefExpr x) {
196         return true;
197     }
198 
199     void endVisit(SQLVariantRefExpr x) {
200     }
201 
202     bool visit(SQLQueryExpr x) {
203         return true;
204     }
205 
206     void endVisit(SQLQueryExpr x) {
207     }
208 
209     bool visit(SQLSelect x) {
210         return true;
211     }
212 
213     void endVisit(SQLSelect select) {
214     }
215 
216     bool visit(SQLSelectQueryBlock x) {
217         return true;
218     }
219 
220     void endVisit(SQLSelectQueryBlock x) {
221     }
222 
223     bool visit(SQLExprTableSource x) {
224         return true;
225     }
226 
227     void endVisit(SQLExprTableSource x) {
228     }
229 
230     bool visit(SQLOrderBy x) {
231         return true;
232     }
233 
234     void endVisit(SQLOrderBy x) {
235     }
236 
237     bool visit(SQLSelectOrderByItem x) {
238         return true;
239     }
240 
241     void endVisit(SQLSelectOrderByItem x) {
242     }
243 
244     bool visit(SQLDropTableStatement x) {
245         return true;
246     }
247 
248     void endVisit(SQLDropTableStatement x) {
249     }
250 
251     bool visit(SQLCreateTableStatement x) {
252         return true;
253     }
254 
255     void endVisit(SQLCreateTableStatement x) {
256     }
257 
258     bool visit(SQLColumnDefinition x) {
259         return true;
260     }
261 
262     void endVisit(SQLColumnDefinition x) {
263     }
264 
265     bool visit(SQLColumnDefinition.Identity x) {
266         return true;
267     }
268 
269     void endVisit(SQLColumnDefinition.Identity x) {
270     }
271 
272     bool visit(SQLDataType x) {
273         return true;
274     }
275 
276     void endVisit(SQLDataType x) {
277     }
278 
279     bool visit(SQLDeleteStatement x) {
280         return true;
281     }
282 
283     void endVisit(SQLDeleteStatement x) {
284     }
285 
286     bool visit(SQLCurrentOfCursorExpr x) {
287         return true;
288     }
289 
290     void endVisit(SQLCurrentOfCursorExpr x) {
291     }
292 
293     bool visit(SQLInsertStatement x) {
294         return true;
295     }
296 
297     void endVisit(SQLInsertStatement x) {
298     }
299 
300     bool visit(SQLUpdateSetItem x) {
301         return true;
302     }
303 
304     void endVisit(SQLUpdateSetItem x) {
305     }
306 
307     bool visit(SQLUpdateStatement x) {
308         return true;
309     }
310 
311     void endVisit(SQLUpdateStatement x) {
312     }
313 
314     bool visit(SQLCreateViewStatement x) {
315         return true;
316     }
317 
318     void endVisit(SQLCreateViewStatement x) {
319     }
320 
321     bool visit(SQLAlterViewStatement x) {
322         return true;
323     }
324 
325     void endVisit(SQLAlterViewStatement x) {
326     }
327 
328     bool visit(SQLCreateViewStatement.Column x) {
329         return true;
330     }
331 
332     void endVisit(SQLCreateViewStatement.Column x) {
333     }
334 
335     bool visit(SQLNotNullConstraint x) {
336         return true;
337     }
338 
339     void endVisit(SQLNotNullConstraint x) {
340     }
341 
342     //override
343     void endVisit(SQLMethodInvokeExpr x) {
344 
345     }
346 
347     //override
348     bool visit(SQLMethodInvokeExpr x) {
349         return true;
350     }
351 
352     //override
353     void endVisit(SQLUnionQuery x) {
354 
355     }
356 
357     //override
358     bool visit(SQLUnionQuery x) {
359         return true;
360     }
361 
362     //override
363     bool visit(SQLUnaryExpr x) {
364         return true;
365     }
366 
367     //override
368     void endVisit(SQLUnaryExpr x) {
369 
370     }
371 
372     //override
373     bool visit(SQLHexExpr x) {
374         return false;
375     }
376 
377     //override
378     void endVisit(SQLHexExpr x) {
379 
380     }
381 
382     bool visit(SQLBlobExpr x) {
383         return false;
384     }
385 
386     void endVisit(SQLBlobExpr x) {
387 
388     }
389     //override
390     void endVisit(SQLSetStatement x) {
391 
392     }
393 
394     //override
395     bool visit(SQLSetStatement x) {
396         return true;
397     }
398 
399     //override
400     void endVisit(SQLAssignItem x) {
401 
402     }
403 
404     //override
405     bool visit(SQLAssignItem x) {
406         return true;
407     }
408 
409     //override
410     void endVisit(SQLCallStatement x) {
411 
412     }
413 
414     //override
415     bool visit(SQLCallStatement x) {
416         return true;
417     }
418 
419     //override
420     void endVisit(SQLJoinTableSource x) {
421 
422     }
423 
424     //override
425     bool visit(SQLJoinTableSource x) {
426         return true;
427     }
428 
429     //override
430     bool visit(ValuesClause x) {
431         return true;
432     }
433 
434     //override
435     void endVisit(ValuesClause x) {
436 
437     }
438 
439     //override
440     void endVisit(SQLSomeExpr x) {
441 
442     }
443 
444     //override
445     bool visit(SQLSomeExpr x) {
446         return true;
447     }
448 
449     //override
450     void endVisit(SQLAnyExpr x) {
451 
452     }
453 
454     //override
455     bool visit(SQLAnyExpr x) {
456         return true;
457     }
458 
459     //override
460     void endVisit(SQLAllExpr x) {
461 
462     }
463 
464     //override
465     bool visit(SQLAllExpr x) {
466         return true;
467     }
468 
469     //override
470     void endVisit(SQLInSubQueryExpr x) {
471 
472     }
473 
474     //override
475     bool visit(SQLInSubQueryExpr x) {
476         return true;
477     }
478 
479     //override
480     void endVisit(SQLListExpr x) {
481 
482     }
483 
484     //override
485     bool visit(SQLListExpr x) {
486         return true;
487     }
488 
489     //override
490     void endVisit(SQLSubqueryTableSource x) {
491 
492     }
493 
494     //override
495     bool visit(SQLSubqueryTableSource x) {
496         return true;
497     }
498 
499     //override
500     void endVisit(SQLTruncateStatement x) {
501 
502     }
503 
504     //override
505     bool visit(SQLTruncateStatement x) {
506         return true;
507     }
508 
509     //override
510     void endVisit(SQLDefaultExpr x) {
511 
512     }
513 
514     //override
515     bool visit(SQLDefaultExpr x) {
516         return true;
517     }
518 
519     //override
520     void endVisit(SQLCommentStatement x) {
521 
522     }
523 
524     //override
525     bool visit(SQLCommentStatement x) {
526         return true;
527     }
528 
529     //override
530     void endVisit(SQLUseStatement x) {
531 
532     }
533 
534     //override
535     bool visit(SQLUseStatement x) {
536         return true;
537     }
538 
539     //override
540     bool visit(SQLAlterTableAddColumn x) {
541         return true;
542     }
543 
544     //override
545     void endVisit(SQLAlterTableAddColumn x) {
546 
547     }
548 
549     //override
550     bool visit(SQLAlterTableDropColumnItem x) {
551         return true;
552     }
553 
554     //override
555     void endVisit(SQLAlterTableDropColumnItem x) {
556 
557     }
558 
559     //override
560     bool visit(SQLDropIndexStatement x) {
561         return true;
562     }
563 
564     //override
565     void endVisit(SQLDropIndexStatement x) {
566 
567     }
568 
569     //override
570     bool visit(SQLDropViewStatement x) {
571         return true;
572     }
573 
574     //override
575     void endVisit(SQLDropViewStatement x) {
576 
577     }
578 
579     //override
580     bool visit(SQLSavePointStatement x) {
581         return false;
582     }
583 
584     //override
585     void endVisit(SQLSavePointStatement x) {
586 
587     }
588 
589     //override
590     bool visit(SQLRollbackStatement x) {
591         return true;
592     }
593 
594     //override
595     void endVisit(SQLRollbackStatement x) {
596 
597     }
598 
599     //override
600     bool visit(SQLReleaseSavePointStatement x) {
601         return true;
602     }
603 
604     //override
605     void endVisit(SQLReleaseSavePointStatement x) {
606     }
607 
608     //override
609     bool visit(SQLCommentHint x) {
610         return true;
611     }
612 
613     //override
614     void endVisit(SQLCommentHint x) {
615 
616     }
617 
618     //override
619     void endVisit(SQLCreateDatabaseStatement x) {
620 
621     }
622 
623     //override
624     bool visit(SQLCreateDatabaseStatement x) {
625         return true;
626     }
627 
628     //override
629     bool visit(SQLAlterTableDropIndex x) {
630         return true;
631     }
632 
633     //override
634     void endVisit(SQLAlterTableDropIndex x) {
635 
636     }
637 
638     //override
639     void endVisit(SQLOver x) {
640     }
641 
642     //override
643     bool visit(SQLOver x) {
644         return true;
645     }
646     
647     //override
648     void endVisit(SQLKeep x) {
649     }
650     
651     //override
652     bool visit(SQLKeep x) {
653         return true;
654     }
655 
656     //override
657     void endVisit(SQLColumnPrimaryKey x) {
658 
659     }
660 
661     //override
662     bool visit(SQLColumnPrimaryKey x) {
663         return true;
664     }
665 
666     //override
667     void endVisit(SQLColumnUniqueKey x) {
668 
669     }
670 
671     //override
672     bool visit(SQLColumnUniqueKey x) {
673         return true;
674     }
675 
676     //override
677     void endVisit(SQLWithSubqueryClause x) {
678     }
679 
680     //override
681     bool visit(SQLWithSubqueryClause x) {
682         return true;
683     }
684 
685     //override
686     void endVisit(SQLWithSubqueryClause.Entry x) {
687     }
688 
689     //override
690     bool visit(SQLWithSubqueryClause.Entry x) {
691         return true;
692     }
693 
694     //override
695     bool visit(SQLCharacterDataType x) {
696         return true;
697     }
698 
699     //override
700     void endVisit(SQLCharacterDataType x) {
701 
702     }
703 
704     //override
705     void endVisit(SQLAlterTableAlterColumn x) {
706 
707     }
708 
709     //override
710     bool visit(SQLAlterTableAlterColumn x) {
711         return true;
712     }
713 
714     //override
715     bool visit(SQLCheck x) {
716         return true;
717     }
718 
719     //override
720     void endVisit(SQLCheck x) {
721 
722     }
723 
724     //override
725     bool visit(SQLAlterTableDropForeignKey x) {
726         return true;
727     }
728 
729     //override
730     void endVisit(SQLAlterTableDropForeignKey x) {
731 
732     }
733 
734     //override
735     bool visit(SQLAlterTableDropPrimaryKey x) {
736         return true;
737     }
738 
739     //override
740     void endVisit(SQLAlterTableDropPrimaryKey x) {
741 
742     }
743 
744     //override
745     bool visit(SQLAlterTableDisableKeys x) {
746         return true;
747     }
748 
749     //override
750     void endVisit(SQLAlterTableDisableKeys x) {
751 
752     }
753 
754     //override
755     bool visit(SQLAlterTableEnableKeys x) {
756         return true;
757     }
758 
759     //override
760     void endVisit(SQLAlterTableEnableKeys x) {
761 
762     }
763 
764     //override
765     bool visit(SQLAlterTableStatement x) {
766         return true;
767     }
768 
769     //override
770     void endVisit(SQLAlterTableStatement x) {
771 
772     }
773 
774     //override
775     bool visit(SQLAlterTableDisableConstraint x) {
776         return true;
777     }
778 
779     //override
780     void endVisit(SQLAlterTableDisableConstraint x) {
781 
782     }
783 
784     //override
785     bool visit(SQLAlterTableEnableConstraint x) {
786         return true;
787     }
788 
789     //override
790     void endVisit(SQLAlterTableEnableConstraint x) {
791 
792     }
793 
794     //override
795     bool visit(SQLColumnCheck x) {
796         return true;
797     }
798 
799     //override
800     void endVisit(SQLColumnCheck x) {
801 
802     }
803 
804     //override
805     bool visit(SQLExprHint x) {
806         return true;
807     }
808 
809     //override
810     void endVisit(SQLExprHint x) {
811 
812     }
813 
814     //override
815     bool visit(SQLAlterTableDropConstraint x) {
816         return true;
817     }
818 
819     //override
820     void endVisit(SQLAlterTableDropConstraint x) {
821 
822     }
823 
824     //override
825     bool visit(SQLUnique x) {
826         foreach(SQLSelectOrderByItem column ; x.getColumns()) {
827             column.accept(this);
828         }
829         return false;
830     }
831 
832     //override
833     void endVisit(SQLUnique x) {
834 
835     }
836 
837     //override
838     bool visit(SQLCreateIndexStatement x) {
839         return true;
840     }
841 
842     //override
843     void endVisit(SQLCreateIndexStatement x) {
844 
845     }
846 
847     //override
848     bool visit(SQLPrimaryKeyImpl x) {
849         return true;
850     }
851 
852     //override
853     void endVisit(SQLPrimaryKeyImpl x) {
854 
855     }
856 
857     //override
858     bool visit(SQLAlterTableRenameColumn x) {
859         return true;
860     }
861 
862     //override
863     void endVisit(SQLAlterTableRenameColumn x) {
864 
865     }
866 
867     //override
868     bool visit(SQLColumnReference x) {
869         return true;
870     }
871 
872     //override
873     void endVisit(SQLColumnReference x) {
874 
875     }
876 
877     //override
878     bool visit(SQLForeignKeyImpl x) {
879         return true;
880     }
881 
882     //override
883     void endVisit(SQLForeignKeyImpl x) {
884 
885     }
886 
887     //override
888     bool visit(SQLDropSequenceStatement x) {
889         return true;
890     }
891 
892     //override
893     void endVisit(SQLDropSequenceStatement x) {
894 
895     }
896 
897     //override
898     bool visit(SQLDropTriggerStatement x) {
899         return true;
900     }
901 
902     //override
903     void endVisit(SQLDropTriggerStatement x) {
904 
905     }
906 
907     //override
908     void endVisit(SQLDropUserStatement x) {
909 
910     }
911 
912     //override
913     bool visit(SQLDropUserStatement x) {
914         return true;
915     }
916 
917     //override
918     void endVisit(SQLExplainStatement x) {
919 
920     }
921 
922     //override
923     bool visit(SQLExplainStatement x) {
924         return true;
925     }
926 
927     //override
928     void endVisit(SQLGrantStatement x) {
929 
930     }
931 
932     //override
933     bool visit(SQLGrantStatement x) {
934         return true;
935     }
936 
937     //override
938     void endVisit(SQLDropDatabaseStatement x) {
939 
940     }
941 
942     //override
943     bool visit(SQLDropDatabaseStatement x) {
944         return true;
945     }
946 
947     //override
948     void endVisit(SQLAlterTableAddIndex x) {
949 
950     }
951 
952     //override
953     bool visit(SQLAlterTableAddIndex x) {
954         return true;
955     }
956 
957     //override
958     void endVisit(SQLAlterTableAddConstraint x) {
959 
960     }
961 
962     //override
963     bool visit(SQLAlterTableAddConstraint x) {
964         return true;
965     }
966 
967     //override
968     void endVisit(SQLCreateTriggerStatement x) {
969 
970     }
971 
972     //override
973     bool visit(SQLCreateTriggerStatement x) {
974         return true;
975     }
976 
977     //override
978     void endVisit(SQLDropFunctionStatement x) {
979 
980     }
981 
982     //override
983     bool visit(SQLDropFunctionStatement x) {
984         return true;
985     }
986 
987     //override
988     void endVisit(SQLDropTableSpaceStatement x) {
989 
990     }
991 
992     //override
993     bool visit(SQLDropTableSpaceStatement x) {
994         return true;
995     }
996 
997     //override
998     void endVisit(SQLDropProcedureStatement x) {
999 
1000     }
1001 
1002     //override
1003     bool visit(SQLDropProcedureStatement x) {
1004         return true;
1005     }
1006 
1007     //override
1008     void endVisit(SQLBooleanExpr x) {
1009 
1010     }
1011 
1012     //override
1013     bool visit(SQLBooleanExpr x) {
1014         return true;
1015     }
1016 
1017     //override
1018     void endVisit(SQLUnionQueryTableSource x) {
1019 
1020     }
1021 
1022     //override
1023     bool visit(SQLUnionQueryTableSource x) {
1024         return true;
1025     }
1026 
1027     //override
1028     void endVisit(SQLTimestampExpr x) {
1029 
1030     }
1031 
1032     //override
1033     bool visit(SQLTimestampExpr x) {
1034         return true;
1035     }
1036 
1037     //override
1038     void endVisit(SQLRevokeStatement x) {
1039 
1040     }
1041 
1042     //override
1043     bool visit(SQLRevokeStatement x) {
1044         return true;
1045     }
1046 
1047     //override
1048     void endVisit(SQLBinaryExpr x) {
1049 
1050     }
1051 
1052     //override
1053     bool visit(SQLBinaryExpr x) {
1054         return true;
1055     }
1056 
1057     //override
1058     void endVisit(SQLAlterTableRename x) {
1059 
1060     }
1061 
1062     //override
1063     bool visit(SQLAlterTableRename x) {
1064         return true;
1065     }
1066 
1067     //override
1068     void endVisit(SQLAlterViewRenameStatement x) {
1069 
1070     }
1071 
1072     //override
1073     bool visit(SQLAlterViewRenameStatement x) {
1074         return true;
1075     }
1076 
1077     //override
1078     void endVisit(SQLShowTablesStatement x) {
1079 
1080     }
1081 
1082     //override
1083     bool visit(SQLShowTablesStatement x) {
1084         return true;
1085     }
1086 
1087     //override
1088     void endVisit(SQLAlterTableAddPartition x) {
1089 
1090     }
1091 
1092     //override
1093     bool visit(SQLAlterTableAddPartition x) {
1094         return true;
1095     }
1096 
1097     //override
1098     void endVisit(SQLAlterTableDropPartition x) {
1099 
1100     }
1101 
1102     //override
1103     bool visit(SQLAlterTableDropPartition x) {
1104         return true;
1105     }
1106 
1107     //override
1108     void endVisit(SQLAlterTableRenamePartition x) {
1109 
1110     }
1111 
1112     //override
1113     bool visit(SQLAlterTableRenamePartition x) {
1114         return true;
1115     }
1116 
1117     //override
1118     void endVisit(SQLAlterTableSetComment x) {
1119 
1120     }
1121 
1122     //override
1123     bool visit(SQLAlterTableSetComment x) {
1124         return true;
1125     }
1126 
1127     //override
1128     void endVisit(SQLAlterTableSetLifecycle x) {
1129 
1130     }
1131 
1132     //override
1133     bool visit(SQLAlterTableSetLifecycle x) {
1134         return true;
1135     }
1136 
1137     //override
1138     void endVisit(SQLAlterTableEnableLifecycle x) {
1139 
1140     }
1141 
1142     //override
1143     bool visit(SQLAlterTableEnableLifecycle x) {
1144         return true;
1145     }
1146 
1147     //override
1148     void endVisit(SQLAlterTableDisableLifecycle x) {
1149 
1150     }
1151 
1152     //override
1153     bool visit(SQLAlterTableDisableLifecycle x) {
1154         return true;
1155     }
1156 
1157     //override
1158     void endVisit(SQLAlterTableTouch x) {
1159 
1160     }
1161 
1162     //override
1163     bool visit(SQLAlterTableTouch x) {
1164         return true;
1165     }
1166 
1167     //override
1168     void endVisit(SQLArrayExpr x) {
1169 
1170     }
1171 
1172     //override
1173     bool visit(SQLArrayExpr x) {
1174         return true;
1175     }
1176 
1177     //override
1178     void endVisit(SQLOpenStatement x) {
1179 
1180     }
1181 
1182     //override
1183     bool visit(SQLOpenStatement x) {
1184         return true;
1185     }
1186 
1187     //override
1188     void endVisit(SQLFetchStatement x) {
1189 
1190     }
1191 
1192     //override
1193     bool visit(SQLFetchStatement x) {
1194         return true;
1195     }
1196 
1197     //override
1198     void endVisit(SQLCloseStatement x) {
1199 
1200     }
1201 
1202     //override
1203     bool visit(SQLCloseStatement x) {
1204         return true;
1205     }
1206 
1207     //override
1208     bool visit(SQLGroupingSetExpr x) {
1209         return true;
1210     }
1211 
1212     //override
1213     void endVisit(SQLGroupingSetExpr x) {
1214 
1215     }
1216 
1217     //override
1218     bool visit(SQLIfStatement x) {
1219         return true;
1220     }
1221 
1222     //override
1223     void endVisit(SQLIfStatement x) {
1224 
1225     }
1226 
1227     //override
1228     bool visit(SQLIfStatement.Else x) {
1229         return true;
1230     }
1231 
1232     //override
1233     void endVisit(SQLIfStatement.Else x) {
1234 
1235     }
1236 
1237     //override
1238     bool visit(SQLIfStatement.ElseIf x) {
1239         return true;
1240     }
1241 
1242     //override
1243     void endVisit(SQLIfStatement.ElseIf x) {
1244 
1245     }
1246 
1247     //override
1248     bool visit(SQLLoopStatement x) {
1249         return true;
1250     }
1251 
1252     //override
1253     void endVisit(SQLLoopStatement x) {
1254 
1255     }
1256 
1257     //override
1258     bool visit(SQLParameter x) {
1259         return true;
1260     }
1261 
1262     //override
1263     void endVisit(SQLParameter x) {
1264 
1265     }
1266 
1267     //override
1268     bool visit(SQLCreateProcedureStatement x) {
1269         return true;
1270     }
1271 
1272     //override
1273     void endVisit(SQLCreateProcedureStatement x) {
1274 
1275     }
1276 
1277     //override
1278     bool visit(SQLCreateFunctionStatement x) {
1279         return true;
1280     }
1281 
1282     //override
1283     void endVisit(SQLCreateFunctionStatement x) {
1284 
1285     }
1286 
1287     //override
1288     bool visit(SQLBlockStatement x) {
1289         return true;
1290     }
1291 
1292     //override
1293     void endVisit(SQLBlockStatement x) {
1294 
1295     }
1296 
1297     //override
1298     bool visit(SQLAlterTableDropKey x) {
1299         return true;
1300     }
1301 
1302     //override
1303     void endVisit(SQLAlterTableDropKey x) {
1304 
1305     }
1306 
1307     //override
1308     bool visit(SQLDeclareItem x) {
1309         return true;
1310     }
1311 
1312     //override
1313     void endVisit(SQLDeclareItem x) {
1314     }
1315 
1316     //override
1317     bool visit(SQLPartitionValue x) {
1318         return true;
1319     }
1320 
1321     //override
1322     void endVisit(SQLPartitionValue x) {
1323 
1324     }
1325 
1326     //override
1327     bool visit(SQLPartition x) {
1328         return true;
1329     }
1330 
1331     //override
1332     void endVisit(SQLPartition x) {
1333 
1334     }
1335 
1336     //override
1337     bool visit(SQLPartitionByRange x) {
1338         return true;
1339     }
1340 
1341     //override
1342     void endVisit(SQLPartitionByRange x) {
1343 
1344     }
1345 
1346     //override
1347     bool visit(SQLPartitionByHash x) {
1348         return true;
1349     }
1350 
1351     //override
1352     void endVisit(SQLPartitionByHash x) {
1353 
1354     }
1355 
1356     //override
1357     bool visit(SQLPartitionByList x) {
1358         return true;
1359     }
1360 
1361     //override
1362     void endVisit(SQLPartitionByList x) {
1363 
1364     }
1365 
1366     //override
1367     bool visit(SQLSubPartition x) {
1368         return true;
1369     }
1370 
1371     //override
1372     void endVisit(SQLSubPartition x) {
1373 
1374     }
1375 
1376     //override
1377     bool visit(SQLSubPartitionByHash x) {
1378         return true;
1379     }
1380 
1381     //override
1382     void endVisit(SQLSubPartitionByHash x) {
1383 
1384     }
1385 
1386     //override
1387     bool visit(SQLSubPartitionByList x) {
1388         return true;
1389     }
1390 
1391     //override
1392     void endVisit(SQLSubPartitionByList x) {
1393 
1394     }
1395 
1396     //override
1397     bool visit(SQLAlterDatabaseStatement x) {
1398         return true;
1399     }
1400 
1401     //override
1402     void endVisit(SQLAlterDatabaseStatement x) {
1403 
1404     }
1405 
1406     //override
1407     bool visit(SQLAlterTableConvertCharSet x) {
1408         return true;
1409     }
1410 
1411     //override
1412     void endVisit(SQLAlterTableConvertCharSet x) {
1413 
1414     }
1415 
1416     //override
1417     bool visit(SQLAlterTableReOrganizePartition x) {
1418         return true;
1419     }
1420 
1421     //override
1422     void endVisit(SQLAlterTableReOrganizePartition x) {
1423 
1424     }
1425 
1426     //override
1427     bool visit(SQLAlterTableCoalescePartition x) {
1428         return true;
1429     }
1430 
1431     //override
1432     void endVisit(SQLAlterTableCoalescePartition x) {
1433 
1434     }
1435 
1436     //override
1437     bool visit(SQLAlterTableTruncatePartition x) {
1438         return true;
1439     }
1440 
1441     //override
1442     void endVisit(SQLAlterTableTruncatePartition x) {
1443 
1444     }
1445 
1446     //override
1447     bool visit(SQLAlterTableDiscardPartition x) {
1448         return true;
1449     }
1450 
1451     //override
1452     void endVisit(SQLAlterTableDiscardPartition x) {
1453 
1454     }
1455 
1456     //override
1457     bool visit(SQLAlterTableImportPartition x) {
1458         return true;
1459     }
1460 
1461     //override
1462     void endVisit(SQLAlterTableImportPartition x) {
1463 
1464     }
1465 
1466     //override
1467     bool visit(SQLAlterTableAnalyzePartition x) {
1468         return true;
1469     }
1470 
1471     //override
1472     void endVisit(SQLAlterTableAnalyzePartition x) {
1473 
1474     }
1475 
1476     //override
1477     bool visit(SQLAlterTableCheckPartition x) {
1478         return true;
1479     }
1480 
1481     //override
1482     void endVisit(SQLAlterTableCheckPartition x) {
1483 
1484     }
1485 
1486     //override
1487     bool visit(SQLAlterTableOptimizePartition x) {
1488         return true;
1489     }
1490 
1491     //override
1492     void endVisit(SQLAlterTableOptimizePartition x) {
1493 
1494     }
1495 
1496     //override
1497     bool visit(SQLAlterTableRebuildPartition x) {
1498         return true;
1499     }
1500 
1501     //override
1502     void endVisit(SQLAlterTableRebuildPartition x) {
1503 
1504     }
1505 
1506     //override
1507     bool visit(SQLAlterTableRepairPartition x) {
1508         return true;
1509     }
1510 
1511     //override
1512     void endVisit(SQLAlterTableRepairPartition x) {
1513 
1514     }
1515     
1516     //override
1517     bool visit(SQLSequenceExpr x) {
1518         return true;
1519     }
1520     
1521     //override
1522     void endVisit(SQLSequenceExpr x) {
1523         
1524     }
1525 
1526     //override
1527     bool visit(SQLMergeStatement x) {
1528         return true;
1529     }
1530 
1531     //override
1532     void endVisit(SQLMergeStatement x) {
1533         
1534     }
1535 
1536     //override
1537     bool visit(SQLMergeStatement.MergeUpdateClause x) {
1538         return true;
1539     }
1540 
1541     //override
1542     void endVisit(SQLMergeStatement.MergeUpdateClause x) {
1543         
1544     }
1545 
1546     //override
1547     bool visit(SQLMergeStatement.MergeInsertClause x) {
1548         return true;
1549     }
1550 
1551     //override
1552     void endVisit(SQLMergeStatement.MergeInsertClause x) {
1553         
1554     }
1555 
1556     //override
1557     bool visit(SQLErrorLoggingClause x) {
1558         return true;
1559     }
1560 
1561     //override
1562     void endVisit(SQLErrorLoggingClause x) {
1563 
1564     }
1565 
1566     //override
1567     bool visit(SQLNullConstraint x) {
1568 	return true;
1569     }
1570 
1571     //override
1572     void endVisit(SQLNullConstraint x) {
1573     }
1574 
1575     //override
1576     bool visit(SQLCreateSequenceStatement x) {
1577         return true;
1578     }
1579 
1580     //override
1581     void endVisit(SQLCreateSequenceStatement x) {
1582     }
1583 
1584     //override
1585     bool visit(SQLDateExpr x) {
1586         return true;
1587     }
1588 
1589     //override
1590     void endVisit(SQLDateExpr x) {
1591 
1592     }
1593 
1594     //override
1595     bool visit(SQLLimit x) {
1596         return true;
1597     }
1598 
1599     //override
1600     void endVisit(SQLLimit x) {
1601 
1602     }
1603 
1604     //override
1605     void endVisit(SQLStartTransactionStatement x) {
1606 
1607     }
1608 
1609     //override
1610     bool visit(SQLStartTransactionStatement x) {
1611         return true;
1612     }
1613 
1614     //override
1615     void endVisit(SQLDescribeStatement x) {
1616 
1617     }
1618 
1619     //override
1620     bool visit(SQLDescribeStatement x) {
1621         return true;
1622     }
1623 
1624     //override
1625     bool visit(SQLWhileStatement x) {
1626         return true;
1627     }
1628 
1629     //override
1630     void endVisit(SQLWhileStatement x) {
1631 
1632     }
1633 
1634 
1635     //override
1636     bool visit(SQLDeclareStatement x) {
1637         return true;
1638     }
1639 
1640     //override
1641     void endVisit(SQLDeclareStatement x) {
1642 
1643     }
1644 
1645     //override
1646     bool visit(SQLReturnStatement x) {
1647         return true;
1648     }
1649 
1650     //override
1651     void endVisit(SQLReturnStatement x) {
1652 
1653     }
1654 
1655     //override
1656     bool visit(SQLArgument x) {
1657         return true;
1658     }
1659 
1660     //override
1661     void endVisit(SQLArgument x) {
1662 
1663     }
1664 
1665     //override
1666     bool visit(SQLCommitStatement x) {
1667         return true;
1668     }
1669 
1670     //override
1671     void endVisit(SQLCommitStatement x) {
1672 
1673     }
1674 
1675     //override
1676     bool visit(SQLFlashbackExpr x) {
1677         return true;
1678     }
1679 
1680     //override
1681     void endVisit(SQLFlashbackExpr x) {
1682 
1683     }
1684 
1685     //override
1686     bool visit(SQLCreateMaterializedViewStatement x) {
1687         return true;
1688     }
1689 
1690     //override
1691     void endVisit(SQLCreateMaterializedViewStatement x) {
1692 
1693     }
1694 
1695     //override
1696     bool visit(SQLBinaryOpExprGroup x) {
1697         return true;
1698     }
1699 
1700     //override
1701     void endVisit(SQLBinaryOpExprGroup x) {
1702 
1703     }
1704 
1705     void config(VisitorFeature feature, bool state) {
1706         features = VisitorFeature.config(features, feature, state);
1707     }
1708 
1709     //override
1710     bool visit(SQLScriptCommitStatement x) {
1711         return true;
1712     }
1713 
1714     //override
1715     void endVisit(SQLScriptCommitStatement x) {
1716 
1717     }
1718 
1719     //override
1720     bool visit(SQLReplaceStatement x) {
1721         return true;
1722     }
1723 
1724     //override
1725     void endVisit(SQLReplaceStatement x) {
1726 
1727     }
1728 
1729     //override
1730     bool visit(SQLCreateUserStatement x) {
1731         return true;
1732     }
1733 
1734     //override
1735     void endVisit(SQLCreateUserStatement x) {
1736 
1737     }
1738 
1739     //override
1740     bool visit(SQLAlterFunctionStatement x) {
1741         return true;
1742     }
1743 
1744     //override
1745     void endVisit(SQLAlterFunctionStatement x) {
1746 
1747     }
1748 
1749     //override
1750     bool visit(SQLAlterTypeStatement x) {
1751         return true;
1752     }
1753 
1754     //override
1755     void endVisit(SQLAlterTypeStatement x) {
1756 
1757     }
1758 
1759     //override
1760     bool visit(SQLIntervalExpr x) {
1761         return true;
1762     }
1763 
1764     //override
1765     void endVisit(SQLIntervalExpr x) {
1766 
1767     }
1768 
1769     //override
1770     bool visit(SQLLateralViewTableSource x) {
1771         return true;
1772     }
1773 
1774     //override
1775     void endVisit(SQLLateralViewTableSource x) {
1776 
1777     }
1778 
1779     //override
1780     bool visit(SQLShowErrorsStatement x) {
1781         return true;
1782     }
1783 
1784     //override
1785     void endVisit(SQLShowErrorsStatement x) {
1786 
1787     }
1788 
1789     //override
1790     bool visit(SQLAlterCharacter x) {
1791         return true;
1792     }
1793 
1794     //override
1795     void endVisit(SQLAlterCharacter x) {
1796 
1797     }
1798 
1799     //override
1800     bool visit(SQLExprStatement x) {
1801         return true;
1802     }
1803 
1804     //override
1805     void endVisit(SQLExprStatement x) {
1806 
1807     }
1808 
1809     //override
1810     bool visit(SQLAlterProcedureStatement x) {
1811         return true;
1812     }
1813 
1814     //override
1815     void endVisit(SQLAlterProcedureStatement x) {
1816 
1817     }
1818 
1819     //override
1820     bool visit(SQLDropEventStatement x) {
1821         return true;
1822     }
1823 
1824     //override
1825     void endVisit(SQLDropEventStatement x) {
1826 
1827     }
1828 
1829     //override
1830     bool visit(SQLDropLogFileGroupStatement x) {
1831         return true;
1832     }
1833 
1834     //override
1835     void endVisit(SQLDropLogFileGroupStatement x) {
1836 
1837     }
1838 
1839     //override
1840     bool visit(SQLDropServerStatement x) {
1841         return true;
1842     }
1843 
1844     //override
1845     void endVisit(SQLDropServerStatement x) {
1846 
1847     }
1848 
1849     //override
1850     bool visit(SQLDropSynonymStatement x) {
1851         return true;
1852     }
1853 
1854     //override
1855     void endVisit(SQLDropSynonymStatement x) {
1856 
1857     }
1858 
1859     //override
1860     bool visit(SQLDropTypeStatement x) {
1861         return true;
1862     }
1863 
1864     //override
1865     void endVisit(SQLDropTypeStatement x) {
1866 
1867     }
1868 
1869     //override
1870     bool visit(SQLRecordDataType x) {
1871         return true;
1872     }
1873 
1874     //override
1875     void endVisit(SQLRecordDataType x) {
1876 
1877     }
1878 
1879     bool visit(SQLExternalRecordFormat x) {
1880         return true;
1881     }
1882 
1883     void endVisit(SQLExternalRecordFormat x) {
1884 
1885     }
1886 
1887     //override
1888     bool visit(SQLArrayDataType x) {
1889         return true;
1890     }
1891 
1892     //override
1893     void endVisit(SQLArrayDataType x) {
1894 
1895     }
1896 
1897     //override
1898     bool visit(SQLMapDataType x) {
1899         return true;
1900     }
1901 
1902     //override
1903     void endVisit(SQLMapDataType x) {
1904 
1905     }
1906 
1907     //override
1908     bool visit(SQLStructDataType x) {
1909         return true;
1910     }
1911 
1912     //override
1913     void endVisit(SQLStructDataType x) {
1914 
1915     }
1916 
1917     //override
1918     bool visit(SQLStructDataType.Field x) {
1919         return true;
1920     }
1921 
1922     //override
1923     void endVisit(SQLStructDataType.Field x) {
1924 
1925     }
1926 
1927     //override
1928     bool visit(SQLDropMaterializedViewStatement x) {
1929         return true;
1930     }
1931 
1932     //override
1933     void endVisit(SQLDropMaterializedViewStatement x) {
1934 
1935     }
1936 
1937     //override
1938     bool visit(SQLAlterTableRenameIndex x) {
1939         return true;
1940     }
1941 
1942     //override
1943     void endVisit(SQLAlterTableRenameIndex x) {
1944 
1945     }
1946 
1947     //override
1948     bool visit(SQLAlterSequenceStatement x) {
1949         return true;
1950     }
1951 
1952     //override
1953     void endVisit(SQLAlterSequenceStatement x) {
1954 
1955     }
1956 
1957     //override
1958     bool visit(SQLAlterTableExchangePartition x) {
1959         return true;
1960     }
1961 
1962     //override
1963     void endVisit(SQLAlterTableExchangePartition x) {
1964 
1965     }
1966 
1967     //override
1968     bool visit(SQLValuesExpr x) {
1969         return true;
1970     }
1971 
1972     //override
1973     void endVisit(SQLValuesExpr x) {
1974 
1975     }
1976 
1977     //override
1978     bool visit(SQLValuesTableSource x) {
1979         return true;
1980     }
1981 
1982     void endVisit(SQLValuesTableSource x) {
1983 
1984     }
1985 
1986     //override
1987     bool visit(SQLContainsExpr x) {
1988         return true;
1989     }
1990 
1991     void endVisit(SQLContainsExpr x) {
1992 
1993     }
1994 
1995     //override
1996     bool visit(SQLRealExpr x) {
1997         return true;
1998     }
1999 
2000     void endVisit(SQLRealExpr x) {
2001 
2002     }
2003 
2004     //override
2005     bool visit(SQLWindow x) {
2006         return true;
2007     }
2008 
2009     void endVisit(SQLWindow x) {
2010 
2011     }
2012 
2013     //override
2014     bool visit(SQLDumpStatement x) {
2015         return true;
2016     }
2017 
2018     void endVisit(SQLDumpStatement x) {
2019 
2020     }
2021 
2022      bool isEnabled(VisitorFeature feature) {
2023         return VisitorFeature.isEnabled(this.features, feature);
2024     }
2025 
2026     int getFeatures() {
2027         return features;
2028     }
2029 
2030     void setFeatures(int features) {
2031         this.features = features;
2032     }
2033 }