java.lang.Object
io.xpipe.core.data.type.DataType
io.xpipe.core.data.type.WildcardType
A wildcard type matches any
DataStructureNode instance.
For simplicity reasons it is not possible to further specify a wildcard instance to only match a certain
subset of DataStructureNode instance that fullfil a certain property.-
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.booleanChecks whether this type is a wildcard.booleanmatches(DataStructureNode node) Checks whether a node conforms to this data type.static WildcardTypeof()Creates a new instance.voidvisit(DataTypeVisitor visitor) Visits this type using aDataTypeVisitorinstance.
-
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. -
isWildcard
public boolean isWildcard()Description copied from class:DataTypeChecks whether this type is a wildcard.- Overrides:
isWildcardin classDataType
-
visit
Description copied from class:DataTypeVisits this type using aDataTypeVisitorinstance.
-