Package org.apache.groovy.ast.tools
Class ImmutablePropertyUtils
java.lang.Object
org.apache.groovy.ast.tools.ImmutablePropertyUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
builtinOrMarkedImmutableClass
(Class<?> clazz) static Expression
cloneArrayOrCloneableExpr
(Expression fieldExpr, ClassNode type) static Expression
cloneDateExpr
(Expression origDate) static String
createErrorMessage
(String className, String fieldName, String typeName, String mode) static boolean
derivesFromDate
(ClassNode fieldType) getKnownImmutableClasses
(AbstractASTTransformation xform, ClassNode cNode) getKnownImmutables
(AbstractASTTransformation xform, ClassNode cNode) static boolean
implementsCloneable
(ClassNode fieldType) static boolean
isBuiltinImmutable
(String typeName) static boolean
isKnownImmutableType
(ClassNode fieldType, List<String> knownImmutableClasses)
-
Field Details
-
IMMUTABLE_OPTIONS_TYPE
-
-
Method Details
-
cloneArrayOrCloneableExpr
-
implementsCloneable
-
cloneDateExpr
-
derivesFromDate
-
createErrorMessage
-
isKnownImmutableType
-
isBuiltinImmutable
-
builtinOrMarkedImmutableClass
-
getKnownImmutables
-
getKnownImmutableClasses
public static List<String> getKnownImmutableClasses(AbstractASTTransformation xform, ClassNode cNode)
-