public final class JTypes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.ThreadLocal<java.util.LinkedHashMap<java.lang.String,JType>> |
cache |
| Modifier | Constructor and Description |
|---|---|
private |
JTypes() |
| Modifier and Type | Method and Description |
|---|---|
static JType |
$t(java.lang.Class<?> clazz)
Return the type corresponding to the given class.
|
static JType |
$t(JClassDef classDef)
Return the erased type of a class definition.
|
static JType |
$t(java.lang.String name)
Return a type corresponding to a class with the given name.
|
static JType |
typeNamed(java.lang.String name)
Return a type corresponding to a class with the given name.
|
static JType |
typeOf(java.lang.Class<?> clazz)
Return the type corresponding to the given class.
|
static JType |
typeOf(JClassDef classDef)
Return the erased type of a class definition.
|
static JType |
typeOf(javax.lang.model.type.TypeMirror typeMirror)
Get a
JType that corresponds to the given TypeMirror for annotation processors. |
static final java.lang.ThreadLocal<java.util.LinkedHashMap<java.lang.String,JType>> cache
public static JType $t(JClassDef classDef)
classDef - the class definitionpublic static JType $t(java.lang.Class<?> clazz)
clazz - the classpublic static JType $t(java.lang.String name)
name - the class namepublic static JType typeOf(JClassDef classDef)
classDef - the class definitionpublic static JType typeOf(java.lang.Class<?> clazz)
clazz - the classpublic static JType typeNamed(java.lang.String name)
name - the class namepublic static JType typeOf(javax.lang.model.type.TypeMirror typeMirror)
JType that corresponds to the given TypeMirror for annotation processors.typeMirror - the type mirrorJType