public final class JTypes extends Object
Modifier and Type | Method and Description |
---|---|
static JType |
$t(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(String name)
Return a type corresponding to a class with the given name.
|
static JType |
typeNamed(String name)
Return a type corresponding to a class with the given name.
|
static JType |
typeOf(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(TypeMirror typeMirror)
Get a
JType that corresponds to the given TypeMirror for annotation processors. |
public static JType $t(JClassDef classDef)
classDef
- the class definitionpublic static JType $t(Class<?> clazz)
clazz
- the classpublic static JType $t(String name)
name
- the class namepublic static JType typeOf(JClassDef classDef)
classDef
- the class definitionpublic static JType typeOf(Class<?> clazz)
clazz
- the classpublic static JType typeNamed(String name)
name
- the class namepublic static JType typeOf(TypeMirror typeMirror)
JType
that corresponds to the given TypeMirror
for annotation processors.typeMirror
- the type mirrorJType
Copyright © 2019 JBoss by Red Hat. All rights reserved.