public interface Type
| Modifier and Type | Method and Description |
|---|---|
default int |
arrayLevel() |
default ArrayType |
asArrayType() |
default PrimitiveType |
asPrimitive() |
default ReferenceType |
asReferenceType() |
default TypeParameterDeclaration |
asTypeParameter() |
default Wildcard |
asWildcard() |
String |
describe() |
default boolean |
isArray()
Does this type represent an array?
|
boolean |
isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
default boolean |
isNull()
Is this the null type?
|
default boolean |
isPrimitive()
Is this a primitive type?
|
default boolean |
isReference()
Is this a non primitive value?
|
default boolean |
isReferenceType()
Can this be seen as a ReferenceTypeUsage?
In other words: is this a reference to a class, an interface or an enum?
|
default boolean |
isTypeVariable() |
default boolean |
isVoid() |
default boolean |
isWildcard() |
default Type |
replaceParam(String name,
Type replaced)
Deprecated.
|
default Type |
replaceParam(TypeParameterDeclaration name,
Type replaced) |
default boolean isArray()
default int arrayLevel()
default boolean isPrimitive()
default boolean isNull()
default boolean isReference()
default boolean isReferenceType()
default boolean isVoid()
default boolean isTypeVariable()
default boolean isWildcard()
default ArrayType asArrayType()
default ReferenceType asReferenceType()
default TypeParameterDeclaration asTypeParameter()
default PrimitiveType asPrimitive()
default Wildcard asWildcard()
String describe()
@Deprecated default Type replaceParam(String name, Type replaced)
default Type replaceParam(TypeParameterDeclaration name, Type replaced)
boolean isAssignableBy(Type other)
Copyright © 2016. All rights reserved.