Package org.jboss.jdeparser
Class JTypes
java.lang.Object
org.jboss.jdeparser.JTypes
The factory for generating simple types.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final ThreadLocal
<LinkedHashMap<String, JType>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JType
Return the type corresponding to the given class.static JType
Return a type corresponding to a class with the given name.static JType
Return the erased type of a class definition.static JType
Return a type corresponding to a class with the given name.static JType
Return the type corresponding to the given class.static JType
typeOf
(TypeMirror typeMirror) Get aJType
that corresponds to the givenTypeMirror
for annotation processors.static JType
Return the erased type of a class definition.
-
Field Details
-
cache
-
-
Constructor Details
-
JTypes
private JTypes()
-
-
Method Details
-
$t
Return the erased type of a class definition.- Parameters:
classDef
- the class definition- Returns:
- the type
-
$t
Return the type corresponding to the given class.- Parameters:
clazz
- the class- Returns:
- the type
-
$t
Return a type corresponding to a class with the given name.- Parameters:
name
- the class name- Returns:
- the type
-
typeOf
Return the erased type of a class definition.- Parameters:
classDef
- the class definition- Returns:
- the type
-
typeOf
Return the type corresponding to the given class.- Parameters:
clazz
- the class- Returns:
- the type
-
typeNamed
Return a type corresponding to a class with the given name.- Parameters:
name
- the class name- Returns:
- the type
-
typeOf
Get aJType
that corresponds to the givenTypeMirror
for annotation processors.- Parameters:
typeMirror
- the type mirror- Returns:
- the
JType
-