java.lang.Object
io.xpipe.core.data.type.DataType
io.xpipe.core.data.type.ArrayType
An array type represents an array of
DataStructureNode of a certain shared type.
The shared type should be the most specific data type possible.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(DataStructureNode node) Checks whether a node can be converted to this data type.getName()Returns the readable name of this data type that can be used for error messages.booleanisArray()Checks whether this type is an array.booleanmatches(DataStructureNode node) Checks whether a node conforms to this data type.static ArrayTypeCreates a new array type for a given shared data type.static ArrayTypeofSharedType(List<DataType> types) Creates a new array type using either the shared type oftypesor a wildcard type if the elements do not share a common type.voidvisit(DataTypeVisitor visitor) Visits this type using aDataTypeVisitorinstance.Methods inherited from class io.xpipe.core.data.type.DataType
asArray, asTuple, asValue, asWildcard, isTuple, isValue, isWildcard
-
Constructor Details
-
ArrayType
public ArrayType()
-
-
Method Details
-
of
Creates a new array type for a given shared data type. -
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. -
isArray
public boolean isArray()Description copied from class:DataTypeChecks whether this type is an array. -
visit
Description copied from class:DataTypeVisits this type using aDataTypeVisitorinstance.
-