Class BoxSingleLineComment

All Implemented Interfaces:
BoxVisitable

public class BoxSingleLineComment extends BoxComment
class for single line comments
  • Constructor Details

    • BoxSingleLineComment

      public BoxSingleLineComment(String commentText, Position position, String sourceText)
      Create a instance of a BoxComment
      Parameters:
      position - position within the source code
      sourceText - source code
  • Method Details

    • 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