Record Class CBASTPackage
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.schema.ast.CBASTPackage
- Record Components:
userData- The user dataname- The package namelanguage- The package languageimports- The package importstypes- The package typesprotocols- The package protocolsdocumentation- The documentation
public record CBASTPackage(CBASTMutableUserData userData, CBASTPackageName name, CBASTLanguage language, List<CBASTImport> imports, List<CBASTTypeDeclarationType> types, List<CBASTProtocolDeclaration> protocols, List<CBASTDocumentation> documentation)
extends Record
A package.
-
Constructor Summary
ConstructorsConstructorDescriptionCBASTPackage(CBASTMutableUserData userData, CBASTPackageName name, CBASTLanguage language, List<CBASTImport> imports, List<CBASTTypeDeclarationType> types, List<CBASTProtocolDeclaration> protocols, List<CBASTDocumentation> documentation) A package. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imports()Returns the value of theimportsrecord component.language()Returns the value of thelanguagerecord component.name()Returns the value of thenamerecord component.Returns the value of theprotocolsrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.userData()Returns the value of theuserDatarecord component.
-
Constructor Details
-
CBASTPackage
public CBASTPackage(CBASTMutableUserData userData, CBASTPackageName name, CBASTLanguage language, List<CBASTImport> imports, List<CBASTTypeDeclarationType> types, List<CBASTProtocolDeclaration> protocols, List<CBASTDocumentation> documentation) A package.- Parameters:
userData- The user dataname- The package namelanguage- The package languageimports- The package importstypes- The package typesprotocols- The package protocolsdocumentation- The documentation
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
userData
-
name
-
language
-
imports
-
types
-
protocols
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-