public class DSLExpressionGenerator extends Object implements DSLExpression.DSLExpressionVisitor
| Modifier and Type | Method and Description |
|---|---|
void |
visitBinary(DSLExpression.Binary binary) |
void |
visitBooleanLiteral(DSLExpression.BooleanLiteral binary) |
void |
visitCall(DSLExpression.Call call) |
void |
visitIntLiteral(DSLExpression.IntLiteral binary) |
void |
visitNegate(DSLExpression.Negate negate) |
void |
visitVariable(DSLExpression.Variable variable) |
static CodeTree |
write(DSLExpression expression,
CodeTree root,
Map<DSLExpression.Variable,CodeTree> bindings) |
public void visitBinary(DSLExpression.Binary binary)
visitBinary in interface DSLExpression.DSLExpressionVisitorpublic void visitCall(DSLExpression.Call call)
visitCall in interface DSLExpression.DSLExpressionVisitorpublic void visitIntLiteral(DSLExpression.IntLiteral binary)
visitIntLiteral in interface DSLExpression.DSLExpressionVisitorpublic void visitBooleanLiteral(DSLExpression.BooleanLiteral binary)
visitBooleanLiteral in interface DSLExpression.DSLExpressionVisitorpublic void visitNegate(DSLExpression.Negate negate)
visitNegate in interface DSLExpression.DSLExpressionVisitorpublic void visitVariable(DSLExpression.Variable variable)
visitVariable in interface DSLExpression.DSLExpressionVisitorpublic static CodeTree write(DSLExpression expression, CodeTree root, Map<DSLExpression.Variable,CodeTree> bindings)