Record Class Ir.IntLit
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.IntLit
- Enclosing class:
Ir
An integer,
-3 with its sign.-
Constructor Summary
ConstructorsConstructorDescriptionIntLit(SourceSpan span, long value) Creates an instance of aIntLitrecord 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.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
IntLit
Creates an instance of aIntLitrecord class.- Parameters:
span- the value for thespanrecord componentvalue- the value for thevaluerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
span
Returns the value of thespanrecord component. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-