Class BoxContinue

All Implemented Interfaces:
BoxVisitable

public class BoxContinue extends BoxStatement
AST Node representing a continue statement
  • Constructor Details

    • BoxContinue

      public BoxContinue(Position position, String sourceText)
      Creates the AST node
      Parameters:
      position - position of the statement in the source code
      sourceText - source code that originated the Node
    • BoxContinue

      public BoxContinue(String label, Position position, String sourceText)
      Creates the AST node
      Parameters:
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details

    • getLabel

      public String getLabel()
      Gets the label of the continue statement
      Returns:
      the label of the continue statement
    • setLabel

      public void setLabel(String label)
      Sets the label of the continue statement
      Parameters:
      label - the label of the continue statement
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for replacing visitor support. Each accept returns the node, or a replacement node.
      Parameters:
      v - the visitor implementation
    • toMap

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode