Class IRSwitchStatement

java.lang.Object
gw.lang.ir.IRElement
gw.lang.ir.IRStatement
gw.lang.ir.statement.IRSwitchStatement

public class IRSwitchStatement extends IRStatement
  • Field Details

  • Constructor Details

  • Method Details

    • getInit

      public IRStatement getInit()
    • areLabelsConstant

      public boolean areLabelsConstant()
    • getCases

      public List<IRCaseClause> getCases()
    • getDefaultStatements

      public List<IRStatement> getDefaultStatements()
    • getLeastSignificantTerminalStatement

      public IRTerminalStatement getLeastSignificantTerminalStatement()
      The switch statement has a non-null terminal stmt iff: 1) There are no case stmts or all the the case stmts have non-break terminator and 2) The default stmt exists and has a non-break terminator
      Specified by:
      getLeastSignificantTerminalStatement in class IRStatement