public abstract class DefaultTypeSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,ScriptComplexType> |
complexTypeMap |
protected java.util.ArrayList<ScriptType> |
scriptTypes |
protected java.util.HashMap<java.lang.String,ScriptType> |
typeMap |
Constructor and Description |
---|
DefaultTypeSystem() |
Modifier and Type | Method and Description |
---|---|
ExecutionResult<?> |
cast(ExecutionResult<?> value,
ScriptType toType) |
boolean |
checkExecutionTypeExistence(ScriptType executionType) |
void |
clearTypes() |
ScriptComplexType |
getComplexType(java.lang.String typeName) |
ScriptType |
getScriptType(int typeId) |
ScriptType |
getScriptType(java.lang.String typeName) |
java.lang.Iterable<ScriptType> |
getScriptTypes() |
TypeCast<?,?> |
getTypeCast(ScriptType fromType,
ScriptType toType) |
int |
getTypeCount() |
void |
putTypeCast(ScriptType fromType,
ScriptType toType,
TypeCast<?,?> typeCast) |
void |
putTypeCast(java.lang.String[] fromTypes,
java.lang.String toType,
TypeCast<?,?> typeCast) |
void |
putTypeCast(java.lang.String fromType,
java.lang.String[] toTypes,
TypeCast<?,?> typeCast) |
void |
putTypeCast(java.lang.String fromType,
java.lang.String toType,
TypeCast<?,?> typeCast) |
void |
registerComplexType(ScriptComplexType complexType) |
void |
registerSynonym(java.lang.Class<? extends ExecutionResult<?>> original,
java.lang.String synonym) |
void |
registerSynonym(ScriptType original,
java.lang.String synonym) |
void |
registerSynonym(java.lang.String original,
java.lang.String synonym) |
void |
registerType(java.lang.Class<? extends ExecutionResult<?>> instanceClass) |
void |
registerType(ScriptType executionType) |
protected java.util.ArrayList<ScriptType> scriptTypes
protected java.util.HashMap<java.lang.String,ScriptComplexType> complexTypeMap
protected java.util.HashMap<java.lang.String,ScriptType> typeMap
public ScriptType getScriptType(java.lang.String typeName)
public ScriptType getScriptType(int typeId)
public int getTypeCount()
public java.lang.Iterable<ScriptType> getScriptTypes()
public void clearTypes()
public boolean checkExecutionTypeExistence(ScriptType executionType)
public void registerType(ScriptType executionType)
public void registerType(java.lang.Class<? extends ExecutionResult<?>> instanceClass)
public void registerComplexType(ScriptComplexType complexType)
public ScriptComplexType getComplexType(java.lang.String typeName)
public void registerSynonym(java.lang.String original, java.lang.String synonym)
public void registerSynonym(ScriptType original, java.lang.String synonym)
public void registerSynonym(java.lang.Class<? extends ExecutionResult<?>> original, java.lang.String synonym)
public TypeCast<?,?> getTypeCast(ScriptType fromType, ScriptType toType)
public ExecutionResult<?> cast(ExecutionResult<?> value, ScriptType toType)
public void putTypeCast(ScriptType fromType, ScriptType toType, TypeCast<?,?> typeCast)
public void putTypeCast(java.lang.String fromType, java.lang.String toType, TypeCast<?,?> typeCast)
public void putTypeCast(java.lang.String[] fromTypes, java.lang.String toType, TypeCast<?,?> typeCast)
public void putTypeCast(java.lang.String fromType, java.lang.String[] toTypes, TypeCast<?,?> typeCast)