Package org.rumbledb.compiler.context
Record Class FlworExprContext<ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.FlworExprContext<ExprSingleCtx>
public record FlworExprContext<ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext>(org.antlr.v4.runtime.tree.ParseTree startClause, List<org.antlr.v4.runtime.tree.ParseTree> intermediateClauses, ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext returnExpr, org.antlr.v4.runtime.ParserRuleContext context)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFlworExprContext(org.antlr.v4.runtime.tree.ParseTree startClause, List<org.antlr.v4.runtime.tree.ParseTree> intermediateClauses, ExprSingleCtx returnExpr, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aFlworExprContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.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.List<org.antlr.v4.runtime.tree.ParseTree>Returns the value of theintermediateClausesrecord component.Returns the value of thereturnExprrecord component.org.antlr.v4.runtime.tree.ParseTreeReturns the value of thestartClauserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlworExprContext
public FlworExprContext(org.antlr.v4.runtime.tree.ParseTree startClause, List<org.antlr.v4.runtime.tree.ParseTree> intermediateClauses, ExprSingleCtx returnExpr, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aFlworExprContextrecord class.- Parameters:
startClause- the value for thestartClauserecord componentintermediateClauses- the value for theintermediateClausesrecord componentreturnExpr- the value for thereturnExprrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
from
public static FlworExprContext<JsoniqParser.ExprSingleContext> from(JsoniqParser.FlworExprContext c) -
from
public static FlworExprContext<XQueryParser.ExprSingleContext> from(XQueryParser.FlworExprContext 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). -
startClause
public org.antlr.v4.runtime.tree.ParseTree startClause()Returns the value of thestartClauserecord component.- Returns:
- the value of the
startClauserecord component
-
intermediateClauses
Returns the value of theintermediateClausesrecord component.- Returns:
- the value of the
intermediateClausesrecord component
-
returnExpr
Returns the value of thereturnExprrecord component.- Returns:
- the value of the
returnExprrecord component
-
context
public org.antlr.v4.runtime.ParserRuleContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-