public class GroovyASTEvaluationTransformerVisitor
extends org.codehaus.groovy.ast.CodeVisitorSupport
implements org.codehaus.groovy.ast.expr.ExpressionTransformer
Expressions
(as determined
by the GroovyASTEvaluationAnalyzerVisitor
) with
ConstantExpressions
of their evaluated result.Constructor and Description |
---|
GroovyASTEvaluationTransformerVisitor(java.util.Map _binding,
java.lang.String _src) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(org.codehaus.groovy.ast.expr.Expression _expr) |
org.codehaus.groovy.ast.expr.Expression |
transform(org.codehaus.groovy.ast.expr.Expression _expr) |
void |
visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement _stmt) |
void |
visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement _stmt) |
visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression, visitWhileLoop
public GroovyASTEvaluationTransformerVisitor(java.util.Map _binding, java.lang.String _src)
public void visitExpressionStatement(org.codehaus.groovy.ast.stmt.ExpressionStatement _stmt)
visitExpressionStatement
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitExpressionStatement
in class org.codehaus.groovy.ast.CodeVisitorSupport
public void visitReturnStatement(org.codehaus.groovy.ast.stmt.ReturnStatement _stmt)
visitReturnStatement
in interface org.codehaus.groovy.ast.GroovyCodeVisitor
visitReturnStatement
in class org.codehaus.groovy.ast.CodeVisitorSupport
public org.codehaus.groovy.ast.expr.Expression transform(org.codehaus.groovy.ast.expr.Expression _expr)
transform
in interface org.codehaus.groovy.ast.expr.ExpressionTransformer
public java.lang.Object evaluate(org.codehaus.groovy.ast.expr.Expression _expr)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.