| Modifier and Type | Field and Description |
|---|---|
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Statement | |
| private static Statement | |
| protected Statement | |
| protected Expression | |
| protected Expression | |
| private static Expression | createCheckImmutable(FieldNode fNode, Expression value, List<String> knownImmutables, List<String> knownImmutableClasses)
|
| protected Statement | createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, boolean namedArgs)
Deprecated
|
| protected Statement | createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap)
|
| private static Statement | |
| private static Statement | createConstructorStatementArrayOrCloneable(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck)
|
| private Statement | |
| private Statement | createConstructorStatementCollection(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck)
|
| private static Statement | |
| private static Statement | |
| private static Statement | |
| private static Statement | |
| private static Statement | |
| private static Statement | |
| private Statement | |
| private Statement | |
| private static Statement | |
| private Expression | |
| public Statement | createPropGetter(PropertyNode
the property node pNode)Overrides groovy. |
| public Statement | createPropInit(AbstractASTTransformation
the transform being processed xform, AnnotationNode the '@ImmutableBase' annotation node anno, ClassNode the classnode containing the property cNode, PropertyNode the property node to initialize pNode, Parameter an "args" Map if the property value should come from a named arg map or null if not namedArgsMap)Implements abstract groovy. |
| public Statement | createPropSetter(PropertyNode
the property node pNode)Overrides groovy. |
| private static Expression | |
| private static boolean | |
| public boolean | validateAttributes(AbstractASTTransformation xform, AnnotationNode anno)
Implements abstract groovy. |
| public boolean | validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props)
Overrides groovy. |
| CLONEABLE_TYPE | back to summary |
|---|---|
| private static final ClassNode CLONEABLE_TYPE | |
| COLLECTION_TYPE | back to summary |
|---|---|
| private static final ClassNode COLLECTION_TYPE | |
| DGM_TYPE | back to summary |
|---|---|
| private static final ClassNode DGM_TYPE | |
| MAP_CLASSNODE | back to summary |
|---|---|
| private static final ClassNode MAP_CLASSNODE | |
| MAP_TYPE | back to summary |
|---|---|
| private static final ClassNode MAP_TYPE | |
| READONLYEXCEPTION_TYPE | back to summary |
|---|---|
| private static final ClassNode READONLYEXCEPTION_TYPE | |
| SELF_TYPE | back to summary |
|---|---|
| private static final ClassNode SELF_TYPE | |
| SET_CLASSNODE | back to summary |
|---|---|
| private static final ClassNode SET_CLASSNODE | |
| SORTEDMAP_CLASSNODE | back to summary |
|---|---|
| private static final ClassNode SORTEDMAP_CLASSNODE | |
| SORTEDSET_CLASSNODE | back to summary |
|---|---|
| private static final ClassNode SORTEDSET_CLASSNODE | |
| ImmutablePropertyHandler | back to summary |
|---|---|
| public ImmutablePropertyHandler() | |
| assignFieldWithDefault | back to summary |
|---|---|
| private static Statement assignFieldWithDefault(Parameter map, FieldNode fNode, Statement assignStmt, Statement assignInit) | |
| assignWithDefault | back to summary |
|---|---|
| private static Statement assignWithDefault(boolean namedArgs, Statement assignInit, Expression param, Statement assignStmt) | |
| checkFinalArgNotOverridden | back to summary |
|---|---|
| protected Statement checkFinalArgNotOverridden(ClassNode cNode, FieldNode fNode) | |
| cloneCollectionExpr | back to summary |
|---|---|
| protected Expression cloneCollectionExpr(Expression fieldExpr, ClassNode type) | |
| createAsImmutableX | back to summary |
|---|---|
| protected Expression createAsImmutableX(final Expression expr, final ClassNode type) | |
| createCheckImmutable | back to summary |
|---|---|
| private static Expression createCheckImmutable(FieldNode fNode, Expression value, List<String> knownImmutables, List<String> knownImmutableClasses) | |
| createConstructorStatement | back to summary |
|---|---|
| protected Statement createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, boolean namedArgs)
Deprecated
| |
| createConstructorStatement | back to summary |
|---|---|
| protected Statement createConstructorStatement(AbstractASTTransformation xform, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap) | |
| createConstructorStatementArrayOrCloneable | back to summary |
|---|---|
| private static Statement createConstructorStatementArrayOrCloneable(FieldNode fNode, boolean namedArgs) | |
| createConstructorStatementArrayOrCloneable | back to summary |
|---|---|
| private static Statement createConstructorStatementArrayOrCloneable(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck) | |
| createConstructorStatementCollection | back to summary |
|---|---|
| private Statement createConstructorStatementCollection(FieldNode fNode, boolean namedArgs) | |
| createConstructorStatementCollection | back to summary |
|---|---|
| private Statement createConstructorStatementCollection(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck) | |
| createConstructorStatementDate | back to summary |
|---|---|
| private static Statement createConstructorStatementDate(FieldNode fNode, boolean namedArgs) | |
| createConstructorStatementDate | back to summary |
|---|---|
| private static Statement createConstructorStatementDate(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck) | |
| createConstructorStatementDefault | back to summary |
|---|---|
| private static Statement createConstructorStatementDefault(FieldNode fNode, boolean namedArgs) | |
| createConstructorStatementDefault | back to summary |
|---|---|
| private static Statement createConstructorStatementDefault(FieldNode fNode, Parameter namedArgsMap, boolean shouldNullCheck) | |
| createConstructorStatementGuarded | back to summary |
|---|---|
| private static Statement createConstructorStatementGuarded(ClassNode cNode, FieldNode fNode, boolean namedArgs, List<String> knownImmutables, List<String> knownImmutableClasses) | |
| createConstructorStatementGuarded | back to summary |
|---|---|
| private static Statement createConstructorStatementGuarded(FieldNode fNode, Parameter namedArgsMap, List<String> knownImmutables, List<String> knownImmutableClasses, boolean shouldNullCheck) | |
| createGetterBodyArrayOrCloneable | back to summary |
|---|---|
| private Statement createGetterBodyArrayOrCloneable(FieldNode fNode) | |
| createGetterBodyDate | back to summary |
|---|---|
| private Statement createGetterBodyDate(FieldNode fNode) | |
| createGetterBodyDefault | back to summary |
|---|---|
| private static Statement createGetterBodyDefault(FieldNode fNode) | |
| createIfInstanceOfAsImmutableS | back to summary |
|---|---|
| private Expression createIfInstanceOfAsImmutableS(Expression expr, ClassNode type, Expression elseStatement) | |
| createPropGetter | back to summary |
|---|---|
| public Statement createPropGetter(PropertyNode pNode) Overrides groovy. Doc from groovy. Create the getter block used when reading the property including any defensive copying.
| |
| createPropInit | back to summary |
|---|---|
| public Statement createPropInit(AbstractASTTransformation xform, AnnotationNode anno, ClassNode cNode, PropertyNode pNode, Parameter namedArgsMap) Implements abstract groovy. Doc from groovy. Create a statement that will initialize the property including any defensive copying. Null if no statement should be added.
| |
| createPropSetter | back to summary |
|---|---|
| public Statement createPropSetter(PropertyNode pNode) Overrides groovy. Doc from groovy. Create the setter block used when setting the property. Can be null for read-only properties.
| |
| getParam | back to summary |
|---|---|
| private static Expression getParam(FieldNode fNode, boolean namedArgs) | |
| isKnownImmutable | back to summary |
|---|---|
| private static boolean isKnownImmutable(String fieldName, List<String> knownImmutables) | |
| validateAttributes | back to summary |
|---|---|
| public boolean validateAttributes(AbstractASTTransformation xform, AnnotationNode anno) Implements abstract groovy.
| |
| validateProperties | back to summary |
|---|---|
| public boolean validateProperties(AbstractASTTransformation xform, BlockStatement body, ClassNode cNode, List<PropertyNode> props) Overrides groovy.
| |