Package org.rumbledb.compiler.context
Record Class InlineFunctionExprContext<AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.InlineFunctionExprContext<AnnotationsCtx,VarBindingCtx,SeqTypeCtx,FnBodyCtx>
public record InlineFunctionExprContext<AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext> (AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext annotations, List<InlineFunctionExprContext.InlineFunctionParam<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext>> params, SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext returnType, FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext fnBody, org.antlr.v4.runtime.ParserRuleContext context)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordInlineFunctionExprContext.InlineFunctionParam<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext> -
Constructor Summary
ConstructorsConstructorDescriptionInlineFunctionExprContext(AnnotationsCtx annotations, List<InlineFunctionExprContext.InlineFunctionParam<VarBindingCtx, SeqTypeCtx>> params, SeqTypeCtx returnType, FnBodyCtx fnBody, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aInlineFunctionExprContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.org.antlr.v4.runtime.ParserRuleContextcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.fnBody()Returns the value of thefnBodyrecord component.static InlineFunctionExprContext<JsoniqParser.AnnotationsContext,JsoniqParser.VarBindingContext, JsoniqParser.SequenceTypeContext, JsoniqParser.StatementsAndOptionalExprContext> static InlineFunctionExprContext<XQueryParser.AnnotationsContext,XQueryParser.VarBindingContext, XQueryParser.SequenceTypeContext, XQueryParser.StatementsAndOptionalExprContext> final inthashCode()Returns a hash code value for this object.params()Returns the value of theparamsrecord component.Returns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InlineFunctionExprContext
public InlineFunctionExprContext(AnnotationsCtx annotations, List<InlineFunctionExprContext.InlineFunctionParam<VarBindingCtx, SeqTypeCtx>> params, SeqTypeCtx returnType, FnBodyCtx fnBody, org.antlr.v4.runtime.ParserRuleContext context) Creates an instance of aInlineFunctionExprContextrecord class.- Parameters:
annotations- the value for theannotationsrecord componentparams- the value for theparamsrecord componentreturnType- the value for thereturnTyperecord componentfnBody- the value for thefnBodyrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
from
-
from
-
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). -
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
fnBody
Returns the value of thefnBodyrecord component.- Returns:
- the value of the
fnBodyrecord component
-
context
public org.antlr.v4.runtime.ParserRuleContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-