| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public List | |
| public Iterable | Returns: the resolved methods declared in this type and its supertypes.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. |
| public TypeReference | Returns: the component type if this tye reference is an array type reference,null otherwise.
|
| public Iterable | |
| public Iterable | |
| public Iterable | Returns: the supertypes (superclass and interfaces) directly implemented/extended by this type
|
| public TypeReference | |
| public String | Returns: the qualified name of this type referencereturns the text representation using the qualified names of the involved types. |
| public TypeReference | Returns: the corresponding primitiveTypeReference if this type references is a wrapper type. Returns this otherwise.
|
| public String | Returns: the simple name of this type referenceReturns a text representation using the simple names of the involved types. |
| public Type | |
| public TypeReference | |
| public TypeReference | Returns: the corresponding wrapperTypeReference if this type references is a primitive type. Returns this otherwise.
|
| public int | |
| public boolean | Returns: whether this is the any type, The any type is the subtype of every reference type and its only instance isnull.
|
| public boolean | |
| public boolean | Returns: returnstrue is the specified type reference parameter can be assigned to this type reference.Determines if the specified |
| public boolean | Returns: whether this type reference is an inferred type reference.Whether the given type reference is an inferred reference. |
| public boolean | Returns: whether this is a primitive type (i.e. one of boolean, char, byte, short, int, long, float, double).
|
| public boolean | |
| public boolean | |
| public boolean | Returns: wither this is one of the wrapper types for the primitive value types.Checks whether this type is one of the wrapper types for the primitive value types. |
| public String |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Checks whether this type reference equals the given type reference.
For type References where
| |
| getActualTypeArguments | back to summary |
|---|---|
public List
| |
| getAllResolvedMethods | back to summary |
|---|---|
| public Iterable 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.
For overloaded methods, the one declared closest to this type is used. E.g. when
called on the class
class A {
def CharSequence foo()
}
class B extends A {
override String foo()
}
class C extends B {}
| |
| getArrayComponentType | back to summary |
|---|---|
public TypeReference getArrayComponentType()
| |
| getDeclaredResolvedConstructors | back to summary |
|---|---|
public Iterable
| |
| getDeclaredResolvedMethods | back to summary |
|---|---|
public Iterable
| |
| getDeclaredSuperTypes | back to summary |
|---|---|
public Iterable
| |
| getLowerBound | back to summary |
|---|---|
public TypeReference getLowerBound()
| |
| getName | back to summary |
|---|---|
| public String getName() returns the text representation using the qualified names of the involved types.
| |
| getPrimitiveIfWrapper | back to summary |
|---|---|
public TypeReference getPrimitiveIfWrapper()
| |
| getSimpleName | back to summary |
|---|---|
| public String getSimpleName() Returns a text representation using the simple names of the involved types. I.e. for 'java.util.List<? extends java.math.BigDecimal>' this method returns 'List<? extends BigDecimal>'
| |
| getType | back to summary |
|---|---|
public Type getType()
| |
| getUpperBound | back to summary |
|---|---|
public TypeReference getUpperBound()
| |
| getWrapperIfPrimitive | back to summary |
|---|---|
public TypeReference getWrapperIfPrimitive()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Value-based for all
| |
| isAnyType | back to summary |
|---|---|
public boolean isAnyType()
| |
| isArray | back to summary |
|---|---|
public boolean isArray()
| |
| isAssignableFrom | back to summary |
|---|---|
| public boolean isAssignableFrom(TypeReference typeReference) Determines if the specified
| |
| isInferred | back to summary |
|---|---|
| public boolean isInferred() Whether the given type reference is an inferred reference.
That is the type is to be computed from some Expression, e.g. a method body or a field initializer.
Inferred type references can only be used as handles, and will through an
| |
| isPrimitive | back to summary |
|---|---|
public boolean isPrimitive()
| |
| isVoid | back to summary |
|---|---|
public boolean isVoid()
| |
| isWildCard | back to summary |
|---|---|
public boolean isWildCard()
| |
| isWrapper | back to summary |
|---|---|
| public boolean isWrapper() Checks whether this type is one of the wrapper types for the primitive value types.
| |
| toString | back to summary |
|---|---|
| public String toString() A string representation for this type reference. If this reference is resolved, it will return the simple name of this reference. Otherwise a technical information about the inferred type reference. | |