@Delegate annotation
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ClassNode | |
| private static final ClassNode | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final ClassNode | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | addDelegateMethod(final MethodNode candidate, final DelegateASTTransformation.
|
| private static void | addGetterIfNeeded(final DelegateASTTransformation.
|
| private static void | addSetterIfNeeded(final DelegateASTTransformation.
|
| private boolean | checkPropertyOrMethodList(final ClassNode cNode, final List<String> propertyNameList, final String listName, final AnnotationNode anno, final String typeName)
|
| private static boolean | |
| private static List | |
| private static void | |
| private static List | filterMethods(final List<MethodNode> methods, final DelegateASTTransformation.
|
| private static List | |
| private static String | |
| private static boolean | |
| public void | visit(final 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, final 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. |
| DEPRECATED_TYPE | back to summary |
|---|---|
| private static final ClassNode DEPRECATED_TYPE | |
| LAZY_TYPE | back to summary |
|---|---|
| private static final ClassNode LAZY_TYPE | |
| MEMBER_ALL_NAMES | back to summary |
|---|---|
| private static final String MEMBER_ALL_NAMES | |
| MEMBER_DEPRECATED | back to summary |
|---|---|
| private static final String MEMBER_DEPRECATED | |
| MEMBER_EXCLUDE_TYPES | back to summary |
|---|---|
| private static final String MEMBER_EXCLUDE_TYPES | |
| MEMBER_EXCLUDES | back to summary |
|---|---|
| private static final String MEMBER_EXCLUDES | |
| MEMBER_INCLUDE_TYPES | back to summary |
|---|---|
| private static final String MEMBER_INCLUDE_TYPES | |
| MEMBER_INCLUDES | back to summary |
|---|---|
| private static final String MEMBER_INCLUDES | |
| MEMBER_INTERFACES | back to summary |
|---|---|
| private static final String MEMBER_INTERFACES | |
| MEMBER_METHOD_ANNOTATIONS | back to summary |
|---|---|
| private static final String MEMBER_METHOD_ANNOTATIONS | |
| MEMBER_PARAMETER_ANNOTATIONS | back to summary |
|---|---|
| private static final String MEMBER_PARAMETER_ANNOTATIONS | |
| MY_TYPE | back to summary |
|---|---|
| private static final ClassNode MY_TYPE | |
| MY_TYPE_NAME | back to summary |
|---|---|
| private static final String MY_TYPE_NAME | |
| DelegateASTTransformation | back to summary |
|---|---|
| public DelegateASTTransformation() | |
| addDelegateMethod | back to summary |
|---|---|
| private void addDelegateMethod(final MethodNode candidate, final DelegateASTTransformation. | |
| addGetterIfNeeded | back to summary |
|---|---|
| private static void addGetterIfNeeded(final DelegateASTTransformation. | |
| addSetterIfNeeded | back to summary |
|---|---|
| private static void addSetterIfNeeded(final DelegateASTTransformation. | |
| checkPropertyOrMethodList | back to summary |
|---|---|
| private boolean checkPropertyOrMethodList(final ClassNode cNode, final List<String> propertyNameList, final String listName, final AnnotationNode anno, final String typeName) | |
| clashesWithOtherParams | back to summary |
|---|---|
| private static boolean clashesWithOtherParams(final String name, final Parameter[] params, final int i) | |
| collectMethods | back to summary |
|---|---|
| private static List | |
| extractAccessorInfo | back to summary |
|---|---|
| private static void extractAccessorInfo(final ClassNode owner, final String name, final Reference<Boolean> willHaveGetAccessor, final Reference<Boolean> willHaveIsAccessor) | |
| filterMethods | back to summary |
|---|---|
| private static List | |
| getGenericPlaceholderNames | back to summary |
|---|---|
| private static List | |
| getParamName | back to summary |
|---|---|
| private static String getParamName(final Parameter[] params, final int i, final String fieldName) | |
| shouldSkipPropertyMethod | back to summary |
|---|---|
| private static boolean shouldSkipPropertyMethod(final String propertyName, final String methodName, final List<String> excludes, final List<String> includes, final boolean allNames) | |
| visit | back to summary |
|---|---|
| public void visit(final ASTNode[] nodes, final 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv AnnotationNode | |
| pack-priv AnnotatedNode | |
| pack-priv List | |
| pack-priv List | |
| pack-priv Expression | |
| pack-priv List | |
| pack-priv List | |
| pack-priv String | |
| pack-priv String | |
| pack-priv ClassNode | |
| pack-priv ClassNode |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| annotation | back to summary |
|---|---|
| pack-priv AnnotationNode annotation | |
| delegate | back to summary |
|---|---|
| pack-priv AnnotatedNode delegate | |
| excludes | back to summary |
|---|---|
| pack-priv List<String> excludes | |
| excludeTypes | back to summary |
|---|---|
| pack-priv List<ClassNode> excludeTypes | |
| getOp | back to summary |
|---|---|
| pack-priv Expression getOp | |
| includes | back to summary |
|---|---|
| pack-priv List<String> includes | |
| includeTypes | back to summary |
|---|---|
| pack-priv List<ClassNode> includeTypes | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| origin | back to summary |
|---|---|
| pack-priv String origin | |
| owner | back to summary |
|---|---|
| pack-priv ClassNode owner | |
| type | back to summary |
|---|---|
| pack-priv ClassNode type | |
| DelegateDescription | back to summary |
|---|---|
| pack-priv DelegateDescription() | |