public abstract class AbstractASTTransformation extends Object
Modifiers | Name | Description |
---|---|---|
static ClassNode |
RETENTION_CLASSNODE |
|
protected SourceUnit |
sourceUnit |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addError(String msg, ASTNode expr) |
|
protected boolean |
checkIncludeExclude(AnnotationNode node, List<String> excludes, List<String> includes, String typeName) |
|
protected void |
checkIncludeExclude(AnnotationNode node, List<String> excludes, List<String> includes, List<ClassNode> excludeTypes, List<ClassNode> includeTypes, String typeName) |
|
protected boolean |
checkIncludeExcludeUndefinedAware(AnnotationNode node, List<String> excludes, List<String> includes, String typeName) |
|
protected void |
checkIncludeExcludeUndefinedAware(AnnotationNode node, List<String> excludes, List<String> includes, List<ClassNode> excludeTypes, List<ClassNode> includeTypes, String typeName) |
|
protected boolean |
checkNotInterface(ClassNode cNode, String annotationName) |
|
boolean |
checkPropertyList(ClassNode cNode, List<String> propertyNameList, String listName, AnnotationNode anno, String typeName, boolean includeFields) |
|
boolean |
checkPropertyList(ClassNode cNode, List<String> propertyNameList, String listName, AnnotationNode anno, String typeName, boolean includeFields, boolean includeSuperProperties, boolean allProperties) |
|
boolean |
checkPropertyList(ClassNode cNode, List<String> propertyNameList, String listName, AnnotationNode anno, String typeName, boolean includeFields, boolean includeSuperProperties, boolean allProperties, boolean includeSuperFields, boolean includeStatic) |
|
protected List<AnnotationNode> |
copyAnnotatedNodeAnnotations(AnnotatedNode annotatedNode, String myTypeName) Copies all candidateAnnotations with retention policy RetentionPolicy.RUNTIME and RetentionPolicy.CLASS. |
|
static boolean |
deemedInternalName(String name) |
|
String |
getAnnotationName() If the transform is associated with a single annotation, returns a name suitable for displaying in error messages. |
|
List<ClassNode> |
getClassList(AnnotationNode anno, String name) |
|
List<ClassNode> |
getMemberClassList(AnnotationNode anno, String name) |
|
ClassNode |
getMemberClassValue(AnnotationNode node, String name) |
|
ClassNode |
getMemberClassValue(AnnotationNode node, String name, ClassNode defaultValue) |
|
int |
getMemberIntValue(AnnotationNode node, String name) |
|
static List<String> |
getMemberList(AnnotationNode anno, String name) |
|
static List<String> |
getMemberStringList(AnnotationNode anno, String name) |
|
static String |
getMemberStringValue(AnnotationNode node, String name, String defaultValue) |
|
static String |
getMemberStringValue(AnnotationNode node, String name) |
|
Object |
getMemberValue(AnnotationNode node, String name) |
|
boolean |
hasAnnotation(ClassNode node, ClassNode annotation) |
|
protected void |
init(ASTNode[] nodes, SourceUnit sourceUnit) |
|
boolean |
memberHasValue(AnnotationNode node, String name, Object value) |
|
static ClassNode |
nonGeneric(ClassNode type) @deprecated use GenericsUtils#nonGeneric |
|
static boolean |
shouldSkip(String name, List<String> excludes, List<String> includes) |
|
static boolean |
shouldSkip(String name, List<String> excludes, List<String> includes, boolean allNames) |
|
static boolean |
shouldSkipOnDescriptor(boolean checkReturn, Map genericsSpec, MethodNode mNode, List<ClassNode> excludeTypes, List<ClassNode> includeTypes) |
|
static boolean |
shouldSkipOnDescriptorUndefinedAware(boolean checkReturn, Map genericsSpec, MethodNode mNode, List<ClassNode> excludeTypes, List<ClassNode> includeTypes) |
|
static boolean |
shouldSkipUndefinedAware(String name, List<String> excludes, List<String> includes) |
|
static boolean |
shouldSkipUndefinedAware(String name, List<String> excludes, List<String> includes, boolean allNames) |
|
static List<String> |
tokenize(String rawExcludes) |
Copies all candidateAnnotations with retention policy RetentionPolicy.RUNTIME and RetentionPolicy.CLASS.
Annotations with GeneratedClosure members are not supported for now.
If the transform is associated with a single annotation, returns a name suitable for displaying in error messages.