-
Notifications
You must be signed in to change notification settings - Fork 4
Template Java Utility
[Back] (https://github.com/iks-github/MOGLiCodeCreator/wiki/Using-MOGLiCC-template-utilities)
last updated v 1.0.0
public static boolean isPrimitiveType(java.lang.String clazz)
public static boolean isPrimitiveTypeWrapper(java.lang.String clazz)
public static boolean **isImmutableClass(java.lang.String clazz)
public static java.lang.String getSimpleClassName(java.lang.String clazz)
Returns:
simple name of class, e.g. org.joda.time.DateTime -> DateTime
public static java.util.List<java.lang.String> getSimpleClassName(java.util.List<java.lang.String> classes)
public static java.util.HashSet<java.lang.String> searchForImportClasses(com.iksgmbh.moglicc.provider.model.standard.ClassDescriptor classDescriptor)
public java.lang.String importStatement(java.lang.String clazz)
Returns:
Import statement for clazz. For types like "Boolean" no import statement is generated and an empty String returned. For types like "Date", the package "java.util" is added automatically.
public static boolean isFullyQualifiedClassName(java.lang.String className)
public static java.lang.String getArrayElementType(java.lang.String javaType)
public static boolean isJavaMetaTypePrimitive(java.lang.String javaType)
public static boolean isJavaMetaTypeGeneric(java.lang.String javaType)
public static java.lang.String getCollectionMetaType(java.lang.String javaType)
public static java.lang.String getCollectionElementType(java.lang.String javaType)
public static boolean isJavaMetaTypeArray(java.lang.String javaType)
public static boolean isJavaMetaTypeCollection(java.lang.String javaType)
public static boolean hasInterface(java.lang.Class<?> clazz, java.lang.String interfaceToSearch)
Returns:
returns true if clazz is of type interfaceToSearch
[Back] (https://github.com/iks-github/MOGLiCodeCreator/wiki/Using-MOGLiCC-template-utilities)