| Modifier and Type | Method and Description |
|---|---|
Type |
MethodDeclaration.getReturnType() |
Type |
TypeParameterDeclaration.Bound.getType() |
Type |
ValueDeclaration.getType() |
| Modifier and Type | Method and Description |
|---|---|
static TypeParameterDeclaration.Bound |
TypeParameterDeclaration.Bound.extendsBound(Type type) |
boolean |
TypeDeclaration.isAssignableBy(Type type) |
static TypeParameterDeclaration.Bound |
TypeParameterDeclaration.Bound.superBound(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Type |
Value.getUsage() |
| Constructor and Description |
|---|
Value(Type type,
String name,
boolean field) |
| Modifier and Type | Method and Description |
|---|---|
Type |
MethodUsage.getParamType(int i)
Return the type of the formal argument at the given position.
|
Type |
TypeParametersMap.getValue(TypeParameterDeclaration typeParameter) |
Type |
MethodUsage.returnType() |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
MethodUsage.getParamTypes() |
Optional<Type> |
TypeParametersMap.getValueBySignature(String signature) |
| Modifier and Type | Method and Description |
|---|---|
MethodUsage |
MethodUsage.replaceParamType(int i,
Type replaced) |
MethodUsage |
MethodUsage.replaceReturnType(Type returnType) |
MethodUsage |
MethodUsage.replaceTypeParameterByName(String name,
Type type)
Deprecated.
|
void |
TypeParametersMap.setValue(TypeParameterDeclaration typeParameter,
Type value) |
| Constructor and Description |
|---|
MethodUsage(MethodDeclaration declaration,
List<Type> paramTypes,
Type returnType) |
| Constructor and Description |
|---|
MethodUsage(MethodDeclaration declaration,
List<Type> paramTypes,
Type returnType) |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType |
class |
NullType
This is a virtual type used to represent null values.
|
class |
PrimitiveType |
class |
ReferenceType |
class |
TypeVariable
From JLS 4.4: A type variable is introduced by the declaration of a type parameter of a generic class,
interface, method, or constructor (§8.1.2, §9.1.2, §8.4.4, §8.8.4).
|
class |
VoidType |
class |
Wildcard
A wildcard can be:
- unbounded (?)
- have a lower bound (? super Number)
- have an upper bound (? extends Number)
It is not possible to have both a lower and an upper bound at the same time.
|
| Modifier and Type | Field and Description |
|---|---|
static Type |
VoidType.INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
protected List<Type> |
ReferenceType.typeParameters |
| Modifier and Type | Method and Description |
|---|---|
static Type |
PrimitiveType.byName(String name) |
Type |
Wildcard.getBoundedType() |
Type |
ArrayType.getComponentType() |
Type |
ReferenceType.replaceParam(int i,
Type replaced)
Deprecated.
|
default Type |
Type.replaceParam(String name,
Type replaced)
Deprecated.
|
Type |
ArrayType.replaceParam(String name,
Type replaced) |
Type |
ReferenceType.replaceParam(String name,
Type replaced) |
Type |
Wildcard.replaceParam(String name,
Type replaced) |
Type |
TypeVariable.replaceParam(String name,
Type replaced) |
default Type |
Type.replaceParam(TypeParameterDeclaration name,
Type replaced) |
Type |
ReferenceType.replaceTypeParams(Type type)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Type> |
ReferenceType.getFieldType(String name)
The type of the field could be different from the one in the corresponding FieldDeclaration because
type variables would be solved.
|
Optional<Type> |
ReferenceType.getGenericParameterByName(String name)
Deprecated.
|
List<javaslang.Tuple2<TypeParameterDeclaration,Type>> |
ReferenceType.getTypeParametersMap()
Deprecated.
|
List<Type> |
ReferenceType.typeParametersValues()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Wildcard |
Wildcard.extendsBound(Type type) |
boolean |
Type.isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
ArrayType.isAssignableBy(Type other) |
boolean |
VoidType.isAssignableBy(Type other) |
abstract boolean |
ReferenceType.isAssignableBy(Type other)
This method checks if ThisType t = new OtherType() would compile.
|
boolean |
NullType.isAssignableBy(Type other) |
boolean |
Wildcard.isAssignableBy(Type other) |
boolean |
PrimitiveType.isAssignableBy(Type other) |
boolean |
TypeVariable.isAssignableBy(Type other) |
Type |
ReferenceType.replaceParam(int i,
Type replaced)
Deprecated.
|
default Type |
Type.replaceParam(String name,
Type replaced)
Deprecated.
|
Type |
ArrayType.replaceParam(String name,
Type replaced) |
Type |
ReferenceType.replaceParam(String name,
Type replaced) |
Type |
Wildcard.replaceParam(String name,
Type replaced) |
Type |
TypeVariable.replaceParam(String name,
Type replaced) |
default Type |
Type.replaceParam(TypeParameterDeclaration name,
Type replaced) |
Type |
ReferenceType.replaceTypeParams(Type type)
Deprecated.
|
static Wildcard |
Wildcard.superBound(Type type) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ReferenceType |
ReferenceType.create(TypeDeclaration typeDeclaration,
List<Type> typeParametersCorrected,
TypeSolver typeSolver) |
| Constructor and Description |
|---|
ArrayType(Type baseType) |
| Constructor and Description |
|---|
ReferenceType(TypeDeclaration typeDeclaration,
List<Type> typeParameters,
TypeSolver typeSolver) |
Copyright © 2016. All rights reserved.