public class DefaultPropertyHandler
extends PropertyHandler
Default implementation for validating and initializing transformed properties.
| Fields inherited from class | Fields |
|---|---|
class PropertyHandler |
PROPERTY_OPTIONS_TYPE |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Statement |
createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)Create a statement that will initialize the property including any defensive copying. Null if no statement should be added.
|
|
public boolean |
validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)Validates annotation attributes supported by this handler.
|
|
public boolean |
validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)Validates the properties selected for processing.
|
| Methods inherited from class | Name |
|---|---|
class PropertyHandler |
createPropGetter, createPropInit, createPropSetter, createPropertyHandler, isValidAttribute, validateAttributes, validateProperties |
Create a statement that will initialize the property including any defensive copying. Null if no statement should be added.
xform - the transform being processedanno - the '@ImmutableBase' annotation nodecNode - the classnode containing the propertypNode - the property node to initializenamedArgMap - an "args" Map if the property value should come from a named arg map or null if notValidates annotation attributes supported by this handler.
xform - the active transformanno - the property options annotationtrue if validation succeedsValidates the properties selected for processing.
xform - the active transformbody - the statement block being generatedcNode - the owning classprops - the candidate propertiestrue if validation succeeds