public interface JavaType
Type
.Modifier and Type | Method and Description |
---|---|
String |
getCanonicalName()
Equivalent of (@link
Class.getCanonicalName() . |
String |
getFullyQualifiedName()
Returns the FQN of an Object or the handler of a Type.
|
String |
getGenericCanonicalName()
The canonical name with generic information.
|
String |
getGenericFullyQualifiedName()
The fully qualified nate with generic information.
|
String |
getGenericValue()
A java5+ representation of the class.
|
String |
getValue()
If there's a reference to this class, use the value used in the code.
|
String |
toGenericString()
Deprecated.
|
static final JavaType VOID
String getCanonicalName()
Class.getCanonicalName()
.String getGenericCanonicalName()
String getFullyQualifiedName()
#getComponentType()
.
Some examples how names will be translated
Object > java.lang.Object java.util.List > java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer$Inner String[][] > java.lang.String[][]
null
#getComponentType()
String getGenericFullyQualifiedName()
String getValue()
private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private ListaList; // getValue() will return "List"
String getGenericValue()
private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private ListaList; // getValue() will return "List "
@Deprecated String toGenericString()
Copyright © 2002–2014. All rights reserved.