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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.io7m.cedarbridge.schema.compiled.CBFieldOwnerType
fieldsByNameMethods inherited from interface com.io7m.cedarbridge.schema.compiled.CBRecordType
idMethods inherited from interface com.io7m.cedarbridge.schema.compiled.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
Add a field.- Parameters:
field- The field
-
setExternalName
Set the external name.- Parameters:
newExternalPackage- The external packagenewExternalName- The external name
-
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
Set the owner.- Parameters:
newOwner- The new owner
-
setDocumentation
Set the documentation.- Parameters:
text- The text
-