java.lang.Object
dev.qilletni.api.lang.types.typeclass.QilletniTypeClass<EntityType>
dev.qilletni.api.lang.types.typeclass.EntityPlaceholderTypeClass
A placeholder
QilletniTypeClass for entities that need a type class but are not initialized yet. This is used
primarily as the subtype for lists of entities if an entity has not been put in yet.-
Field Summary
Fields inherited from class dev.qilletni.api.lang.types.typeclass.QilletniTypeClass
ALBUM, ANY, BOOLEAN, COLLECTION, DOUBLE, FUNCTION, IMPORT_ALIAS, INT, JAVA, LIST, SONG, STRING, WEIGHTS -
Constructor Summary
ConstructorsConstructorDescriptionEntityPlaceholderTypeClass(String typeName) Creates a new placeholder type class with the given entity name. -
Method Summary
Modifier and TypeMethodDescriptionUnsupported operation.Class<?> ReturnsClass<EntityType>.Unsupported operation.Returns the given type name of this entity placeholder.booleanReturnsfalse, as this is always not a native type.Methods inherited from class dev.qilletni.api.lang.types.typeclass.QilletniTypeClass
createEntityTypePlaceholder, createListOfType, equals, hashCode, isAssignableFrom, toString, types
-
Constructor Details
-
EntityPlaceholderTypeClass
Creates a new placeholder type class with the given entity name. This should represent an entity that already exists.- Parameters:
typeName- The name of the entity
-
-
Method Details
-
isNativeType
public boolean isNativeType()Returnsfalse, as this is always not a native type.- Overrides:
isNativeTypein classQilletniTypeClass<EntityType>- Returns:
false
-
getInternalType
ReturnsClass<EntityType>.- Overrides:
getInternalTypein classQilletniTypeClass<EntityType>- Returns:
Class<EntityType>
-
getEntityDefinition
Unsupported operation.- Overrides:
getEntityDefinitionin classQilletniTypeClass<EntityType>- Returns:
- Nothing
- Throws:
UnsupportedOperationException- Always
-
getTypeName
Returns the given type name of this entity placeholder.- Overrides:
getTypeNamein classQilletniTypeClass<EntityType>- Returns:
- The given type name
-
getSubType
Unsupported operation.- Overrides:
getSubTypein classQilletniTypeClass<EntityType>- Returns:
- Nothing
- Throws:
UnsupportedOperationException- Always
-