public interface JType
Modifier and Type | Method and Description |
---|---|
JType |
getErasedType()
Returns this type with no type parameters or type variables.
|
java.lang.String |
getJNISignature()
Returns the turns 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.
|
java.lang.String |
getParameterizedQualifiedSourceName() |
java.lang.String |
getQualifiedBinaryName()
A binary type name as specified by the
Java Language Spec, ThirdEdition.
|
java.lang.String |
getQualifiedSourceName()
Returns a type name as it would be specified in Java source, with the
package name included.
|
java.lang.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() |
JClassType |
isClassOrInterface() |
JEnumType |
isEnum()
Returns this instance if it is an enumeration or
null if it is
not. |
JGenericType |
isGenericType() |
JClassType |
isInterface() |
JParameterizedType |
isParameterized() |
JPrimitiveType |
isPrimitive() |
JRawType |
isRawType()
Returns the raw type if this is a
JRawType , otherwise returns
null . |
JTypeParameter |
isTypeParameter() |
JWildcardType |
isWildcard() |
JType getErasedType()
java.lang.String getJNISignature()
Z
[B
Ljava/lang/String;
JType getLeafType()
java.lang.String getParameterizedQualifiedSourceName()
java.lang.String getQualifiedBinaryName()
java.lang.String getQualifiedSourceName()
java.lang.String getSimpleSourceName()
JAnnotationType isAnnotation()
JAnnotationType
if it is an annotation
or null
if it is not.JArrayType isArray()
JClassType isClass()
JClassType isClassOrInterface()
JEnumType isEnum()
null
if it is
not.JGenericType isGenericType()
JClassType isInterface()
JParameterizedType isParameterized()
JPrimitiveType isPrimitive()
JTypeParameter isTypeParameter()
JWildcardType isWildcard()