Record Class IRProtectedEval
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.ir.IRProtectedEval
- All Implemented Interfaces:
IRExpression, IRNode
public record IRProtectedEval(int line, IRExpression body, boolean suppressLogging, RuntimeType type)
extends Record
implements IRExpression
-
Constructor Summary
ConstructorsConstructorDescriptionIRProtectedEval(int line, IRExpression body, boolean suppressLogging, RuntimeType type) Creates an instance of aIRProtectedEvalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.booleanReturns the value of thesuppressLoggingrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
IRProtectedEval
Creates an instance of aIRProtectedEvalrecord class.- Parameters:
line- the value for thelinerecord componentbody- the value for thebodyrecord componentsuppressLogging- the value for thesuppressLoggingrecord 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. -
line
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
suppressLogging
public boolean suppressLogging()Returns the value of thesuppressLoggingrecord component.- Returns:
- the value of the
suppressLoggingrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceIRExpression- Returns:
- the value of the
typerecord component
-