Interface Terminal

All Known Implementing Classes:
Block, BlockStatement, BreakNode, CaseNode, CatchNode, ContinueNode, DebuggerNode, EmptyNode, ExpressionStatement, ForNode, IfNode, JumpStatement, LabelNode, LoopNode, ReturnNode, Statement, SwitchNode, ThrowNode, TryNode, VarNode, WhileNode, WithNode

public interface Terminal
Interface for AST nodes that can have a flag determining if they can terminate function control flow.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this AST node is (or contains) a statement that terminates function control flow.
  • Method Details

    • isTerminal

      boolean isTerminal()
      Returns true if this AST node is (or contains) a statement that terminates function control flow.