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,
java.util.List<PropertyNode> props) |
createPropertyHandler, createPropGetter, createPropSetter, isValidAttributepublic boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
validateAttributes in class PropertyHandlerpublic boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, java.util.List<PropertyNode> props)
validateProperties in class PropertyHandlerpublic Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
PropertyHandlercreatePropInit in class PropertyHandlerxform - 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