public class DefaultPropertyHandler extends PropertyHandler
PROPERTY_OPTIONS_TYPE
Constructor and Description |
---|
DefaultPropertyHandler() |
Modifier and Type | Method and Description |
---|---|
Statement |
createPropInit(AbstractASTTransformation xform,
AnnotationNode anno,
ClassNode cNode,
PropertyNode pNode,
Parameter namedArgsMap)
Create a statement that will initialize the property including any defensive copying.
|
boolean |
validateAttributes(AbstractASTTransformation xform,
AnnotationNode anno) |
boolean |
validateProperties(AbstractASTTransformation xform,
BlockStatement body,
ClassNode cNode,
List<PropertyNode> props) |
createPropertyHandler, createPropGetter, createPropSetter, isValidAttribute
public boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
validateAttributes
in class PropertyHandler
public boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)
validateProperties
in class PropertyHandler
public Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
PropertyHandler
createPropInit
in class PropertyHandler
xform
- the transform being processedanno
- the '@ImmutableBase' annotation nodecNode
- the classnode containing the propertypNode
- the property node to initializenamedArgsMap
- an "args" Map if the property value should come from a named arg map or null if not