Skip to content

Commit 338f1c4

Browse files
author
Stefan Steinhauser
committed
style: Run gradle :spotlessApply
1 parent dc6e301 commit 338f1c4

21 files changed

+11099
-11099
lines changed
Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
1-
/*-
2-
* #%L
3-
* JSQLParser library
4-
* %%
5-
* Copyright (C) 2004 - 2019 JSQLParser
6-
* %%
7-
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8-
* #L%
9-
*/
10-
package net.sf.jsqlparser.statement.select;
11-
12-
import net.sf.jsqlparser.expression.Alias;
13-
import net.sf.jsqlparser.parser.ASTNodeAccess;
14-
15-
public interface FromItem extends ASTNodeAccess {
16-
17-
<T, S> T accept(FromItemVisitor<T> fromItemVisitor, S context);
18-
19-
default void accept(FromItemVisitor<?> fromItemVisitor) {
20-
this.accept(fromItemVisitor, null);
21-
}
22-
23-
Alias getAlias();
24-
25-
void setAlias(Alias alias);
26-
27-
default FromItem withAlias(Alias alias) {
28-
setAlias(alias);
29-
return this;
30-
}
31-
32-
Pivot getPivot();
33-
34-
void setPivot(Pivot pivot);
35-
36-
default FromItem withPivot(Pivot pivot) {
37-
setPivot(pivot);
38-
return this;
39-
}
40-
41-
UnPivot getUnPivot();
42-
43-
void setUnPivot(UnPivot unpivot);
44-
45-
default FromItem withUnPivot(UnPivot unpivot) {
46-
setUnPivot(unpivot);
47-
return this;
48-
}
49-
50-
default StringBuilder appendTo(StringBuilder builder, Alias alias) {
51-
return appendTo(builder, alias, null, null);
52-
}
53-
54-
default StringBuilder appendTo(StringBuilder builder, Alias alias, Pivot pivot,
55-
UnPivot unPivot) {
56-
if (alias != null) {
57-
builder.append(alias);
58-
}
59-
60-
if (pivot != null) {
61-
builder.append(" ").append(pivot);
62-
}
63-
64-
if (unPivot != null) {
65-
builder.append(" ").append(unPivot);
66-
}
67-
68-
return builder;
69-
}
70-
71-
72-
}
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2019 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
10+
package net.sf.jsqlparser.statement.select;
11+
12+
import net.sf.jsqlparser.expression.Alias;
13+
import net.sf.jsqlparser.parser.ASTNodeAccess;
14+
15+
public interface FromItem extends ASTNodeAccess {
16+
17+
<T, S> T accept(FromItemVisitor<T> fromItemVisitor, S context);
18+
19+
default void accept(FromItemVisitor<?> fromItemVisitor) {
20+
this.accept(fromItemVisitor, null);
21+
}
22+
23+
Alias getAlias();
24+
25+
void setAlias(Alias alias);
26+
27+
default FromItem withAlias(Alias alias) {
28+
setAlias(alias);
29+
return this;
30+
}
31+
32+
Pivot getPivot();
33+
34+
void setPivot(Pivot pivot);
35+
36+
default FromItem withPivot(Pivot pivot) {
37+
setPivot(pivot);
38+
return this;
39+
}
40+
41+
UnPivot getUnPivot();
42+
43+
void setUnPivot(UnPivot unpivot);
44+
45+
default FromItem withUnPivot(UnPivot unpivot) {
46+
setUnPivot(unpivot);
47+
return this;
48+
}
49+
50+
default StringBuilder appendTo(StringBuilder builder, Alias alias) {
51+
return appendTo(builder, alias, null, null);
52+
}
53+
54+
default StringBuilder appendTo(StringBuilder builder, Alias alias, Pivot pivot,
55+
UnPivot unPivot) {
56+
if (alias != null) {
57+
builder.append(alias);
58+
}
59+
60+
if (pivot != null) {
61+
builder.append(" ").append(pivot);
62+
}
63+
64+
if (unPivot != null) {
65+
builder.append(" ").append(unPivot);
66+
}
67+
68+
return builder;
69+
}
70+
71+
72+
}
Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
/*-
2-
* #%L
3-
* JSQLParser library
4-
* %%
5-
* Copyright (C) 2004 - 2019 JSQLParser
6-
* %%
7-
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8-
* #L%
9-
*/
10-
package net.sf.jsqlparser.statement.select;
11-
12-
import net.sf.jsqlparser.schema.Table;
13-
14-
public interface FromItemVisitor<T> {
15-
16-
<S> T visit(Table tableName, S context);
17-
18-
default void visit(Table tableName) {
19-
this.visit(tableName, null);
20-
}
21-
22-
<S> T visit(ParenthesedSelect selectBody, S context);
23-
24-
default void visit(ParenthesedSelect selectBody) {
25-
this.visit(selectBody, null);
26-
}
27-
28-
<S> T visit(LateralSubSelect lateralSubSelect, S context);
29-
30-
default void visit(LateralSubSelect lateralSubSelect) {
31-
this.visit(lateralSubSelect, null);
32-
}
33-
34-
<S> T visit(TableFunction tableFunction, S context);
35-
36-
default void visit(TableFunction tableFunction) {
37-
this.visit(tableFunction, null);
38-
}
39-
40-
<S> T visit(ParenthesedFromItem parenthesedFromItem, S context);
41-
42-
default void visit(ParenthesedFromItem parenthesedFromItem) {
43-
this.visit(parenthesedFromItem, null);
44-
}
45-
46-
<S> T visit(Values values, S context);
47-
48-
default void visit(Values values) {
49-
this.visit(values, null);
50-
}
51-
52-
<S> T visit(PlainSelect plainSelect, S context);
53-
54-
default void visit(PlainSelect plainSelect) {
55-
this.visit(plainSelect, null);
56-
}
57-
58-
<S> T visit(SetOperationList setOperationList, S context);
59-
60-
default void visit(SetOperationList setOperationList) {
61-
this.visit(setOperationList, null);
62-
}
63-
64-
<S> T visit(TableStatement tableStatement, S context);
65-
66-
default void visit(TableStatement tableStatement) {
67-
this.visit(tableStatement, null);
68-
}
69-
}
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2019 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
10+
package net.sf.jsqlparser.statement.select;
11+
12+
import net.sf.jsqlparser.schema.Table;
13+
14+
public interface FromItemVisitor<T> {
15+
16+
<S> T visit(Table tableName, S context);
17+
18+
default void visit(Table tableName) {
19+
this.visit(tableName, null);
20+
}
21+
22+
<S> T visit(ParenthesedSelect selectBody, S context);
23+
24+
default void visit(ParenthesedSelect selectBody) {
25+
this.visit(selectBody, null);
26+
}
27+
28+
<S> T visit(LateralSubSelect lateralSubSelect, S context);
29+
30+
default void visit(LateralSubSelect lateralSubSelect) {
31+
this.visit(lateralSubSelect, null);
32+
}
33+
34+
<S> T visit(TableFunction tableFunction, S context);
35+
36+
default void visit(TableFunction tableFunction) {
37+
this.visit(tableFunction, null);
38+
}
39+
40+
<S> T visit(ParenthesedFromItem parenthesedFromItem, S context);
41+
42+
default void visit(ParenthesedFromItem parenthesedFromItem) {
43+
this.visit(parenthesedFromItem, null);
44+
}
45+
46+
<S> T visit(Values values, S context);
47+
48+
default void visit(Values values) {
49+
this.visit(values, null);
50+
}
51+
52+
<S> T visit(PlainSelect plainSelect, S context);
53+
54+
default void visit(PlainSelect plainSelect) {
55+
this.visit(plainSelect, null);
56+
}
57+
58+
<S> T visit(SetOperationList setOperationList, S context);
59+
60+
default void visit(SetOperationList setOperationList) {
61+
this.visit(setOperationList, null);
62+
}
63+
64+
<S> T visit(TableStatement tableStatement, S context);
65+
66+
default void visit(TableStatement tableStatement) {
67+
this.visit(tableStatement, null);
68+
}
69+
}

0 commit comments

Comments
 (0)