Class GenericCommentState

java.lang.Object
org.pipservices3.expressions.tokenizers.generic.GenericCommentState
All Implemented Interfaces:
ICommentState, ITokenizerState
Direct Known Subclasses:
CppCommentState

public class GenericCommentState extends Object implements ICommentState
A CommentState object returns a comment from a scanner.
  • Field Details

  • Constructor Details

    • GenericCommentState

      public GenericCommentState()
  • Method Details

    • nextToken

      public Token nextToken(IScanner scanner, ITokenizer tokenizer) throws Exception
      Either delegate to a comment-handling state, or return a token with just a slash in it.
      Specified by:
      nextToken in interface ITokenizerState
      Parameters:
      scanner - A textual string to be tokenized.
      tokenizer - A tokenizer class that controls the process.
      Returns:
      The next token from the top of the stream.
      Throws:
      Exception