public class ImmutablePropertyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static ClassNode |
IMMUTABLE_OPTIONS_TYPE |
Modifier and Type | Method and Description |
---|---|
static 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) |
static List<String> |
getKnownImmutableClasses(AbstractASTTransformation xform,
ClassNode cNode) |
static List<String> |
getKnownImmutables(AbstractASTTransformation xform,
ClassNode cNode) |
static boolean |
implementsCloneable(ClassNode fieldType) |
static boolean |
isBuiltinImmutable(String typeName) |
static boolean |
isKnownImmutableType(ClassNode fieldType,
List<String> knownImmutableClasses) |
public static final ClassNode IMMUTABLE_OPTIONS_TYPE
public static Expression cloneArrayOrCloneableExpr(Expression fieldExpr, ClassNode type)
public static boolean implementsCloneable(ClassNode fieldType)
public static Expression cloneDateExpr(Expression origDate)
public static boolean derivesFromDate(ClassNode fieldType)
public static String createErrorMessage(String className, String fieldName, String typeName, String mode)
public static boolean isKnownImmutableType(ClassNode fieldType, List<String> knownImmutableClasses)
public static boolean isBuiltinImmutable(String typeName)
public static boolean builtinOrMarkedImmutableClass(Class<?> clazz)
public static List<String> getKnownImmutables(AbstractASTTransformation xform, ClassNode cNode)
public static List<String> getKnownImmutableClasses(AbstractASTTransformation xform, ClassNode cNode)