Skip to content

Commit 4146f86

Browse files
committed
reformating hole sourcecode
1 parent 5d90186 commit 4146f86

File tree

205 files changed

+4810
-4668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+4810
-4668
lines changed

src/main/java/net/sf/jsqlparser/JSQLParserException.java

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,52 +26,52 @@
2626
*/
2727
public class JSQLParserException extends Exception {
2828

29-
/* The serial class version */
30-
private static final long serialVersionUID = -1099039459759769980L;
31-
private Throwable cause = null;
29+
/* The serial class version */
30+
private static final long serialVersionUID = -1099039459759769980L;
31+
private Throwable cause = null;
3232

33-
public JSQLParserException() {
34-
super();
35-
}
33+
public JSQLParserException() {
34+
super();
35+
}
3636

37-
public JSQLParserException(String arg0) {
38-
super(arg0);
39-
}
37+
public JSQLParserException(String arg0) {
38+
super(arg0);
39+
}
4040

41-
public JSQLParserException(Throwable arg0) {
42-
this.cause = arg0;
43-
}
41+
public JSQLParserException(Throwable arg0) {
42+
this.cause = arg0;
43+
}
4444

45-
public JSQLParserException(String arg0, Throwable arg1) {
46-
super(arg0);
47-
this.cause = arg1;
48-
}
45+
public JSQLParserException(String arg0, Throwable arg1) {
46+
super(arg0);
47+
this.cause = arg1;
48+
}
4949

50-
@Override
51-
public Throwable getCause() {
52-
return cause;
53-
}
50+
@Override
51+
public Throwable getCause() {
52+
return cause;
53+
}
5454

55-
@Override
56-
public void printStackTrace() {
57-
printStackTrace(System.err);
58-
}
55+
@Override
56+
public void printStackTrace() {
57+
printStackTrace(System.err);
58+
}
5959

60-
@Override
61-
public void printStackTrace(java.io.PrintWriter pw) {
62-
super.printStackTrace(pw);
63-
if (cause != null) {
64-
pw.println("Caused by:");
65-
cause.printStackTrace(pw);
66-
}
67-
}
60+
@Override
61+
public void printStackTrace(java.io.PrintWriter pw) {
62+
super.printStackTrace(pw);
63+
if (cause != null) {
64+
pw.println("Caused by:");
65+
cause.printStackTrace(pw);
66+
}
67+
}
6868

69-
@Override
70-
public void printStackTrace(java.io.PrintStream ps) {
71-
super.printStackTrace(ps);
72-
if (cause != null) {
73-
ps.println("Caused by:");
74-
cause.printStackTrace(ps);
75-
}
76-
}
69+
@Override
70+
public void printStackTrace(java.io.PrintStream ps) {
71+
super.printStackTrace(ps);
72+
if (cause != null) {
73+
ps.println("Caused by:");
74+
cause.printStackTrace(ps);
75+
}
76+
}
7777
}

src/main/java/net/sf/jsqlparser/expression/Alias.java

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,36 @@
2727
*/
2828
public class Alias {
2929

30-
private String name;
31-
private boolean useAs = true;
32-
33-
public Alias(String name) {
34-
this.name = name;
35-
}
36-
37-
public Alias(String name, boolean useAs) {
38-
this.name = name;
39-
this.useAs = useAs;
40-
}
41-
42-
public String getName() {
43-
return name;
44-
}
45-
46-
public void setName(String name) {
47-
this.name = name;
48-
}
49-
50-
public boolean isUseAs() {
51-
return useAs;
52-
}
53-
54-
public void setUseAs(boolean useAs) {
55-
this.useAs = useAs;
56-
}
57-
58-
@Override
59-
public String toString() {
60-
return (useAs ? " AS " : " ") + name;
61-
}
30+
private String name;
31+
private boolean useAs = true;
32+
33+
public Alias(String name) {
34+
this.name = name;
35+
}
36+
37+
public Alias(String name, boolean useAs) {
38+
this.name = name;
39+
this.useAs = useAs;
40+
}
41+
42+
public String getName() {
43+
return name;
44+
}
45+
46+
public void setName(String name) {
47+
this.name = name;
48+
}
49+
50+
public boolean isUseAs() {
51+
return useAs;
52+
}
53+
54+
public void setUseAs(boolean useAs) {
55+
this.useAs = useAs;
56+
}
57+
58+
@Override
59+
public String toString() {
60+
return (useAs ? " AS " : " ") + name;
61+
}
6262
}

src/main/java/net/sf/jsqlparser/expression/AllComparisonExpression.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525

