mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
misc AST cleanups
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class Assignment {
|
||||
private String variableName;
|
||||
|
||||
private final String variableName;
|
||||
|
||||
public Assignment(String variableName) {
|
||||
this.variableName = variableName;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class BooleanArg implements ArgType {
|
||||
|
||||
private final boolean boolValue;
|
||||
|
||||
public BooleanArg(boolean boolValue) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import java.util.List;
|
||||
|
||||
public class FunctionCall implements ArgType {
|
||||
private String funcName;
|
||||
private List<ArgType> args = new ArrayList<>();
|
||||
private final List<ArgType> args = new ArrayList<>();
|
||||
private String inputType;
|
||||
private String outputType;
|
||||
private String inputClass;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class IntegerArg implements ArgType {
|
||||
|
||||
private final int intValue;
|
||||
|
||||
public IntegerArg(Integer integer) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class LongArg implements ArgType {
|
||||
|
||||
private final long longValue;
|
||||
|
||||
public LongArg(Long longValue) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class RefArg implements ArgType {
|
||||
|
||||
private final String refName;
|
||||
|
||||
public RefArg(String refName) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class StringArg implements ArgType {
|
||||
|
||||
private final String rawEscapedText;
|
||||
private final String unEscapedText;
|
||||
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
package io.nosqlbench.virtdata.lang.ast;
|
||||
|
||||
public class VariableRef {
|
||||
|
||||
private final String refName;
|
||||
|
||||
public VariableRef(String refName) {
|
||||
this.refName = refName;
|
||||
}
|
||||
|
||||
public String getRefName() {
|
||||
return this.refName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class VirtDataAST {
|
||||
private List<VirtDataFlow> flows = new ArrayList<>();
|
||||
|
||||
private final List<VirtDataFlow> flows = new ArrayList<>();
|
||||
|
||||
public void addFlow(VirtDataFlow flow) {
|
||||
this.flows.add(flow);
|
||||
|
||||
@@ -4,7 +4,8 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class VirtDataFlow {
|
||||
private List<Expression> expressions = new ArrayList<>();
|
||||
|
||||
private final List<Expression> expressions = new ArrayList<>();
|
||||
|
||||
public List<Expression> getExpressions() {
|
||||
return expressions;
|
||||
|
||||
Reference in New Issue
Block a user