Class CBPackage
java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBPackage
- All Implemented Interfaces:
CBPackageType
A package declaration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternal(CBTypeDeclarationExternal external) Add an external type to the package.voidaddImport(CBPackageType imported) Add an import to the package.voidaddProtocol(CBProtocolDeclaration protocol) Add a protocol to the package.voidaddRecord(CBTypeDeclarationRecord record) Add a record to the package.voidaddVariant(CBTypeDeclarationVariant variant) Add a variant to the package.imports()name()types()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.CBPackageType
protocolVersionsForType
-
Constructor Details
-
CBPackage
Construct a package.- Parameters:
inName- The name
-
-
Method Details
-
addImport
Add an import to the package.- Parameters:
imported- The imported package
-
addProtocol
Add a protocol to the package.- Parameters:
protocol- The protocol
-
addRecord
Add a record to the package.- Parameters:
record- The record
-
addVariant
Add a variant to the package.- Parameters:
variant- The variant
-
addExternal
Add an external type to the package.- Parameters:
external- The external type
-
name
- Specified by:
namein interfaceCBPackageType- Returns:
- The full name of the package, such as
com.io7m.cedarbridge
-
imports
- Specified by:
importsin interfaceCBPackageType- Returns:
- The packages imported by this package
-
types
- Specified by:
typesin interfaceCBPackageType- Returns:
- The types declared within this package
-
protocols
- Specified by:
protocolsin interfaceCBPackageType- Returns:
- The protocols declared within this package
-