Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks whether this type reference equals the given type reference.
|
java.util.List<TypeReference> |
getActualTypeArguments() |
java.lang.Iterable<? extends ResolvedMethod> |
getAllResolvedMethods()
Computes all the resolved methods that can be called on this type, either because they were
declared directly by the type or by one of its supertypes.
|
TypeReference |
getArrayComponentType() |
java.lang.Iterable<? extends ResolvedConstructor> |
getDeclaredResolvedConstructors() |
java.lang.Iterable<? extends ResolvedMethod> |
getDeclaredResolvedMethods() |
java.lang.Iterable<? extends TypeReference> |
getDeclaredSuperTypes() |
TypeReference |
getLowerBound() |
java.lang.String |
getName()
returns the text representation using the qualified names of the involved types.
|
TypeReference |
getPrimitiveIfWrapper() |
java.lang.String |
getSimpleName()
Returns a text representation using the simple names of the involved types.
|
Type |
getType() |
TypeReference |
getUpperBound() |
TypeReference |
getWrapperIfPrimitive() |
int |
hashCode()
|
boolean |
isAnyType() |
boolean |
isArray() |
boolean |
isAssignableFrom(TypeReference typeReference)
Determines if the specified
TypeReference parameter can be assigned to this
TypeReference . |
boolean |
isInferred()
Whether the given type reference is an inferred reference.
|
boolean |
isPrimitive() |
boolean |
isVoid() |
boolean |
isWildCard() |
boolean |
isWrapper()
Checks whether this type is one of the wrapper types for the primitive value types.
|
java.lang.String getSimpleName()
java.lang.String getName()
Type getType()
java.util.List<TypeReference> getActualTypeArguments()
boolean isWildCard()
TypeReference getUpperBound()
TypeReference getLowerBound()
boolean isArray()
TypeReference getArrayComponentType()
null
otherwise.boolean isAnyType()
null
.boolean isPrimitive()
TypeReference getWrapperIfPrimitive()
TypeReference
if this type references is a primitive type. Returns this
otherwise.boolean isWrapper()
TypeReference getPrimitiveIfWrapper()
TypeReference
if this type references is a wrapper type. Returns this
otherwise.boolean isVoid()
boolean isAssignableFrom(TypeReference typeReference)
TypeReference
parameter can be assigned to this
TypeReference
. It returns true
if so;
otherwise it returns false
.typeReference
- true
is the specified type reference parameter can be assigned to this type reference.boolean isInferred()
UnsupportedOperationException
on every method other than
#toString()
equals(Object)
hashCode()
java.lang.Iterable<? extends TypeReference> getDeclaredSuperTypes()
java.lang.Iterable<? extends ResolvedMethod> getDeclaredResolvedMethods()
java.lang.Iterable<? extends ResolvedConstructor> getDeclaredResolvedConstructors()
java.lang.Iterable<? extends ResolvedMethod> getAllResolvedMethods()
C
in this hierarchy:
class A { def CharSequence foo() } class B extends A { override String foo() } class C extends B {}B#foo() would be contained, but not A#foo().
boolean equals(java.lang.Object obj)
isInferred()
is true
, the implementation is based on
identity of the underlying AST.equals
in class java.lang.Object
obj
- int hashCode()
hashCode
in class java.lang.Object