Record Class Ir.Unary
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Unary
- Enclosing class:
Ir
public static record Ir.Unary(SourceSpan span, Ir.UnaryOp op, Ir.Exp arg)
extends Record
implements Ir.Exp
A prefix operator.
-
Constructor Summary
ConstructorsConstructorDescriptionUnary(SourceSpan span, Ir.UnaryOp op, Ir.Exp arg) Creates an instance of aUnaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.op()Returns the value of theoprecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Unary
Creates an instance of aUnaryrecord class.- Parameters:
span- the value for thespanrecord componentop- the value for theoprecord componentarg- the value for theargrecord component
-
-
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). -
span
Returns the value of thespanrecord component. -
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
arg
-