Package org.rumbledb.compiler.context
Record Class TryCatchExprContext<ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.TryCatchExprContext<ExprCtx,EqNameCtx>
public record TryCatchExprContext<ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext> (ExprCtx extends org.antlr.v4.runtime.ParserRuleContext tryExpr, List<TryCatchExprContext.Catch<ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext>> catches, org.antlr.v4.runtime.ParserRuleContext context)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordTryCatchExprContext.Catch<ExprCtx extends org.antlr.v4.runtime.ParserRuleContext,EqNameCtx extends org.antlr.v4.runtime.ParserRuleContext> -
Constructor Summary
ConstructorsConstructorDescriptionTryCatchExprContext(ExprCtx tryExpr, List<TryCatchExprContext.Catch<ExprCtx, EqNameCtx>> catches, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aTryCatchExprContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncatches()Returns the value of thecatchesrecord component.org.antlr.v4.runtime.ParserRuleContextcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.tryExpr()Returns the value of thetryExprrecord component.
-
Constructor Details
-
TryCatchExprContext
public TryCatchExprContext(ExprCtx tryExpr, List<TryCatchExprContext.Catch<ExprCtx, EqNameCtx>> catches, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aTryCatchExprContextrecord class.- Parameters:
tryExpr- the value for thetryExprrecord componentcatches- the value for thecatchesrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
from
public static TryCatchExprContext<JsoniqParser.ExprContext,JsoniqParser.EqNameContext> from(JsoniqParser.TryCatchExprContext c) -
from
public static TryCatchExprContext<XQueryParser.ExprContext,XQueryParser.EqNameContext> from(XQueryParser.TryCatchExprContext c) -
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). -
tryExpr
Returns the value of thetryExprrecord component.- Returns:
- the value of the
tryExprrecord component
-
catches
Returns the value of thecatchesrecord component.- Returns:
- the value of the
catchesrecord component
-
context
public org.antlr.v4.runtime.ParserRuleContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-