Package net.hydromatic.morel.type
Class Type.Key
java.lang.Object
net.hydromatic.morel.type.Type.Key
- Direct Known Subclasses:
Keys.ApplyKey,Keys.DataTypeKey,Keys.ForallKey,Keys.NameKey,Keys.OpKey,Keys.OrdinalKey,Keys.ProgressiveRecordKey,Keys.RecordKey
- Enclosing interface:
Type
Structural identifier of a type.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Type.Keycopy(UnaryOperator<Type.Key> transform) Copies this key, applying a transform to constituent keys.(package private) abstract StringBuilderdescribe(StringBuilder buf, int left, int right) Writes a description of this key to a string builder.(package private) Type.Keysubstitute(List<? extends Type> types) If this is a type variableordinal, returns theordinalth type in the list, otherwise this.toString()Returns a description of this key.abstract TypetoType(TypeSystem typeSystem) Converts this key to a type, and ensures that it is registered in the type system.
-
Field Details
-
op
-
-
Constructor Details
-
Key
Creates a key.
-
-
Method Details
-
toString
Returns a description of this key.The default implementation calls
describe(StringBuilder, int, int), but subclasses may override to provide a more efficient implementation. -
describe
Writes a description of this key to a string builder. -
toType
Converts this key to a type, and ensures that it is registered in the type system. -
substitute
If this is a type variableordinal, returns theordinalth type in the list, otherwise this. -
copy
Copies this key, applying a transform to constituent keys.
-