Record Class CASyntaxRuleBranch
java.lang.Object
java.lang.Record
com.io7m.cardant.parsers.CASyntaxRuleBranch
- Record Components:
name- The namesubRules- The rulesexamples- The examples
- All Implemented Interfaces:
CASyntaxRuleType, Comparable<CASyntaxRuleType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.examples()Returns the value of theexamplesrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.subRules()Returns the value of thesubRulesrecord component.text()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CASyntaxRuleBranch
-
-
Method Details
-
text
- Specified by:
textin interfaceCASyntaxRuleType- Returns:
- The rule text
-
compareTo
- Specified by:
compareToin interfaceComparable<CASyntaxRuleType>
-
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceCASyntaxRuleType- Returns:
- the value of the
namerecord component
-
subRules
-
examples
-