Record Class Value.Operation
java.lang.Object
java.lang.Record
org.geysermc.conduit.Value.Operation
- Record Components:
operator- the operatoroperands- the operands, in source order
- All Implemented Interfaces:
Value
- Enclosing interface:
Value
public static record Value.Operation(Value.Operator operator, List<Value> operands)
extends Record
implements Value
An operation over values that are not all constant. Comparisons and logical operators
produce a boolean.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Array, Value.Conditional, Value.Constructed, Value.Field, Value.InstanceCall, Value.InstanceField, Value.InstanceOf, Value.Lambda, Value.Literal, Value.Multiple, Value.Operation, Value.Operator, Value.Parameter, Value.StaticCall, Value.This, Value.Uninitialized, Value.Unknown -
Constructor Summary
ConstructorsConstructorDescriptionOperation(Value.Operator operator, List<Value> operands) Creates an instance of aOperationrecord 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.operands()Returns the value of theoperandsrecord component.operator()Returns the value of theoperatorrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
-
hashCode
-
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
-
operands
-