Package net.hollowcube.mql.tree
Record Class MqlUnaryExpr
java.lang.Object
java.lang.Record
net.hollowcube.mql.tree.MqlUnaryExpr
- All Implemented Interfaces:
MqlExpr
public record MqlUnaryExpr(@NotNull MqlUnaryExpr.Op operator, @NotNull MqlExpr rhs)
extends Record
implements MqlExpr
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMqlUnaryExpr(@NotNull MqlUnaryExpr.Op operator, @NotNull MqlExpr rhs) Creates an instance of aMqlUnaryExprrecord 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 MqlUnaryExpr.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
-
MqlUnaryExpr
Creates an instance of aMqlUnaryExprrecord class.- Parameters:
operator- the value for theoperatorrecord 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
-
rhs
Returns the value of therhsrecord component.- Returns:
- the value of the
rhsrecord component
-