public final class CodeModelUtil extends Object
Modifier | Constructor and Description |
---|---|
private |
CodeModelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
annotateGenerated(com.sun.codemodel.JDefinedClass aClass)
Adds the
Generated annotation to the class. |
static com.sun.codemodel.JClass |
getGenericList(com.sun.codemodel.JCodeModel model,
String genericClassType)
Defines a generic List like List
|
static com.sun.codemodel.JClass |
getGenericOptional(com.sun.codemodel.JCodeModel model,
String genericClassType)
Defines a generic Optional like Optional
|
static com.sun.codemodel.JClass |
getMapStringObject(com.sun.codemodel.JCodeModel model)
Defines a Map
|
private static final String ISO8601
public static void annotateGenerated(com.sun.codemodel.JDefinedClass aClass)
Generated
annotation to the class.
E.g.: @Generated(value = "at.rseiler.spbee.core.SPBeeAnnotationProcessor", date = "2015-02-21T18:40:15.517+0100")aClass
- the class which will be annotatedpublic static com.sun.codemodel.JClass getMapStringObject(com.sun.codemodel.JCodeModel model)
model
- the model which will be used to define the mappublic static com.sun.codemodel.JClass getGenericList(com.sun.codemodel.JCodeModel model, String genericClassType)
model
- the model which will be used to define the listgenericClassType
- the generic type of the listpublic static com.sun.codemodel.JClass getGenericOptional(com.sun.codemodel.JCodeModel model, String genericClassType)
model
- the model which will be used to define the listgenericClassType
- the generic type of the listCopyright © 2015. All rights reserved.