public interface JType
Modifier and Type | Method and Description |
---|---|
JType |
getErasedType()
Returns this type with no type parameters or type variables.
|
String |
getJNISignature()
Returns the
"field descriptor" for a type as specified by the Java Virtual Machine Specification.
|
JType |
getLeafType()
For array types, recursively looks for the element type that is not an
array.
|
String |
getParameterizedQualifiedSourceName()
Returns a type name as it would be specified in Java source, with the
package name included.
|
String |
getQualifiedBinaryName()
A binary type name as specified by the
Java Language Spec, ThirdEdition.
|
String |
getQualifiedSourceName()
Returns a type name as it would be specified in Java source, with the
package name included.
|
String |
getSimpleSourceName()
Returns the name of this class without the package name or enclosing class name.
|
JAnnotationType |
isAnnotation()
Returns this instance as a
JAnnotationType if it is an annotation
or null if it is not. |
JArrayType |
isArray() |
JClassType |
isClass()
Returns this instance if the erased version of this type is a class (as opposed to a primitive,
array, or interface) or
null if it is not. |
JClassType |
isClassOrInterface()
Returns this instance if the erased version of this type is a class or interface (as opposed to
a primitive or array array) or
null if it is not. |
JEnumType |
isEnum()
Returns this instance if it is an enumeration or
null if it is
not. |
JGenericType |
isGenericType()
Returns this instance if it is a real class that has type parameters or
null
if it is not. |
JClassType |
isInterface()
Returns this instance if it is an interface or
null if it is not. |
JParameterizedType |
isParameterized()
Returns this instance as a
JParameterizedType if it is a parameterized type
or null if it is not. |
JPrimitiveType |
isPrimitive() |
JRawType |
isRawType()
Returns the raw type if this is a
JRawType , otherwise returns
null . |
JTypeParameter |
isTypeParameter() |
JWildcardType |
isWildcard() |
JType getErasedType()
String getJNISignature()
Z
[B
Ljava/lang/String;
JType getLeafType()
String getParameterizedQualifiedSourceName()
String getQualifiedBinaryName()
String getQualifiedSourceName()
String getSimpleSourceName()
JAnnotationType isAnnotation()
JAnnotationType
if it is an annotation
or null
if it is not.JArrayType isArray()
JClassType isClass()
null
if it is not.JClassType isClassOrInterface()
null
if it is not.JEnumType isEnum()
null
if it is
not.JGenericType isGenericType()
null
if it is not.JClassType isInterface()
null
if it is not.JParameterizedType isParameterized()
JParameterizedType
if it is a parameterized type
or null
if it is not.JPrimitiveType isPrimitive()
JTypeParameter isTypeParameter()
JWildcardType isWildcard()
Copyright © 2016. All rights reserved.