File tree Expand file tree Collapse file tree
jjtree/net/sf/jsqlparser/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,5 +25,5 @@ public interface FromItemVisitor {
2525
2626 void visit (TableFunction tableFunction );
2727
28- void visit (ParenthesisFromItem aThis );
28+ void visit (ParenthesedFromItem aThis );
2929}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void visit(TableFunction valuesList) {
4545 }
4646
4747 @ Override
48- public void visit (ParenthesisFromItem aThis ) {
48+ public void visit (ParenthesedFromItem aThis ) {
4949
5050 }
5151}
Original file line number Diff line number Diff line change 1616import java .util .List ;
1717import java .util .Optional ;
1818
19- public class ParenthesisFromItem implements FromItem {
19+ public class ParenthesedFromItem implements FromItem {
2020 private FromItem fromItem ;
2121 private List <Join > joins ;
2222 private Alias alias ;
2323 private Pivot pivot ;
2424 private UnPivot unPivot ;
2525
26- public ParenthesisFromItem () {
26+ public ParenthesedFromItem () {
2727 }
2828
29- public ParenthesisFromItem (FromItem fromItem ) {
29+ public ParenthesedFromItem (FromItem fromItem ) {
3030 setFromItem (fromItem );
3131 }
3232
@@ -118,13 +118,13 @@ public void setUnPivot(UnPivot unpivot) {
118118 this .unPivot = unpivot ;
119119 }
120120
121- public ParenthesisFromItem withFromItem (FromItem fromItem ) {
121+ public ParenthesedFromItem withFromItem (FromItem fromItem ) {
122122 this .setFromItem (fromItem );
123123 return this ;
124124 }
125125
126126 @ Override
127- public ParenthesisFromItem withAlias (Alias alias ) {
127+ public ParenthesedFromItem withAlias (Alias alias ) {
128128 this .setAlias (alias );
129129 return this ;
130130 }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -938,7 +938,7 @@ public void visit(UseStatement use) {
938938 }
939939
940940 @ Override
941- public void visit (ParenthesisFromItem parenthesis ) {
941+ public void visit (ParenthesedFromItem parenthesis ) {
942942 parenthesis .getFromItem ().accept (this );
943943 }
944944
Original file line number Diff line number Diff line change 3535import net .sf .jsqlparser .statement .select .Offset ;
3636import net .sf .jsqlparser .statement .select .OptimizeFor ;
3737import net .sf .jsqlparser .statement .select .ParenthesedSelectBody ;
38- import net .sf .jsqlparser .statement .select .ParenthesisFromItem ;
38+ import net .sf .jsqlparser .statement .select .ParenthesedFromItem ;
3939import net .sf .jsqlparser .statement .select .Pivot ;
4040import net .sf .jsqlparser .statement .select .PivotVisitor ;
4141import net .sf .jsqlparser .statement .select .PivotXml ;
@@ -595,7 +595,7 @@ public void visit(TableFunction tableFunction) {
595595 }
596596
597597 @ Override
598- public void visit (ParenthesisFromItem parenthesis ) {
598+ public void visit (ParenthesedFromItem parenthesis ) {
599599 buffer .append ("(" );
600600 parenthesis .getFromItem ().accept (this );
601601 List <Join > joins = parenthesis .getJoins ();
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ public void visit(TableFunction tableFunction) {
299299 }
300300
301301 @ Override
302- public void visit (ParenthesisFromItem parenthesis ) {
302+ public void visit (ParenthesedFromItem parenthesis ) {
303303 validateOptional (parenthesis .getFromItem (), e -> e .accept (this ));
304304 }
305305
Original file line number Diff line number Diff line change @@ -2548,7 +2548,7 @@ List<Table> IntoClause():
25482548
25492549FromItem ParenthesedFromItem():
25502550{
2551- ParenthesisFromItem parenthesisFromItem = new ParenthesisFromItem ();
2551+ ParenthesedFromItem ParenthesedFromItem = new ParenthesedFromItem ();
25522552 FromItem fromItem;
25532553 List<Join> joins = null;
25542554}
@@ -2559,7 +2559,7 @@ FromItem ParenthesedFromItem():
25592559 ")"
25602560
25612561 {
2562- return parenthesisFromItem .withFromItem(fromItem).withJoins(joins);
2562+ return ParenthesedFromItem .withFromItem(fromItem).withJoins(joins);
25632563 }
25642564}
25652565
@@ -2586,9 +2586,6 @@ FromItem FromItem():
25862586 |
25872587 LOOKAHEAD( ParenthesedFromItem() ) fromItem = ParenthesedFromItem()
25882588 |
2589- //@todo: this is a very expenise LOOKAHEAD
2590- // which is needed only for Tablenames in many brackets
2591- // e. g. SELECT * FROM (((tableName)))
25922589 LOOKAHEAD(3) (
25932590 selectBody=ParenthesedSelectBody() { fromItem = new SubSelect().withSelectBody(selectBody).withUseBrackets(false); }
25942591 [ LOOKAHEAD(2) unpivot=UnPivot() { fromItem.setUnPivot(unpivot); } ]
You can’t perform that action at this time.
0 commit comments