Class BranchStatement

All Implemented Interfaces:
TypeConstants, TypeIds
Direct Known Subclasses:
BreakStatement, ContinueStatement, YieldStatement

public abstract class BranchStatement extends Statement
  • Field Details

    • label

      public char[] label
    • targetLabel

      public BranchLabel targetLabel
    • subroutines

      public SubRoutineStatement[] subroutines
    • initStateIndex

      public int initStateIndex
  • Constructor Details

    • BranchStatement

      public BranchStatement(char[] label, int sourceStart, int sourceEnd)
      BranchStatement constructor comment.
  • Method Details

    • setSubroutineSwitchExpression

      protected void setSubroutineSwitchExpression(SubRoutineStatement sub)
    • restartExceptionLabels

      protected void restartExceptionLabels(CodeStream codeStream)
    • generateCode

      public void generateCode(BlockScope currentScope, CodeStream codeStream)
      Branch code generation generate the finallyInvocationSequence.
      Specified by:
      generateCode in class Statement
    • resolve

      public void resolve(BlockScope scope)
      Specified by:
      resolve in class Statement