Class ParameterizedListType
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.datatype.ParameterizedListType
-
- All Implemented Interfaces:
DataType
,PrimitiveType
,Serializable
,scala.Equals
,scala.Product
public class ParameterizedListType extends Object implements PrimitiveType, scala.Product, Serializable
This models the type of a list of elements with a parameterized type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterizedListType(PrimitiveType parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterizedListValue
castInstance(PrimitiveTypeValue value)
PrimitiveType
getParameter()
String
getTypeName()
Returns the name of this type.boolean
isList()
Tells whether this type is a list.PrimitiveType
parameter()
ParameterizedListValue
parse(String str)
Returns a value based on the given string.String
toString()
String
TypePrefix()
-
-
-
Constructor Detail
-
ParameterizedListType
public ParameterizedListType(PrimitiveType parameter)
-
-
Method Detail
-
parameter
public PrimitiveType parameter()
-
TypePrefix
public final String TypePrefix()
-
isList
public boolean isList()
Description copied from interface:PrimitiveType
Tells whether this type is a list.- Specified by:
isList
in interfacePrimitiveType
- Returns:
true
if and only if this type is a list
-
getParameter
public PrimitiveType getParameter()
-
castInstance
public ParameterizedListValue castInstance(PrimitiveTypeValue value)
-
parse
public ParameterizedListValue parse(String str)
Description copied from interface:PrimitiveType
Returns a value based on the given string.- Specified by:
parse
in interfacePrimitiveType
- Parameters:
str
- string- Returns:
- a value based on the given string
-
getTypeName
public String getTypeName()
Description copied from interface:PrimitiveType
Returns the name of this type.- Specified by:
getTypeName
in interfacePrimitiveType
- Returns:
- the name of this type
-
-