- org.codehaus.groovy.transform.tailrec.VariableExpressionReplacer
-
public class VariableExpressionReplacer
extends CodeVisitorSupport
Tool for replacing VariableExpression instances in an AST by other VariableExpression instances.
Regardless of a real change taking place in nested expressions, all considered expression (trees) will be replaced.
This could be optimized to accelerate compilation.
Within
- TailRecursive:
- it is used
- to swap the access of method args with the access to iteration variables
- to swap the access of iteration variables with the access of temp vars
-
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class CodeVisitorSupport |
afterSwitchCaseStatementsVisited, afterSwitchConditionExpressionVisited, visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitEmptyStatement, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitLambdaExpression, visitListExpression, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitMethodReferenceExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression, visitWhileLoop |
-
-
Method Detail
-
public void replaceIn(ASTNode root)
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.