Class ParameterizedListValue
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.datatype.ParameterizedListValue
-
- All Implemented Interfaces:
PrimitiveTypeValue
,Serializable
,Comparable<PrimitiveTypeValue>
,scala.Equals
,scala.Product
public class ParameterizedListValue extends Object implements PrimitiveTypeValue, scala.Product, Serializable
This models a list of elements with a parameterized type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterizedListValue(PrimitiveType parameter, scala.collection.immutable.Seq<PrimitiveTypeValue> list)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParameterizedListValue
apply(ParameterizedListValue other)
Constructs a new parameterized list value using another parameterized list value.static ParameterizedListValue
apply(PrimitiveType parameter)
Constructs a new parameterized list value.int
compareTo(PrimitiveTypeValue obj)
scala.collection.immutable.Seq<PrimitiveTypeValue>
getList()
PrimitiveType
getParameter()
PrimitiveType
getType()
Returns the primitive typeboolean
isEmpty()
Tell whether this value represents an empty value.scala.collection.immutable.Seq<PrimitiveTypeValue>
list()
PrimitiveType
parameter()
String
render()
Returns a string representing this value.scala.collection.immutable.Seq<String>
renderAsList()
Returns a list of strings representing this value.String
Separator()
-
-
-
Constructor Detail
-
ParameterizedListValue
public ParameterizedListValue(PrimitiveType parameter, scala.collection.immutable.Seq<PrimitiveTypeValue> list)
-
-
Method Detail
-
apply
public static ParameterizedListValue apply(PrimitiveType parameter)
Constructs a new parameterized list value.- Parameters:
parameter
- primitive type- Returns:
- (undocumented)
-
apply
public static ParameterizedListValue apply(ParameterizedListValue other)
Constructs a new parameterized list value using another parameterized list value.- Parameters:
other
- parameterized list value- Returns:
- (undocumented)
-
parameter
public PrimitiveType parameter()
-
list
public scala.collection.immutable.Seq<PrimitiveTypeValue> list()
-
Separator
public final String Separator()
-
getType
public PrimitiveType getType()
Description copied from interface:PrimitiveTypeValue
Returns the primitive type- Specified by:
getType
in interfacePrimitiveTypeValue
- Returns:
- the primitive type
-
render
public String render()
Description copied from interface:PrimitiveTypeValue
Returns a string representing this value.- Specified by:
render
in interfacePrimitiveTypeValue
- Returns:
- a string representing this value
-
renderAsList
public scala.collection.immutable.Seq<String> renderAsList()
Description copied from interface:PrimitiveTypeValue
Returns a list of strings representing this value.- Specified by:
renderAsList
in interfacePrimitiveTypeValue
- Returns:
- a list of strings representing this value
-
compareTo
public int compareTo(PrimitiveTypeValue obj)
- Specified by:
compareTo
in interfaceComparable<PrimitiveTypeValue>
-
getList
public scala.collection.immutable.Seq<PrimitiveTypeValue> getList()
-
isEmpty
public boolean isEmpty()
Description copied from interface:PrimitiveTypeValue
Tell whether this value represents an empty value.- Specified by:
isEmpty
in interfacePrimitiveTypeValue
- Returns:
true
if and only if this value represents an empty value
-
getParameter
public PrimitiveType getParameter()
-
-