Class CommentRemover

    • Constructor Summary

      Constructors 
      Constructor Description
      CommentRemover()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ILexerSpecification getLexerSpecification()
      Specifies which channels must be present in the lexer for the preprocessor to function, this is a minimum specification, other channels may be present.
      java.util.List<? extends org.antlr.v4.runtime.Token> process​(java.util.List<? extends org.antlr.v4.runtime.Token> tokens, org.antlr.v4.runtime.Vocabulary vocab, java.lang.String lang)
      Preprocessor to remove comments and trim whitespace from source
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommentRemover

        public CommentRemover()
    • Method Detail

      • process

        public java.util.List<? extends org.antlr.v4.runtime.Token> process​(java.util.List<? extends org.antlr.v4.runtime.Token> tokens,
                                                                            org.antlr.v4.runtime.Vocabulary vocab,
                                                                            java.lang.String lang)
        Preprocessor to remove comments and trim whitespace from source
        Specified by:
        process in interface IGeneralPreProcessor
        Parameters:
        tokens - List of tokens to process
        vocab - Lexer vocabulary
        lang - language of source file being processed
        Returns:
        stream of tokens containing comments