Class CBTypeDeclarationRecord
java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBTypeDeclarationRecord
- All Implemented Interfaces:
CBFieldOwnerType, CBRecordType, CBTypeDeclarationType
A record type declaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a field.voidaddTypeParameter(CBTypeParameter parameter) Add a type parameter.external()fields()name()owner()voidsetDocumentation(List<String> text) Set the documentation.voidsetExternalName(String newExternalPackage, String newExternalName) Set the external name.voidSet the owner.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CBFieldOwnerType
fieldsByNameMethods inherited from interface CBRecordType
idMethods inherited from interface CBTypeDeclarationType
arity, idForType, parametersByName
-
Constructor Details
-
CBTypeDeclarationRecord
Construct a type declaration.- Parameters:
inName- The type name
-
-
Method Details
-
addTypeParameter
Add a type parameter.- Parameters:
parameter- The parameter
-
addField
-
setExternalName
-
fields
- Specified by:
fieldsin interfaceCBFieldOwnerType- Returns:
- The fields of the record in declaration order
-
owner
- Specified by:
ownerin interfaceCBTypeDeclarationType- Returns:
- The package that owns this declaration
-
name
- Specified by:
namein interfaceCBTypeDeclarationType- Returns:
- The package-unique declaration name
-
parameters
- Specified by:
parametersin interfaceCBTypeDeclarationType- Returns:
- The type parameters, if any, in declaration order
-
external
- Specified by:
externalin interfaceCBTypeDeclarationType- Returns:
- The external name, if any
-
documentation
- Specified by:
documentationin interfaceCBTypeDeclarationType- Returns:
- Documentation for the type declaration
-
setOwner
-
setDocumentation
-