groovy / 4.0 / org / codehaus / groovy / transform / tailrec / tailrecursiveasttransformation.html

[Java] Class TailRecursiveASTTransformation

  • org.codehaus.groovy.transform.tailrec.TailRecursiveASTTransformation
@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class TailRecursiveASTTransformation
extends AbstractASTTransformation

Handles generation of code for the

TailRecursive:
annotation.

It's doing its work in the earliest possible compile phase

Method Detail

public Boolean doCall(ASTNode node)

public Statement doCall(ReturnStatement statement)

public Boolean doCall(Statement statement, boolean inClosure)

public Statement doCall(ReturnStatement statement)

public Boolean doCall(Statement statement, boolean inClosure)

public Statement doCall(ReturnStatement statement)

public static String getMY_TYPE_NAME()

public Map<String, Map> name2VariableMappingFor(MethodNode method)

public Map<Integer, Map> position2VariableMappingFor(MethodNode method)

@Override public void visit(ASTNode[] nodes, SourceUnit source)

© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/codehaus/groovy/transform/tailrec/TailRecursiveASTTransformation.html