public class JavaModel
extends java.lang.Object
| Constructor and Description |
|---|
JavaModel() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBoxedReturnType(javax.lang.model.element.ExecutableElement exec)
Gives a string representation of the executable element's return type.
|
static java.util.List<javax.lang.model.element.ExecutableElement> |
getMethodsNamed(javax.lang.model.element.TypeElement typeElem,
java.lang.String name) |
static java.lang.String |
getPackage(javax.lang.model.type.TypeMirror type) |
static javax.lang.model.element.TypeElement |
getTypeElement(javax.annotation.processing.ProcessingEnvironment procEnv,
java.lang.String className) |
static boolean |
hasPrimitiveReturnType(javax.lang.model.element.ExecutableElement exec) |
static boolean |
hasVoidReturnType(javax.lang.model.element.ExecutableElement exec) |
static boolean |
hasZeroArgConstructor(javax.lang.model.element.Element type) |
static boolean |
hasZeroArgConstructor(javax.lang.model.type.TypeMirror type) |
static <A extends java.lang.annotation.Annotation> |
isAnnotatedBy(javax.annotation.processing.ProcessingEnvironment procEnv,
javax.lang.model.element.Element elem,
java.lang.String annotationName) |
static <A extends java.lang.annotation.Annotation> |
isAnnotatedBy(javax.annotation.processing.ProcessingEnvironment procEnv,
javax.lang.model.type.TypeMirror typeMirror,
java.lang.String annotationName) |
static boolean |
isArray(javax.lang.model.element.Element type) |
static boolean |
isArray(javax.lang.model.type.TypeMirror type) |
static boolean |
isFinalType(javax.lang.model.element.TypeElement type) |
static boolean |
isFinalType(javax.lang.model.type.TypeMirror returnType) |
static boolean |
isNamed(javax.lang.model.element.Element elem,
java.lang.String name) |
static boolean |
isPrimitive(javax.lang.model.element.Element type) |
static boolean |
isPrimitive(javax.lang.model.type.TypeMirror type) |
static boolean |
isVoidType(javax.lang.model.type.TypeMirror type) |
public static java.lang.String getBoxedReturnType(javax.lang.model.element.ExecutableElement exec)
exec - public static javax.lang.model.element.TypeElement getTypeElement(javax.annotation.processing.ProcessingEnvironment procEnv,
java.lang.String className)
public static java.util.List<javax.lang.model.element.ExecutableElement> getMethodsNamed(javax.lang.model.element.TypeElement typeElem,
java.lang.String name)
public static boolean isNamed(javax.lang.model.element.Element elem,
java.lang.String name)
public static boolean hasVoidReturnType(javax.lang.model.element.ExecutableElement exec)
public static boolean isVoidType(javax.lang.model.type.TypeMirror type)
public static boolean isFinalType(javax.lang.model.type.TypeMirror returnType)
public static boolean hasZeroArgConstructor(javax.lang.model.type.TypeMirror type)
public static boolean isFinalType(javax.lang.model.element.TypeElement type)
public static boolean isPrimitive(javax.lang.model.type.TypeMirror type)
public static boolean isPrimitive(javax.lang.model.element.Element type)
public static boolean hasPrimitiveReturnType(javax.lang.model.element.ExecutableElement exec)
public static boolean isArray(javax.lang.model.type.TypeMirror type)
public static boolean isArray(javax.lang.model.element.Element type)
public static boolean hasZeroArgConstructor(javax.lang.model.element.Element type)
public static <A extends java.lang.annotation.Annotation> boolean isAnnotatedBy(javax.annotation.processing.ProcessingEnvironment procEnv,
javax.lang.model.type.TypeMirror typeMirror,
java.lang.String annotationName)
public static <A extends java.lang.annotation.Annotation> boolean isAnnotatedBy(javax.annotation.processing.ProcessingEnvironment procEnv,
javax.lang.model.element.Element elem,
java.lang.String annotationName)
public static java.lang.String getPackage(javax.lang.model.type.TypeMirror type)