2626
public class AllComparisonExpression implements Expression {
2727

28-
private final SubSelect subSelect;
28+
private final SubSelect subSelect;
2929

30-
public AllComparisonExpression(SubSelect subSelect) {
31-
this.subSelect = subSelect;
32-
}
30+
public AllComparisonExpression(SubSelect subSelect) {
31+
this.subSelect = subSelect;
32+
}
33+
34+
public SubSelect getSubSelect() {
35+
return subSelect;
36+
}
3337

34-
public SubSelect getSubSelect() {
35-
return subSelect;
36-
}
38+
@Override
39+
public void accept(ExpressionVisitor expressionVisitor) {
40+
expressionVisitor.visit(this);
41+
}
3742

38-
@Override
39-
public void accept(ExpressionVisitor expressionVisitor) {
40-
expressionVisitor.visit(this);
41-
}
42-
4343
@Override
4444
public String toString() {
4545
return "ALL " + subSelect.toString();

src/main/java/net/sf/jsqlparser/expression/AnalyticExpression.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
import net.sf.jsqlparser.statement.select.PlainSelect;
2929

3030
/**
31-
* Analytic function. The name of the function is variable but the parameters
32-
* following the special analytic function path. e.g. row_number() over (order
33-
* by test). Additional there can be an expression for an analytical aggregate
34-
* like sum(col) or the "all collumns" wildcard like count(*).
31+
* Analytic function. The name of the function is variable but the parameters following the special
32+
* analytic function path. e.g. row_number() over (order by test). Additional there can be an
33+
* expression for an analytical aggregate like sum(col) or the "all collumns" wildcard like
34+
* count(*).
3535
*
3636
* @author tw
3737
*/
@@ -157,7 +157,8 @@ public void setAllColumns(boolean allColumns) {
157157
private void toStringPartitionBy(StringBuilder b) {
158158
if (partitionExpressionList != null && !partitionExpressionList.getExpressions().isEmpty()) {
159159
b.append("PARTITION BY ");
160-
b.append(PlainSelect.getStringList(partitionExpressionList.getExpressions(), true, false));
160+
b.append(PlainSelect.
161+
getStringList(partitionExpressionList.getExpressions(), true, false));
161162
b.append(" ");
162163
}
163164
}

src/main/java/net/sf/jsqlparser/expression/AnyComparisonExpression.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,32 @@
2525

2626
/**
2727
* Combines ANY and SOME expressions.
28+
*
2829
* @author toben
2930
*/
3031
public class AnyComparisonExpression implements Expression {
3132

32-
private final SubSelect subSelect;
33+
private final SubSelect subSelect;
3334
private final AnyType anyType;
34-
35-
public AnyComparisonExpression(AnyType anyType, SubSelect subSelect) {
35+
36+
public AnyComparisonExpression(AnyType anyType, SubSelect subSelect) {
3637
this.anyType = anyType;
37-
this.subSelect = subSelect;
38-
}
38+
this.subSelect = subSelect;
39+
}
3940

40-
public SubSelect getSubSelect() {
41-
return subSelect;
42-
}
41+
public SubSelect getSubSelect() {
42+
return subSelect;
43+
}
4344

44-
@Override
45-
public void accept(ExpressionVisitor expressionVisitor) {
46-
expressionVisitor.visit(this);
47-
}
45+
@Override
46+
public void accept(ExpressionVisitor expressionVisitor) {
47+
expressionVisitor.visit(this);
48+
}
4849

4950
public AnyType getAnyType() {
5051
return anyType;
5152
}
52-
53+
5354
@Override
5455
public String toString() {
5556
return anyType.name() + " " + subSelect.toString();

src/main/java/net/sf/jsqlparser/expression/AnyType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
2020
* #L%
2121
*/
22-
/*
22+
/*
2323
* Copyright (C) 2015 JSQLParser.
2424
*
2525
* This library is free software; you can redistribute it and/or
@@ -45,6 +45,6 @@
4545
*/
4646
public enum AnyType {
4747

48-
ANY,
48+
ANY,
4949
SOME
5050
}

src/main/java/net/sf/jsqlparser/expression/BinaryExpression.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,46 +22,46 @@
2222
package net.sf.jsqlparser.expression;
2323

2424
/**
25-
* A basic class for binary expressions, that is expressions having a left
26-
* member and a right member which are in turn expressions.
25+
* A basic class for binary expressions, that is expressions having a left member and a right member
26+
* which are in turn expressions.
2727
*/
2828
public abstract class BinaryExpression implements Expression {
2929

30-
private Expression leftExpression;
31-
private Expression rightExpression;
32-
private boolean not = false;
30+
private Expression leftExpression;
31+
private Expression rightExpression;
32+
private boolean not = false;
3333

34-
public BinaryExpression() {
35-
}
34+
public BinaryExpression() {
35+
}
3636

37-
public Expression getLeftExpression() {
38-
return leftExpression;
39-
}
37+
public Expression getLeftExpression() {
38+
return leftExpression;
39+
}
4040

41-
public Expression getRightExpression() {
42-
return rightExpression;
43-
}
41+
public Expression getRightExpression() {
42+
return rightExpression;
43+
}
4444

45-
public void setLeftExpression(Expression expression) {
46-
leftExpression = expression;
47-
}
45+
public void setLeftExpression(Expression expression) {
46+
leftExpression = expression;
47+
}
4848

49-
public void setRightExpression(Expression expression) {
50-
rightExpression = expression;
51-
}
49+
public void setRightExpression(Expression expression) {
50+
rightExpression = expression;
51+
}
5252

53-
public void setNot() {
54-
not = true;
55-
}
53+
public void setNot() {
54+
not = true;
55+
}
5656

57-
public boolean isNot() {
58-
return not;
59-
}
57+
public boolean isNot() {
58+
return not;
59+
}
6060

61-
@Override
62-
public String toString() {
63-
return (not ? "NOT " : "") + getLeftExpression() + " " + getStringExpression() + " " + getRightExpression();
64-
}
61+
@Override
62+
public String toString() {
63+
return (not ? "NOT " : "") + getLeftExpression() + " " + getStringExpression() + " " + getRightExpression();
64+
}
6565

66-
public abstract String getStringExpression();
66+
public abstract String getStringExpression();
6767
}

0 commit comments

Comments
 (0)