Package groovy.transform.options
Class DefaultPropertyHandler
- java.lang.Object
- 
- groovy.transform.options.PropertyHandler
- 
- groovy.transform.options.DefaultPropertyHandler
 
 
- 
 public class DefaultPropertyHandler extends PropertyHandler 
- 
- 
Field Summary- 
Fields inherited from class groovy.transform.options.PropertyHandlerPROPERTY_OPTIONS_TYPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultPropertyHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementcreatePropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)Create a statement that will initialize the property including any defensive copying.booleanvalidateAttributes(AbstractASTTransformation xform, AnnotationNode anno)booleanvalidateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, java.util.List<PropertyNode> props)- 
Methods inherited from class groovy.transform.options.PropertyHandlercreatePropertyHandler, createPropGetter, createPropSetter, isValidAttribute
 
- 
 
- 
- 
- 
Method Detail- 
validateAttributespublic boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno) - Specified by:
- validateAttributesin class- PropertyHandler
 
 - 
validatePropertiespublic boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, java.util.List<PropertyNode> props) - Overrides:
- validatePropertiesin class- PropertyHandler
 
 - 
createPropInitpublic Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap) Description copied from class:PropertyHandlerCreate a statement that will initialize the property including any defensive copying. Null if no statement should be added.- Specified by:
- createPropInitin class- PropertyHandler
- Parameters:
- xform- the transform being processed
- anno- the '@ImmutableBase' annotation node
- cNode- the classnode containing the property
- pNode- the property node to initialize
- namedArgsMap- an "args" Map if the property value should come from a named arg map or null if not
 
 
- 
 
-