public interface TypeManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCoerce(Type actualType,
Type expectedType) |
Optional<Type> |
coerceTypeBase(Type sourceType,
String resultTypeBase) |
Optional<Type> |
getCommonSuperType(Type firstType,
Type secondType) |
Type |
getParameterizedType(String baseTypeName,
List<TypeSignatureParameter> typeParameters)
Gets the type with the specified base type, and the given parameters, or null if not found.
|
Collection<ParametricType> |
getParametricTypes()
Gets all registered parametric types.
|
Type |
getType(TypeSignature signature)
Gets the type with the specified signature, or null if not found.
|
List<Type> |
getTypes()
Gets a list of all registered types.
|
boolean |
isTypeOnlyCoercion(Type actualType,
Type expectedType) |
MethodHandle |
resolveOperator(OperatorType operatorType,
List<? extends Type> argumentTypes) |
Type getType(TypeSignature signature)
Type getParameterizedType(String baseTypeName, List<TypeSignatureParameter> typeParameters)
Collection<ParametricType> getParametricTypes()
MethodHandle resolveOperator(OperatorType operatorType, List<? extends Type> argumentTypes)
Copyright © 2012–2020. All rights reserved.