Class DefinitionTypeID
java.lang.Object
org.openzen.zenscript.codemodel.type.DefinitionTypeID
- All Implemented Interfaces:
TypeID
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefinitionTypeID(HighLevelDefinition definition) DefinitionTypeID(GlobalTypeRegistry typeRegistry, HighLevelDefinition definition, TypeID[] typeArguments) DefinitionTypeID(GlobalTypeRegistry typeRegistry, HighLevelDefinition definition, TypeID[] typeArguments, DefinitionTypeID outer) -
Method Summary
Modifier and TypeMethodDescription<C,R, E extends Exception>
Raccept(C context, TypeVisitorWithContext<C, R, E> visitor) <R> Raccept(TypeVisitor<R> visitor) booleancanCastImplicitFrom(TypeID other) castImplicitFrom(CodePosition position, Expression value) booleanvoidextractTypeParameters(List<TypeParameter> typeParameters) getInnerType(GenericName name, GlobalTypeRegistry registry) getSuperType(GlobalTypeRegistry registry) booleaninthashCode()booleaninstance(GenericMapper mapper) booleanisDefinition(HighLevelDefinition definition) booleanisEnum()booleanbooleanbooleantoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openzen.zenscript.codemodel.type.TypeID
canCastExplicitFrom, canCastExplicitTo, canCastImplicitTo, castExplicitFrom, castExplicitTo, castImplicitTo, getDefaultValue, inferTypeParameters, isGeneric, withoutOptional
-
Field Details
-
definition
-
typeArguments
-
outer
-
-
Constructor Details
-
DefinitionTypeID
public DefinitionTypeID(GlobalTypeRegistry typeRegistry, HighLevelDefinition definition, TypeID[] typeArguments) -
DefinitionTypeID
public DefinitionTypeID(GlobalTypeRegistry typeRegistry, HighLevelDefinition definition, TypeID[] typeArguments, DefinitionTypeID outer) -
DefinitionTypeID
-
-
Method Details
-
hasTypeParameters
public boolean hasTypeParameters() -
getTypeParameterMapping
-
getNormalized
- Specified by:
getNormalizedin interfaceTypeID
-
instance
-
getSuperType
- Specified by:
getSuperTypein interfaceTypeID
-
accept
-
accept
public <C,R, R acceptE extends Exception> (C context, TypeVisitorWithContext<C, R, throws EE> visitor) -
isOptional
public boolean isOptional()- Specified by:
isOptionalin interfaceTypeID
-
isValueType
public boolean isValueType()- Specified by:
isValueTypein interfaceTypeID
-
isEnum
public boolean isEnum() -
isVariant
public boolean isVariant() -
isDefinition
- Specified by:
isDefinitionin interfaceTypeID
-
hashCode
public int hashCode() -
equals
-
toString
-
hasDefaultValue
public boolean hasDefaultValue()- Specified by:
hasDefaultValuein interfaceTypeID
-
extractTypeParameters
- Specified by:
extractTypeParametersin interfaceTypeID
-
getInnerType
-
canCastImplicitFrom
- Specified by:
canCastImplicitFromin interfaceTypeID
-