Package net.hydromatic.morel.type
Interface RecordLikeType
- All Superinterfaces:
Type
- All Known Implementing Classes:
PrimitiveType,ProgressiveRecordType,RecordType,TupleType
A type that has named fields, as a record type does.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionargNames()Returns a list of field names.Returns a map of the field types, keyed by field names.argType(int i) Returns the type of theith field, or throws.argTypes()Returns a list of field types, ordered by field names.default @Nullable TypedValueReturns aTypedValueif this type wraps a single dynamically typed value, otherwise null.Methods inherited from interface net.hydromatic.morel.type.Type
accept, arg, canCallArgOf, copy, isCollection, isFinite, isProgressive, key, moniker, op, specializes, substitute, unifyWith
-
Method Details
-
argNameTypes
Returns a map of the field types, keyed by field names. -
argTypes
Returns a list of field types, ordered by field names. -
argNames
Returns a list of field names. -
argType
Returns the type of theith field, or throws. -
asTypedValue
Returns aTypedValueif this type wraps a single dynamically typed value, otherwise null.
-