Class SLLogicalAndNode

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

public final class SLLogicalAndNode extends SLShortCircuitNode
Logical conjunction node with short circuit evaluation.
  • Constructor Details

  • Method Details

    • isEvaluateRight

      protected boolean isEvaluateRight(boolean left)
      The right value does not need to be evaluated if the left value is already false .
      Specified by:
      isEvaluateRight in class SLShortCircuitNode
    • execute

      protected boolean execute(boolean left, boolean right)
      Only if left and right value are true the result of the logical and is true. If the second parameter is not evaluated, false is provided.
      Specified by:
      execute in class SLShortCircuitNode