Package org.rumbledb.compiler.context
Record Class WindowConditionContext<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext>
java.lang.Object
java.lang.Record
org.rumbledb.compiler.context.WindowConditionContext<VarBindingCtx,ExprSingleCtx>
public record WindowConditionContext<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext,ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext> (WindowVarsContext<VarBindingCtx extends org.antlr.v4.runtime.ParserRuleContext> vars, ExprSingleCtx extends org.antlr.v4.runtime.ParserRuleContext exprSingle, boolean only)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWindowConditionContext(WindowVarsContext<VarBindingCtx> vars, ExprSingleCtx exprSingle, boolean only) Creates an instance of aWindowConditionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexprSinglerecord component.final inthashCode()Returns a hash code value for this object.booleanonly()Returns the value of theonlyrecord component.final StringtoString()Returns a string representation of this record class.vars()Returns the value of thevarsrecord component.
-
Constructor Details
-
WindowConditionContext
public WindowConditionContext(WindowVarsContext<VarBindingCtx> vars, ExprSingleCtx exprSingle, boolean only) Creates an instance of aWindowConditionContextrecord class.- Parameters:
vars- the value for thevarsrecord componentexprSingle- the value for theexprSinglerecord componentonly- the value for theonlyrecord component
-
-
Method Details
-
fromStart
public static WindowConditionContext<JsoniqParser.VarBindingContext,JsoniqParser.ExprSingleContext> fromStart(JsoniqParser.WindowStartConditionContext c) -
fromStart
public static WindowConditionContext<XQueryParser.VarBindingContext,XQueryParser.ExprSingleContext> fromStart(XQueryParser.WindowStartConditionContext c) -
fromEnd
-
fromEnd
-
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 '=='. -
vars
Returns the value of thevarsrecord component.- Returns:
- the value of the
varsrecord component
-
exprSingle
Returns the value of theexprSinglerecord component.- Returns:
- the value of the
exprSinglerecord component
-
only
public boolean only()Returns the value of theonlyrecord component.- Returns:
- the value of the
onlyrecord component
-