Class BranchIfIR

java.lang.Object
com.googlecode.aviator.code.interpreter.ir.BranchIfIR
All Implemented Interfaces:
IR, JumpIR, Serializable

public class BranchIfIR extends Object implements IR, JumpIR
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • pc

      private int pc
    • label

      private final Label label
    • sourceInfo

      private final SourceInfo sourceInfo
  • Constructor Details

  • Method Details

    • getPc

      public int getPc()
    • setPc

      public void setPc(int pc)
      Specified by:
      setPc in interface JumpIR
    • getLabel

      public Label getLabel()
      Specified by:
      getLabel in interface JumpIR
    • eval

      public void eval(InterpretContext context)
      Specified by:
      eval in interface IR
    • mayBeCost

      public boolean mayBeCost()
      Description copied from interface: IR
      Returns true when the IR execution cost may be expensive
      Specified by:
      mayBeCost in interface IR
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object