@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class NamedVariantASTTransformation
extends AbstractASTTransformation
Handles generation of variant methods with named parameters via the NamedVariant annotation.
| Fields inherited from class | Fields |
|---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE, sourceUnit |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static AnnotationNode |
createNamedParam(String name, ClassNode type, boolean required)Creates a NamedParam annotation node with the given configuration. |
|
public void |
visit(ASTNode[] nodes, SourceUnit source) |
Creates a NamedParam annotation node with the given configuration.
name - the parameter nametype - the parameter class typerequired - whether the parameter is required