|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.transform.AnnotationCollectorTransform
public class AnnotationCollectorTransform extends java.lang.Object
This class is the base for any annotation alias processor.
| Nested Class Summary | |
|---|---|
static class |
AnnotationCollectorTransform.ClassChanger
Class used by CompilationUnit to transform the alias class into what is needed by the compiler. |
| Method Summary | |
|---|---|
protected void
|
addError(java.lang.String message, ASTNode node, SourceUnit source)
Adds a new syntax error to the source unit and then continues. |
protected java.util.List
|
getTargetAnnotationList(AnnotationNode collector, AnnotationNode aliasAnnotationUsage, SourceUnit source)
Returns a list of AnnotationNodes for the value attribute of the given AnnotationNode. |
java.util.List
|
visit(AnnotationNode collector, AnnotationNode aliasAnnotationUsage, AnnotatedNode aliasAnnotated, SourceUnit source)
Implementation method of the alias annotation processor. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Method Detail |
|---|
protected void addError(java.lang.String message, ASTNode node, SourceUnit source)
message - the messagenode - the node for the error reportsource - the source unit for the error report
protected java.util.List getTargetAnnotationList(AnnotationNode collector, AnnotationNode aliasAnnotationUsage, SourceUnit source)
collector - the node containing the value member with the listsource - the source unit for error reporting
public java.util.List visit(AnnotationNode collector, AnnotationNode aliasAnnotationUsage, AnnotatedNode aliasAnnotated, SourceUnit source)
collector - reference to the annotation with AnnotationCollectoraliasAnnotationUsage - reference to the place of usage of the aliasaliasAnnotated - reference to the node that has been annotated by the aliassource - source unit for error reporting
Groovy Documentation