Class SwitchStatement.SwitchWhenPart

java.lang.Object
simula.compiler.syntaxClass.statement.SwitchStatement.SwitchWhenPart
Enclosing class:
SwitchStatement

private class SwitchStatement.SwitchWhenPart extends Object
Utility class SwitchWhenPart.
Author:
Øystein Myhre Andersen
  • Field Details

  • Constructor Details

  • Method Details

    • doCoding

      private void doCoding(boolean first)
      Coding Utility: Edit this when-part.
      Parameters:
      first - true if this when-part is the first being edited
    • initLookupSwitchCases

      private int initLookupSwitchCases(int index, CodeBuilder codeBuilder)
      ClassFile coding utility: initLookupSwitchCases.
      Parameters:
      index - starting case index.
      codeBuilder - the codeBuilder to use.
      Returns:
      final case index.
    • buildByteCode

      private void buildByteCode(CodeBuilder codeBuilder)
      ClassFile coding utility: buildByteCode.
      Parameters:
      codeBuilder - the codeBuilder to use.
    • print

      private void print(int indent)
      Utility method print.
      Parameters:
      indent - the indentation
    • edWhen

      private String edWhen()
      Utility: Edit when clause.
      Returns:
      the resulting string
    • printTree

      public void printTree(int indent, Object head)
      Debug utility: printTree.
      Parameters:
      indent - the indentation.
      head - the head of the tree.
    • toString

      public String toString()
      Overrides:
      toString in class Object