Record Class ShortCircuitBlock.Operands

java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.support.ShortCircuitBlock.Operands
Record Components:
targetVariable - the variable the block's result is bound to (the block's own result operand)
left - the LEFT operand evaluation (always runs)
leftPrimitive - LEFT's primitive boolean, the short-circuit decision
right - the RIGHT operand evaluation (runs only when LEFT does not decide)
resultTemp - the temp the result call writes
resultCall - the _and / _or descriptor over the two operands
scopeId - the scope the block belongs to
debugInfo - debug information for the call and the block
Enclosing class:
ShortCircuitBlock

public static record ShortCircuitBlock.Operands(String targetVariable, OperandEvaluation left, String leftPrimitive, OperandEvaluation right, String resultTemp, CallDetails resultCall, String scopeId, DebugInfo debugInfo) extends Record
The parts of one block.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • targetVariable

      public String targetVariable()
      Returns the value of the targetVariable record component.
      Returns:
      the value of the targetVariable record component
    • left

      public OperandEvaluation left()
      Returns the value of the left record component.
      Returns:
      the value of the left record component
    • leftPrimitive

      public String leftPrimitive()
      Returns the value of the leftPrimitive record component.
      Returns:
      the value of the leftPrimitive record component
    • right

      public OperandEvaluation right()
      Returns the value of the right record component.
      Returns:
      the value of the right record component
    • resultTemp

      public String resultTemp()
      Returns the value of the resultTemp record component.
      Returns:
      the value of the resultTemp record component
    • resultCall

      public CallDetails resultCall()
      Returns the value of the resultCall record component.
      Returns:
      the value of the resultCall record component
    • scopeId

      public String scopeId()
      Returns the value of the scopeId record component.
      Returns:
      the value of the scopeId record component
    • debugInfo

      public DebugInfo debugInfo()
      Returns the value of the debugInfo record component.
      Returns:
      the value of the debugInfo record component