Builder annotation.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private CompilationUnit | |
| private static final Class | |
| private static final ClassNode | |
| public static final String | |
| public static final ClassNode[] | |
| public static final Parameter[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private BuilderASTTransformation. | |
| public void | setCompilationUnit(final CompilationUnit unit)
Implements groovy. |
| 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. |
| compilationUnit | back to summary |
|---|---|
| private CompilationUnit compilationUnit | |
| MY_CLASS | back to summary |
|---|---|
| private static final Class<T> MY_CLASS | |
| MY_TYPE | back to summary |
|---|---|
| private static final ClassNode MY_TYPE | |
| MY_TYPE_NAME | back to summary |
|---|---|
| public static final String MY_TYPE_NAME | |
| NO_EXCEPTIONS | back to summary |
|---|---|
| public static final ClassNode[] NO_EXCEPTIONS | |
| NO_PARAMS | back to summary |
|---|---|
| public static final Parameter[] NO_PARAMS | |
| BuilderASTTransformation | back to summary |
|---|---|
| public BuilderASTTransformation() | |
| checkStatic | back to summary |
|---|---|
| private boolean checkStatic(MethodNode mNode, String annotationName) | |
| createBuilderStrategy | back to summary |
|---|---|
| private BuilderASTTransformation. | |
| setCompilationUnit | back to summary |
|---|---|
| public void setCompilationUnit(final 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.
| |
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Access | Constructor and Description |
|---|---|
| public |
| AbstractBuilderStrategy | back to summary |
|---|---|
| public AbstractBuilderStrategy() | |
| checkKnownField | back to summary |
|---|---|
| protected void checkKnownField(BuilderASTTransformation transform, AnnotationNode anno, String name, List<FieldNode> fields) | |
| checkKnownProperty | back to summary |
|---|---|
| protected void checkKnownProperty(BuilderASTTransformation transform, AnnotationNode anno, String name, List<BuilderASTTransformation. | |
| getFields | back to summary |
|---|---|
| protected List | |
| getIncludeExclude | back to summary |
|---|---|
| protected boolean getIncludeExclude(BuilderASTTransformation transform, AnnotationNode anno, ClassNode cNode, List<String> excludes, List<String> includes) | |
| getPropertyInfoFromBeanInfo | back to summary |
|---|---|
| protected static List | |
| getPropertyInfoFromClassNode | back to summary |
|---|---|
| protected static List | |
| getPropertyInfoFromClassNode | back to summary |
|---|---|
| protected static List | |
| getPropertyInfoFromClassNode | back to summary |
|---|---|
| protected List | |
| getPropertyInfos | back to summary |
|---|---|
| protected List | |
| getSetterName | back to summary |
|---|---|
| protected String getSetterName(String prefix, String fieldName) | |
| unsupportedAttribute | back to summary |
|---|---|
| protected boolean unsupportedAttribute(BuilderASTTransformation transform, AnnotationNode anno, String memberName) | |
| unsupportedAttribute | back to summary |
|---|---|
| protected boolean unsupportedAttribute(BuilderASTTransformation transform, AnnotationNode anno, String memberName, String extraMessage) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public ClassNode | |
| public void | |
| public void |
| PropertyInfo | back to summary |
|---|---|
| public PropertyInfo(String name, ClassNode type) | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public ClassNode getType() | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setType | back to summary |
|---|---|
| public void setType(ClassNode type) | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| build | back to summary |
|---|---|
| public void build(BuilderASTTransformation transform, AnnotatedNode annotatedNode, AnnotationNode anno) | |