Class SLLogicalOrNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public final class SLLogicalOrNode extends SLShortCircuitNode
Logical disjunction node with short circuit evaluation.
  • Constructor Details

  • Method Details

    • isEvaluateRight

      protected boolean isEvaluateRight(boolean left)
      Description copied from class: SLShortCircuitNode
      This method is called after the left child was evaluated, but before the right child is evaluated. The right child is only evaluated when the return value is {code true}.
      Specified by:
      isEvaluateRight in class SLShortCircuitNode
    • execute

      protected boolean execute(boolean left, boolean right)
      Description copied from class: SLShortCircuitNode
      Calculates the result of the short circuit operation. If the right node is not evaluated then false is provided.
      Specified by:
      execute in class SLShortCircuitNode