public class LegacyHashMapPropertyHandler extends ImmutablePropertyHandler
PROPERTY_OPTIONS_TYPE
Constructor and Description |
---|
LegacyHashMapPropertyHandler() |
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) |
checkFinalArgNotOverridden, cloneCollectionExpr, createAsImmutableX, createConstructorStatement, createPropGetter, createPropSetter
createPropertyHandler, isValidAttribute
public boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
validateAttributes
in class ImmutablePropertyHandler
public boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, java.util.List<PropertyNode> props)
validateProperties
in class ImmutablePropertyHandler
public Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
PropertyHandler
createPropInit
in class ImmutablePropertyHandler
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