Package org.rumbledb.compiler.context
Record Class SwitchExprContext.Case<CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.SwitchExprContext.Case<CaseExprCtx>
- Enclosing class:
- SwitchExprContext<CondExprCtx extends org.antlr.v4.runtime.ParserRuleContext,
CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext>
public static record SwitchExprContext.Case<CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext>(List<CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext> cond, CaseExprCtx extends org.antlr.v4.runtime.ParserRuleContext ret)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCase(List<CaseExprCtx> cond, CaseExprCtx ret) Creates an instance of aCaserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncond()Returns the value of thecondrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ret()Returns the value of theretrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Case
Creates an instance of aCaserecord class.- Parameters:
cond- the value for thecondrecord componentret- the value for theretrecord component
-
-
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). -
cond
Returns the value of thecondrecord component.- Returns:
- the value of the
condrecord component
-
ret
Returns the value of theretrecord component.- Returns:
- the value of the
retrecord component
-