Skip to content

Commit 79a887a

Browse files
committed
Merge origin/master
Conflicts: README.md
2 parents 8bc236e + a2f81f3 commit 79a887a

Some content is hidden

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

51 files changed

+183
-63
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Also I would like to know about needed examples or documentation stuff.
4949

5050
## Extensions in the latest SNAPSHOT version 1.2
5151

52+
* introduced more AST node links
5253
* support for aliased table in **insert into** statement
5354
* **SQL_CALC_FOUND_ROWS** support
5455
* support for more complex expressions within **case expr when expr then expr end**.
@@ -80,6 +81,10 @@ This will produce the jsqlparser-VERSION.jar file in the target/ directory.
8081

8182
**To build this project without using Maven, one has to build the parser by JavaCC using the CLI options it provids.**
8283

84+
## Debugging through problems
85+
86+
Refer to the [Visualize Parsing](https://github.com/JSQLParser/JSqlParser/wiki/Examples-of-SQL-parsing#visualize-parsing) section to learn how to run the parser in debug mode.
87+
8388
## Source Code conventions
8489

8590
Recently a checkstyle process was integrated into the build process. JSqlParser follows the sun java format convention. There are no TABs allowed. Use spaces.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
2425
import net.sf.jsqlparser.statement.select.SubSelect;
2526

26-
public class AllComparisonExpression implements Expression {
27+
public class AllComparisonExpression extends ASTNodeAccessImpl implements Expression {
2728

2829
private final SubSelect subSelect;
2930

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
2425
import net.sf.jsqlparser.statement.select.OrderByElement;
2526

2627
import java.util.List;
@@ -35,7 +36,7 @@
3536
*
3637
* @author tw
3738
*/
38-
public class AnalyticExpression implements Expression {
39+
public class AnalyticExpression extends ASTNodeAccessImpl implements Expression {
3940

4041
private ExpressionList partitionExpressionList;
4142
private List<OrderByElement> orderByElements;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
2425
import net.sf.jsqlparser.statement.select.SubSelect;
2526

2627
/**
2728
* Combines ANY and SOME expressions.
2829
*
2930
* @author toben
3031
*/
31-
public class AnyComparisonExpression implements Expression {
32+
public class AnyComparisonExpression extends ASTNodeAccessImpl implements Expression {
3233

3334
private final SubSelect subSelect;
3435
private final AnyType anyType;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
25+
2426
/**
2527
* A basic class for binary expressions, that is expressions having a left member and a right member
2628
* which are in turn expressions.
2729
*/
28-
public abstract class BinaryExpression implements Expression {
30+
public abstract class BinaryExpression extends ASTNodeAccessImpl implements Expression {
2931

3032
private Expression leftExpression;
3133
private Expression rightExpression;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import java.util.List;
2525

26+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
2627
import net.sf.jsqlparser.statement.select.PlainSelect;
2728

2829
/**
@@ -56,7 +57,7 @@
5657
*
5758
* @author Havard Rast Blok
5859
*/
59-
public class CaseExpression implements Expression {
60+
public class CaseExpression extends ASTNodeAccessImpl implements Expression {
6061

6162
private Expression switchExpression;
6263
private List<WhenClause> whenClauses;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
2425
import net.sf.jsqlparser.statement.create.table.ColDataType;
2526

2627
/**
2728
*
2829
* @author tw
2930
*/
30-
public class CastExpression implements Expression {
31+
public class CastExpression extends ASTNodeAccessImpl implements Expression {
3132

3233
private Expression leftExpression;
3334
private ColDataType type;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
*/
4040
package net.sf.jsqlparser.expression;
4141

42+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
43+
4244
/**
4345
*
4446
* @author toben
4547
*/
46-
public class DateTimeLiteralExpression implements Expression {
48+
public class DateTimeLiteralExpression extends ASTNodeAccessImpl implements Expression {
4749

4850
private String value;
4951
private DateTime type;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
25+
2426
import java.sql.Date;
2527

2628
/**
2729
* A Date in the form {d 'yyyy-mm-dd'}
2830
*/
29-
public class DateValue implements Expression {
31+
public class DateValue extends ASTNodeAccessImpl implements Expression {
3032

3133
private Date value;
3234

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
*/
2222
package net.sf.jsqlparser.expression;
2323

24+
import net.sf.jsqlparser.parser.ASTNodeAccessImpl;
25+
2426
/**
2527
* Every number with a point or a exponential format is a DoubleValue
2628
*/
27-
public class DoubleValue implements Expression {
29+
public class DoubleValue extends ASTNodeAccessImpl implements Expression {
2830

2931
private double value;
3032
private String stringValue;

0 commit comments

Comments
 (0)