[Java] Class ImmutablePropertyHandler

  • groovy.transform.options.ImmutablePropertyHandler
Inherited fields
Fields inherited from class Fields
class PropertyHandler PROPERTY_OPTIONS_TYPE

Methods Summary

Methods
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, boolean namedArgs)
protected Statement createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
Statement createPropGetter(PropertyNode pNode)
Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
Statement createPropSetter(PropertyNode pNode)
boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)

Inherited Methods Summary

Inherited Methods
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)

@Deprecated protected Statement createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, boolean namedArgs)

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-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/groovy/transform/options/ImmutablePropertyHandler.html