Class CBTypeDeclarationExternal
java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBTypeDeclarationExternal
- All Implemented Interfaces:
CBExternalType,CBTypeDeclarationType
An external type declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionCBTypeDeclarationExternal(String inName, String inExternalPackage, String inExternalType) Construct an external type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeParameter(CBTypeParameter parameter) Add a type parameter to the declaration.external()name()owner()voidsetDocumentation(List<String> text) Set the documentation.voidSet the owner of the type declaration.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.CBExternalType
idMethods inherited from interface com.io7m.cedarbridge.schema.compiled.CBTypeDeclarationType
arity, idForType, parametersByName
-
Constructor Details
-
CBTypeDeclarationExternal
Construct an external type.- Parameters:
inName- The nameinExternalPackage- The external package nameinExternalType- The external package type
-
-
Method Details
-
addTypeParameter
Add a type parameter to the declaration.- Parameters:
parameter- A parameter
-
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 of the type declaration.- Parameters:
newOwner- The owner
-
setDocumentation
Set the documentation.- Parameters:
text- The text
-