| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| public static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PropertyHandler | |
| public Statement | createPropGetter(PropertyNode
the property node pNode)Create the getter block used when reading the property including any defensive copying. |
| public abstract Statement | createPropInit(AbstractASTTransformation
the transform being processed xform, AnnotationNode the '@ImmutableBase' annotation node anno, ClassNode the classnode containing the property cNode, PropertyNode the property node to initialize pNode, Parameter an "args" Map if the property value should come from a named arg map or null if not namedArgMap)Create a statement that will initialize the property including any defensive copying. |
| public Statement | createPropSetter(PropertyNode
the property node pNode)Create the setter block used when setting the property. |
| protected boolean | |
| public abstract boolean | |
| public boolean | validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)
|
| PROPERTY_OPTIONS_CLASS | back to summary |
|---|---|
| private static final Class<? extends Annotation> PROPERTY_OPTIONS_CLASS | |
| PROPERTY_OPTIONS_TYPE | back to summary |
|---|---|
| public static final ClassNode PROPERTY_OPTIONS_TYPE | |
| PropertyHandler | back to summary |
|---|---|
| public PropertyHandler() | |
| createPropertyHandler | back to summary |
|---|---|
| public static PropertyHandler createPropertyHandler(AbstractASTTransformation xform, GroovyClassLoader loader, ClassNode cNode) | |
| createPropGetter | back to summary |
|---|---|
| public Statement createPropGetter(PropertyNode pNode) Create the getter block used when reading the property including any defensive copying.
| |
| createPropInit | back to summary |
|---|---|
| public abstract Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgMap) Create a statement that will initialize the property including any defensive copying. Null if no statement should be added.
| |
| createPropSetter | back to summary |
|---|---|
| public Statement createPropSetter(PropertyNode pNode) Create the setter block used when setting the property. Can be null for read-only properties.
| |
| isValidAttribute | back to summary |
|---|---|
| protected boolean isValidAttribute(AbstractASTTransformation xform, AnnotationNode anno, String memberName) | |
| validateAttributes | back to summary |
|---|---|
| public abstract boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno) | |
| validateProperties | back to summary |
|---|---|
| public boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props) | |