Package net.hollowcube.mql.tree
Record Class MqlBinaryExpr
java.lang.Object
java.lang.Record
net.hollowcube.mql.tree.MqlBinaryExpr
- All Implemented Interfaces:
MqlExpr
public record MqlBinaryExpr(@NotNull MqlBinaryExpr.Op operator, @NotNull MqlExpr lhs, @NotNull MqlExpr rhs)
extends Record
implements MqlExpr
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMqlBinaryExpr(@NotNull MqlBinaryExpr.Op operator, @NotNull MqlExpr lhs, @NotNull MqlExpr rhs) Creates an instance of aMqlBinaryExprrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MqlExprlhs()Returns the value of thelhsrecord component.@NotNull MqlBinaryExpr.Opoperator()Returns the value of theoperatorrecord component.@NotNull MqlExprrhs()Returns the value of therhsrecord component.final StringtoString()Returns a string representation of this record class.<P,R> R visit(@NotNull MqlVisitor<P, R> visitor, P p)
-
Constructor Details
-
MqlBinaryExpr
public MqlBinaryExpr(@NotNull @NotNull MqlBinaryExpr.Op operator, @NotNull @NotNull MqlExpr lhs, @NotNull @NotNull MqlExpr rhs) Creates an instance of aMqlBinaryExprrecord class.- Parameters:
operator- the value for theoperatorrecord componentlhs- the value for thelhsrecord componentrhs- the value for therhsrecord component
-
-
Method Details
-
evaluate
-
visit
-
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). -
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
lhs
Returns the value of thelhsrecord component.- Returns:
- the value of the
lhsrecord component
-
rhs
Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-