Package com.io7m.cedarbridge.schema.ast
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of theuserDatarecord component.- Returns:
- the value of the
userDatarecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
imports
Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
protocols
Returns the value of theprotocolsrecord component.- Returns:
- the value of the
protocolsrecord component
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-