-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all the files form QL project to QL package
- Loading branch information
krasimira-bozhanova
committed
Mar 8, 2015
1 parent
003e688
commit 86f195b
Showing
86 changed files
with
514 additions
and
509 deletions.
There are no files selected for viewing
76 changes: 0 additions & 76 deletions
76
src/main/java/nl/uva/softwcons/ast/expression/ExpressionVisitor.java
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/main/java/nl/uva/softwcons/ast/expression/unary/logical/Not.java
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
.../java/nl/uva/softwcons/Questionnaire.java → ...va/nl/uva/softwcons/ql/Questionnaire.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/java/nl/uva/softwcons/ast/ASTNode.java → ...java/nl/uva/softwcons/ql/ast/ASTNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package nl.uva.softwcons.ast; | ||
package nl.uva.softwcons.ql.ast; | ||
|
||
public interface ASTNode { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/main/java/nl/uva/softwcons/ast/I18n.java → ...in/java/nl/uva/softwcons/ql/ast/I18n.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/java/nl/uva/softwcons/ast/LineInfo.java → ...ava/nl/uva/softwcons/ql/ast/LineInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package nl.uva.softwcons.ast; | ||
package nl.uva.softwcons.ql.ast; | ||
|
||
public class LineInfo { | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
.../softwcons/ast/expression/Expression.java → ...ftwcons/ql/ast/expression/Expression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/main/java/nl/uva/softwcons/ql/ast/expression/ExpressionVisitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package nl.uva.softwcons.ql.ast.expression; | ||
|
||
import nl.uva.softwcons.ql.ast.expression.binary.BinaryExpression; | ||
import nl.uva.softwcons.ql.ast.expression.binary.arithmetic.Addition; | ||
import nl.uva.softwcons.ql.ast.expression.binary.arithmetic.Division; | ||
import nl.uva.softwcons.ql.ast.expression.binary.arithmetic.Multiplication; | ||
import nl.uva.softwcons.ql.ast.expression.binary.arithmetic.Subtraction; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.Equal; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.GreaterOrEqual; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.GreaterThan; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.LowerOrEqual; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.LowerThan; | ||
import nl.uva.softwcons.ql.ast.expression.binary.comparison.NotEqual; | ||
import nl.uva.softwcons.ql.ast.expression.binary.logical.And; | ||
import nl.uva.softwcons.ql.ast.expression.binary.logical.Or; | ||
import nl.uva.softwcons.ql.ast.expression.identifier.Identifier; | ||
import nl.uva.softwcons.ql.ast.expression.literal.BooleanLiteral; | ||
import nl.uva.softwcons.ql.ast.expression.literal.NumberLiteral; | ||
import nl.uva.softwcons.ql.ast.expression.literal.StringLiteral; | ||
import nl.uva.softwcons.ql.ast.expression.unary.UnaryExpression; | ||
import nl.uva.softwcons.ql.ast.expression.unary.logical.Not; | ||
|
||
public interface ExpressionVisitor<T> { | ||
|
||
/* Binary arithmetic expressions */ | ||
T visit(Addition expr); | ||
|
||
T visit(Division expr); | ||
|
||
T visit(Multiplication expr); | ||
|
||
T visit(Subtraction expr); | ||
|
||
/* Binary comparison expressions */ | ||
T visit(Equal expr); | ||
|
||
T visit(GreaterOrEqual expr); | ||
|
||
T visit(GreaterThan expr); | ||
|
||
T visit(LowerOrEqual expr); | ||
|
||
T visit(LowerThan expr); | ||
|
||
T visit(NotEqual expr); | ||
|
||
/* Binary logical expressions */ | ||
T visit(And expr); | ||
|
||
T visit(Or expr); | ||
|
||
/* Unary logical expressions */ | ||
T visit(Not expr); | ||
|
||
/* Literal and identifier expressions */ | ||
T visit(Identifier expr); | ||
|
||
T visit(BooleanLiteral expr); | ||
|
||
T visit(StringLiteral expr); | ||
|
||
T visit(NumberLiteral expr); | ||
|
||
default T leftOperand(BinaryExpression expr) { | ||
return expr.getLeftExpression().accept(this); | ||
} | ||
|
||
default T rightOperand(BinaryExpression expr) { | ||
return expr.getRightExpression().accept(this); | ||
} | ||
|
||
default T unaryOperand(UnaryExpression expr) { | ||
return expr.getExpression().accept(this); | ||
} | ||
|
||
} |
8 changes: 4 additions & 4 deletions
8
...t/expression/binary/BinaryExpression.java → ...t/expression/binary/BinaryExpression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...xpression/binary/arithmetic/Addition.java → ...xpression/binary/arithmetic/Addition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...nary/arithmetic/ArithmeticExpression.java → ...nary/arithmetic/ArithmeticExpression.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...xpression/binary/arithmetic/Division.java → ...xpression/binary/arithmetic/Division.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ion/binary/arithmetic/Multiplication.java → ...ion/binary/arithmetic/Multiplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ession/binary/arithmetic/Subtraction.java → ...ession/binary/arithmetic/Subtraction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.