Interface VariableTypes
- All Known Implementing Classes:
DefaultVariableTypes
Interface describing a container for all available
VariableTypes of variables.-
Method Summary
Modifier and TypeMethodDescriptionaddType(VariableType type) addType(VariableType type, int index) Add type at the given index.findVariableType(Object value) intgetTypeIndex(String typeName) intgetTypeIndex(VariableType type) getVariableType(String typeName) removeType(VariableType type)
-
Method Details
-
getVariableType
- Returns:
- the type for the given type name. Returns null if no type was found with the name.
-
findVariableType
- Returns:
- the variable type to be used to store the given value as a variable.
-
addType
-
addType
Add type at the given index. The index is used when finding a type for an object. When different types can store a specific object value, the one with the smallest index will be used. -
getTypeIndex
-
getTypeIndex
-
removeType
-