@InheritConstructors annotation.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addConstructorUnlessAlreadyExisting(ClassNode classNode, ConstructorNode consNode, boolean copyConstructorAnnotations, boolean copyParameterAnnotations)
|
| private List | |
| private static boolean | |
| private static boolean | |
| private 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. |
| ANNOTATION | back to summary |
|---|---|
| private static final String ANNOTATION | |
| INHERIT_CONSTRUCTORS_TYPE | back to summary |
|---|---|
| private static final ClassNode INHERIT_CONSTRUCTORS_TYPE | |
| InheritConstructorsASTTransformation | back to summary |
|---|---|
| public InheritConstructorsASTTransformation() | |
| addConstructorUnlessAlreadyExisting | back to summary |
|---|---|
| private void addConstructorUnlessAlreadyExisting(ClassNode classNode, ConstructorNode consNode, boolean copyConstructorAnnotations, boolean copyParameterAnnotations) | |
| buildParams | back to summary |
|---|---|
| private List | |
| isExisting | back to summary |
|---|---|
| private static boolean isExisting(ClassNode classNode, Parameter[] params) | |
| matchingTypes | back to summary |
|---|---|
| private static boolean matchingTypes(Parameter[] params, Parameter[] existingParams) | |
| processClass | back to summary |
|---|---|
| private void processClass(ClassNode cNode, AnnotationNode node) | |
| 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.
| |