Package net.hydromatic.morel.type
Class Keys.NameKey
java.lang.Object
net.hydromatic.morel.type.Type.Key
net.hydromatic.morel.type.Keys.NameKey
- Enclosing class:
Keys
Key that identifies a type by name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe(StringBuilder buf, int left, int right) Writes a description of this key to a string builder.booleaninthashCode()toString()Returns a description of this key.toType(TypeSystem typeSystem) Converts this key to a type, and ensures that it is registered in the type system.Methods inherited from class net.hydromatic.morel.type.Type.Key
copy, substitute
-
Field Details
-
name
-
-
Constructor Details
-
NameKey
NameKey(String name)
-
-
Method Details
-
toString
Description copied from class:Type.KeyReturns a description of this key.The default implementation calls
Type.Key.describe(StringBuilder, int, int), but subclasses may override to provide a more efficient implementation. -
describe
Description copied from class:Type.KeyWrites a description of this key to a string builder. -
hashCode
public int hashCode() -
equals
-
toType
Description copied from class:Type.KeyConverts this key to a type, and ensures that it is registered in the type system.
-