|
@@ -8,10 +8,10 @@ import org.openzen.zenscript.javabytecode.JavaMethodInfo;
|
8
|
8
|
|
9
|
9
|
public class JavaExpressionVisitor implements ExpressionVisitor<Void> {
|
10
|
10
|
|
11
|
|
- private final JavaStatementVisitor statementVisitor;
|
|
11
|
+ private JavaWriter javaWriter;
|
12
|
12
|
|
13
|
|
- public JavaExpressionVisitor(JavaStatementVisitor statementVisitor) {
|
14
|
|
- this.statementVisitor = statementVisitor;
|
|
13
|
+ public JavaExpressionVisitor(final JavaWriter javaWriter) {
|
|
14
|
+ this.javaWriter = javaWriter;
|
15
|
15
|
}
|
16
|
16
|
|
17
|
17
|
@Override
|
|
@@ -319,7 +319,7 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void> {
|
319
|
319
|
}
|
320
|
320
|
|
321
|
321
|
public JavaWriter getJavaWriter() {
|
322
|
|
- return statementVisitor.getJavaWriter();
|
|
322
|
+ return javaWriter;
|
323
|
323
|
}
|
324
|
324
|
|
325
|
325
|
|