Record Class Ir.Objective
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Objective
- Record Components:
span- the objectivemaximize- whether it maximizesexp- what it optimizes
- All Implemented Interfaces:
Ir.Node
- Enclosing class:
Ir
public static record Ir.Objective(SourceSpan span, boolean maximize, Ir.Exp exp)
extends Record
implements Ir.Node
An objective,
<< max exp >> or << min exp >>.-
Constructor Summary
ConstructorsConstructorDescriptionObjective(SourceSpan span, boolean maximize, Ir.Exp exp) Creates an instance of aObjectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exp()Returns the value of theexprecord component.final inthashCode()Returns a hash code value for this object.booleanmaximize()Returns the value of themaximizerecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Objective
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
span
-
maximize
-
exp
-