@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class TupleConstructorASTTransformation
extends AbstractASTTransformation
implements CompilationUnitAware, TransformWithPriority
Handles generation of code for the
| Modifiers | Name | Description |
|---|---|---|
record |
TupleConstructorASTTransformation.SelectedTupleProperties |
Result of selectTupleProperties: the super-class properties and self properties that pass the annotation's filters (includes / excludes / allNames / includeProperties / includeFields / includeSuperProperties / includeSuperFields / allProperties). |
| Fields inherited from class | Fields |
|---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE, sourceUnit |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
addSpecialMapConstructors(int modifiers, ClassNode cNode, String message, boolean addNoArg) |
|
public String |
getAnnotationName() |
|
public int |
priority() |
|
public static TupleConstructorASTTransformation.SelectedTupleProperties |
selectTupleProperties(AbstractASTTransformation xform, ClassNode cNode, AnnotationNode anno)Resolves the property nodes the @TupleConstructor runtime
transform would use as constructor parameters. |
|
public void |
setCompilationUnit(CompilationUnit unit) |
|
public void |
visit(ASTNode[] nodes, SourceUnit source) |
Resolves the property nodes the @TupleConstructor runtime
transform would use as constructor parameters. Honours
includes, excludes, allNames,
includeProperties, includeFields,
includeSuperProperties, includeSuperFields, and
allProperties attributes the same way the full transform does
so the joint-compilation stubber stays in lockstep.