| Modifier and Type | Field and Description |
|---|---|
| private static final ClassNode | |
| private CompilationUnit | |
| private static final ClassNode | |
| private static final Class | |
| pack-priv static final Class | |
| pack-priv static final ClassNode | |
| pack-priv static final String | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| private static void | createConstructor(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, boolean includeFields, boolean includeProperties, boolean includeSuperFields, boolean includeSuperProperties, List<String> excludes, final List<String> includes, boolean allNames, boolean allProperties, SourceUnit sourceUnit, PropertyHandler handler, ClosureExpression pre, ClosureExpression post)
|
| private static Parameter | createParam(FieldNode fNode, String name, boolean defaults, AbstractASTTransformation xform, boolean makeImmutable)
|
| public String | getAnnotationName()
Overrides org. |
| private static BlockStatement | |
| private static BlockStatement | |
| private static Expression | |
| public void | |
| public void | visit(ASTNode[]
The ASTnodes when the call was triggered. Element 0 is the AnnotationNode that triggered this
annotation to be activated. Element 1 is the AnnotatedNode decorated, such as a MethodNode or ClassNode. For
global transformations it is usually safe to ignore this parameter. nodes, SourceUnit The source unit being compiled. The source unit may contain several classes. For global transformations,
information about the AST can be retrieved from this object. source)Implements org. |
| CHECK_METHOD_TYPE | back to summary |
|---|---|
| private static final ClassNode CHECK_METHOD_TYPE | |
| compilationUnit | back to summary |
|---|---|
| private CompilationUnit compilationUnit | |
| LHMAP_TYPE | back to summary |
|---|---|
| private static final ClassNode LHMAP_TYPE | |
| MAP_CONSTRUCTOR_CLASS | back to summary |
|---|---|
| private static final Class<? extends Annotation> MAP_CONSTRUCTOR_CLASS | |
| MY_CLASS | back to summary |
|---|---|
| pack-priv static final Class<T> MY_CLASS | |
| MY_TYPE | back to summary |
|---|---|
| pack-priv static final ClassNode MY_TYPE | |
| MY_TYPE_NAME | back to summary |
|---|---|
| pack-priv static final String MY_TYPE_NAME | |
| primitivesInitialValues | back to summary |
|---|---|
| private static final Map<Class<?>, Expression> primitivesInitialValues | |
| TupleConstructorASTTransformation | back to summary |
|---|---|
| public TupleConstructorASTTransformation() | |
| addSpecialMapConstructors | back to summary |
|---|---|
| public static void addSpecialMapConstructors(int modifiers, ClassNode cNode, String message, boolean addNoArg) | |
| createConstructor | back to summary |
|---|---|
| private static void createConstructor(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, boolean includeFields, boolean includeProperties, boolean includeSuperFields, boolean includeSuperProperties, List<String> excludes, final List<String> includes, boolean allNames, boolean allProperties, SourceUnit sourceUnit, PropertyHandler handler, ClosureExpression pre, ClosureExpression post) | |
| createParam | back to summary |
|---|---|
| private static Parameter createParam(FieldNode fNode, String name, boolean defaults, AbstractASTTransformation xform, boolean makeImmutable) | |
| getAnnotationName | back to summary |
|---|---|
| public String getAnnotationName() Overrides org. Doc from org. If the transform is associated with a single annotation, returns a name suitable for displaying in error messages. | |
| illegalArgumentBlock | back to summary |
|---|---|
| private static BlockStatement illegalArgumentBlock(String message) | |
| processArgsBlock | back to summary |
|---|---|
| private static BlockStatement processArgsBlock(ClassNode cNode, VariableExpression namedArgs) | |
| providedOrDefaultInitialValue | back to summary |
|---|---|
| private static Expression providedOrDefaultInitialValue(FieldNode fNode) | |
| setCompilationUnit | back to summary |
|---|---|
| public void setCompilationUnit(CompilationUnit unit) Implements groovy.
| |
| visit | back to summary |
|---|---|
| public void visit(ASTNode[] nodes, SourceUnit source) Implements org. Doc from org. The method is invoked when an AST Transformation is active. For local transformations, it is invoked once each time the local annotation is encountered. For global transformations, it is invoked once for every source unit, which is typically a source file.
| |