Record Class Ir.Cast
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.Cast
- Enclosing class:
Ir
-
Constructor Summary
ConstructorsConstructorDescriptionCast(SourceSpan span, boolean up, Ir.Exp base, List<Ir.Name> type) Creates an instance of aCastrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final 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.type()Returns the value of thetyperecord component.booleanup()Returns the value of theuprecord component.
-
Constructor Details
-
Cast
Creates an instance of aCastrecord class.- Parameters:
span- the value for thespanrecord componentup- the value for theuprecord componentbase- the value for thebaserecord componenttype- the value for thetyperecord 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. -
up
Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
base
-
type
-