Interface TypeID
- All Known Implementing Classes:
ArrayTypeID,AssocTypeID,BasicTypeID,DefinitionTypeID,FunctionTypeID,GenericMapTypeID,GenericTypeID,InvalidTypeID,IteratorTypeID,JavaFunctionalInterfaceTypeID,OptionalTypeID,RangeTypeID
public interface TypeID
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<C,R, E extends Exception>
Raccept(C context, TypeVisitorWithContext<C, R, E> visitor) <R> Raccept(TypeVisitor<R> visitor) default booleancanCastExplicitFrom(TypeID other) default booleancanCastExplicitTo(TypeID other) default booleancanCastImplicitFrom(TypeID other) default booleancanCastImplicitTo(TypeID other) default ExpressioncastExplicitFrom(CodePosition position, Expression value) default ExpressioncastExplicitTo(CodePosition position, Expression value, TypeID toOther) default ExpressioncastImplicitFrom(CodePosition position, Expression value) default ExpressioncastImplicitTo(CodePosition position, Expression value, TypeID toType) voidextractTypeParameters(List<TypeParameter> typeParameters) default Expressionstatic Map<TypeParameter,TypeID> getMapping(TypeParameter[] parameters, TypeID[] arguments) static Map<TypeParameter,TypeID> getSelfMapping(GlobalTypeRegistry registry, TypeParameter[] parameters) default TypeIDgetSuperType(GlobalTypeRegistry registry) booleandefault Map<TypeParameter,TypeID> inferTypeParameters(LocalMemberCache cache, TypeID targetType) instance(GenericMapper mapper) default booleanisDefinition(HighLevelDefinition definition) default booleanisEnum()default booleandefault booleanbooleandefault booleandefault TypeID
-
Field Details
-
NONE
-
-
Method Details
-
getMapping
-
getSelfMapping
static Map<TypeParameter,TypeID> getSelfMapping(GlobalTypeRegistry registry, TypeParameter[] parameters) -
getSuperType
-
instance
-
getNormalized
TypeID getNormalized() -
hasDefaultValue
boolean hasDefaultValue() -
getDefaultValue
-
inferTypeParameters
-
extractTypeParameters
-
accept
-
accept
- Throws:
E extends Exception
-
isOptional
default boolean isOptional() -
isGeneric
default boolean isGeneric() -
isValueType
boolean isValueType() -
withoutOptional
-
isVariant
default boolean isVariant() -
isEnum
default boolean isEnum() -
isDefinition
-
canCastImplicitTo
-
canCastExplicitTo
-
canCastImplicitFrom
-
canCastExplicitFrom
-