java.lang.Object
io.xpipe.core.data.type.DataType
io.xpipe.core.data.type.ValueType
A value type represents any node that holds some atomic value, i.e. it has no subtypes.
-
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.booleanisValue()Checks whether this type is a value.booleanmatches(DataStructureNode node) Checks whether a node conforms to this data type.static ValueTypeof()Creates a new instance.voidvisit(DataTypeVisitor visitor) Visits this type using aDataTypeVisitorinstance.Methods inherited from class io.xpipe.core.data.type.DataType
asArray, asTuple, asValue, asWildcard, isArray, isTuple, isWildcard
-
Constructor Details
-
ValueType
public ValueType()
-
-
Method Details
-
of
Creates a new instance. -
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. -
isValue
public boolean isValue()Description copied from class:DataTypeChecks whether this type is a value. -
visit
Description copied from class:DataTypeVisits this type using aDataTypeVisitorinstance.
-