Interface CBVariantType
- All Superinterfaces:
CBTypeDeclarationType
- All Known Implementing Classes:
CBTypeDeclarationVariant
A variant type, or algebraic sum type.
-
Method Summary
Methods inherited from interface com.io7m.cedarbridge.schema.compiled.CBTypeDeclarationType
arity, documentation, external, idForType, name, owner, parameters, parametersByName
-
Method Details
-
cases
List<CBVariantCaseType> cases()- Returns:
- The cases of the variant type in declaration order
-
casesByName
- Returns:
- The cases of the variant by name
-
id
- Specified by:
idin interfaceCBTypeDeclarationType- Returns:
- The unique ID of the type
-