Class CBProtocolVersionDeclaration
java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBProtocolVersionDeclaration
- All Implemented Interfaces:
CBProtocolVersionDeclarationType
public final class CBProtocolVersionDeclaration
extends Object
implements CBProtocolVersionDeclarationType
A protocol version declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionCBProtocolVersionDeclaration(CBProtocolDeclarationType inOwner, BigInteger inVersion) Construct a version declaration. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CBProtocolVersionDeclarationType
containsType
-
Constructor Details
-
CBProtocolVersionDeclaration
Construct a version declaration.- Parameters:
inOwner- The ownerinVersion- The version
-
-
Method Details
-
owner
- Specified by:
ownerin interfaceCBProtocolVersionDeclarationType- Returns:
- The declaration that owns this declaration
-
version
- Specified by:
versionin interfaceCBProtocolVersionDeclarationType- Returns:
- The version number
-
typesInOrder
- Specified by:
typesInOrderin interfaceCBProtocolVersionDeclarationType- Returns:
- The types in this version
-
addType
Add a type to the declaration.- Parameters:
type- The type
-