Package org.rumbledb.compiler.context
Record Class FunctionDeclContext<AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext,FunctionNameCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,ReturnTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.FunctionDeclContext<AnnotationsCtx,FunctionNameCtx,VarBindingCtx,SeqTypeCtx,ReturnTypeCtx,FnBodyCtx>
public record FunctionDeclContext<AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext,FunctionNameCtx extends org.antlr.v4.runtime.ParserRuleContext,VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,ReturnTypeCtx extends org.antlr.v4.runtime.ParserRuleContext,FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext> (org.antlr.v4.runtime.ParserRuleContext context, AnnotationsCtx extends org.antlr.v4.runtime.ParserRuleContext annotations, FunctionNameCtx extends org.antlr.v4.runtime.ParserRuleContext functionName, List<FunctionDeclContext.FunctionParam<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext>> params, ReturnTypeCtx extends org.antlr.v4.runtime.ParserRuleContext returnType, FnBodyCtx extends org.antlr.v4.runtime.ParserRuleContext fnBody, boolean isExternal)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordFunctionDeclContext.FunctionParam<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,SeqTypeCtx extends org.antlr.v4.runtime.ParserRuleContext> -
Constructor Summary
ConstructorsConstructorDescriptionFunctionDeclContext(org.antlr.v4.runtime.ParserRuleContext context, AnnotationsCtx annotations, FunctionNameCtx functionName, List<FunctionDeclContext.FunctionParam<VarBindingCtx, SeqTypeCtx>> params, ReturnTypeCtx returnType, FnBodyCtx fnBody, boolean isExternal) Creates an instance of aFunctionDeclContextrecord 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 FunctionDeclContext<JsoniqParser.AnnotationsContext,JsoniqParser.FunctionNameContext, JsoniqParser.VarBindingContext, JsoniqParser.SequenceTypeContext, JsoniqParser.SequenceTypeContext, JsoniqParser.StatementsAndOptionalExprContext> static FunctionDeclContext<XQueryParser.AnnotationsContext,XQueryParser.FunctionNameContext, XQueryParser.VarBindingContext, XQueryParser.SequenceTypeContext, XQueryParser.SequenceTypeContext, XQueryParser.StatementsAndOptionalExprContext> Returns the value of thefunctionNamerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisExternalrecord component.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
-
FunctionDeclContext
public FunctionDeclContext(org.antlr.v4.runtime.ParserRuleContext context, AnnotationsCtx annotations, FunctionNameCtx functionName, List<FunctionDeclContext.FunctionParam<VarBindingCtx, SeqTypeCtx>> params, ReturnTypeCtx returnType, FnBodyCtx fnBody, boolean isExternal) Creates an instance of aFunctionDeclContextrecord class.- Parameters:
context- the value for thecontextrecord componentannotations- the value for theannotationsrecord componentfunctionName- the value for thefunctionNamerecord componentparams- the value for theparamsrecord componentreturnType- the value for thereturnTyperecord componentfnBody- the value for thefnBodyrecord componentisExternal- the value for theisExternalrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
context
public org.antlr.v4.runtime.ParserRuleContext context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
functionName
Returns the value of thefunctionNamerecord component.- Returns:
- the value of the
functionNamerecord 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
-
isExternal
public boolean isExternal()Returns the value of theisExternalrecord component.- Returns:
- the value of the
isExternalrecord component
-