java.lang.Object
io.xpipe.core.data.type.DataType
io.xpipe.core.data.type.TupleType
A tuple type in the context of XPipe is defined as an ordered,
fixed-size sequence of elements that can be optionally assigned a name.
This permissive design allows for a very flexible usage of the tuple type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(DataStructureNode node) Checks whether a node can be converted to this data type.static TupleTypeempty()Creates a new tuple type that contains no entries.getName()Returns the readable name of this data type that can be used for error messages.intgetSize()booleanbooleanisTuple()Checks whether this type is a tuple.booleanmatches(DataStructureNode node) Checks whether a node conforms to this data type.static TupleTypeCreates a new tuple type for a list of types with no names.static TupleTypeCreates a new tuple type for a list of names and types.static TupleTypeCreates a new tuple type that represents a table data type.voidvisit(DataTypeVisitor visitor) Visits this type using aDataTypeVisitorinstance.Methods inherited from class io.xpipe.core.data.type.DataType
asArray, asTuple, asValue, asWildcard, isArray, isValue, isWildcard
-
Constructor Details
-
TupleType
public TupleType()
-
-
Method Details
-
tableType
Creates a new tuple type that represents a table data type. -
empty
Creates a new tuple type that contains no entries. -
of
Creates a new tuple type for a list of names and types. Any entry innamescan be null, while any element intypesmust be not null. -
of
Creates a new tuple type for a list of types with no names. Any element intypesmust be not null. -
hasAllNames
public boolean hasAllNames() -
sub
-
getName
Description copied from class:DataTypeReturns the readable name of this data type that can be used for error messages. -
convert
Description copied from class:DataTypeChecks whether a node can be converted to this data type. -
matches
Description copied from class:DataTypeChecks whether a node conforms to this data type. -
isTuple
public boolean isTuple()Description copied from class:DataTypeChecks whether this type is a tuple. -
visit
Description copied from class:DataTypeVisits this type using aDataTypeVisitorinstance. -
getSize
public int getSize()
-