Record Class CBASTProtocolVersion
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.schema.ast.CBASTProtocolVersion
- Record Components:
userData- The user datalexical- The lexical infoversion- The versiontypesAdded- The types added in this protocol versiontypesRemoved- The types removed in this protocol versiontypesRemovedAll- All types from the previous version should be removed
- All Implemented Interfaces:
CBASTDeclarationType, CBASTElementType, com.io7m.jlexing.core.LexicalType<URI>
public record CBASTProtocolVersion(CBASTMutableUserData userData, com.io7m.jlexing.core.LexicalPosition<URI> lexical, BigInteger version, List<CBASTTypeName> typesAdded, List<CBASTTypeName> typesRemoved, boolean typesRemovedAll)
extends Record
implements CBASTDeclarationType
A protocol version declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionCBASTProtocolVersion(CBASTMutableUserData userData, com.io7m.jlexing.core.LexicalPosition<URI> lexical, BigInteger version, List<CBASTTypeName> typesAdded, List<CBASTTypeName> typesRemoved, boolean typesRemovedAll) A protocol version declaration. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.io7m.jlexing.core.LexicalPosition<URI> lexical()Returns the value of thelexicalrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypesAddedrecord component.Returns the value of thetypesRemovedrecord component.booleanReturns the value of thetypesRemovedAllrecord component.userData()Returns the value of theuserDatarecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
CBASTProtocolVersion
public CBASTProtocolVersion(CBASTMutableUserData userData, com.io7m.jlexing.core.LexicalPosition<URI> lexical, BigInteger version, List<CBASTTypeName> typesAdded, List<CBASTTypeName> typesRemoved, boolean typesRemovedAll) A protocol version declaration.- Parameters:
userData- The user datalexical- The lexical infoversion- The versiontypesAdded- The types added in this protocol versiontypesRemoved- The types removed in this protocol versiontypesRemovedAll- All types from the previous version should be removed
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
userData
Returns the value of theuserDatarecord component.- Specified by:
userDatain interfaceCBASTElementType- Returns:
- the value of the
userDatarecord component
-
lexical
-
version
-
typesAdded
Returns the value of thetypesAddedrecord component.- Returns:
- the value of the
typesAddedrecord component
-
typesRemoved
Returns the value of thetypesRemovedrecord component.- Returns:
- the value of the
typesRemovedrecord component
-
typesRemovedAll
public boolean typesRemovedAll()Returns the value of thetypesRemovedAllrecord component.- Returns:
- the value of the
typesRemovedAllrecord component
-