Class RecordType
java.lang.Object
software.amazon.smithy.rulesengine.language.evaluation.type.RecordType
- All Implemented Interfaces:
Type
The "record" type, a map of identifiers to other types.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
expectRecordType
(String message) get
(Identifier name) Gets the type for the specified identifier.getShape()
Gets the map of identifiers to their types.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.smithy.rulesengine.language.evaluation.type.Type
expectAnyType, expectArrayType, expectBooleanType, expectEmptyType, expectEndpointType, expectIntegerType, expectOptionalType, expectStringType, expectTupleType, isA, provenTruthy
-
Method Details
-
get
Gets the type for the specified identifier.- Parameters:
name
- the identifier to get the type of.- Returns:
- the type of the specified identifier.
-
getShape
Gets the map of identifiers to their types.- Returns:
- the map of identifiers to their types.
-
expectRecordType
-
equals
-
hashCode
public int hashCode() -
toString
-