On this page
[Java] Class ImmutablePropertyHandler
- groovy.transform.options.ImmutablePropertyHandler
public class ImmutablePropertyHandler
extends PropertyHandler
Fields inherited from class | Fields |
---|---|
class PropertyHandler |
PROPERTY_OPTIONS_TYPE |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected Statement |
checkFinalArgNotOverridden(ClassNode cNode, FieldNode fNode) |
|
protected Expression |
cloneCollectionExpr(Expression fieldExpr, ClassNode type) |
|
protected Expression |
createAsImmutableX(Expression expr, ClassNode type) |
|
protected Statement |
createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap) |
|
public Statement |
createPropGetter(PropertyNode pNode) |
|
public Statement |
createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap) |
|
public Statement |
createPropSetter(PropertyNode pNode) |
|
public boolean |
validateAttributes(AbstractASTTransformation xform, AnnotationNode anno) |
|
public boolean |
validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class PropertyHandler |
createPropGetter, createPropInit, createPropSetter, createPropertyHandler, isValidAttribute, validateAttributes, validateProperties |
Method Detail
protected Statement checkFinalArgNotOverridden(ClassNode cNode, FieldNode fNode)
protected Expression cloneCollectionExpr(Expression fieldExpr, ClassNode type)
protected Expression createAsImmutableX(Expression expr, ClassNode type)
protected Statement createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
@Override public Statement createPropGetter(PropertyNode pNode)
@Override public Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
@Override public Statement createPropSetter(PropertyNode pNode)
@Override public boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
@Override public boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/transform/options/ImmutablePropertyHandler.html