Class ParserCSSCharsetDetector

    • Constructor Detail

      • ParserCSSCharsetDetector

        public ParserCSSCharsetDetector​(CharStream stream)
        Constructor with user supplied CharStream.
        Parameters:
        stream - stream to init with
      • ParserCSSCharsetDetector

        public ParserCSSCharsetDetector​(ParserCSSCharsetDetectorTokenManager tm)
        Constructor with generated Token Manager.
        Parameters:
        tm - Token manager to use
    • Method Detail

      • ReInit

        public void ReInit​(CharStream stream)
        Reinitialise.
        Parameters:
        stream - stream to init with
      • getNextToken

        public final Token getNextToken()
        Returns:
        the next Token.
      • getToken

        public final Token getToken​(int index)
        Parameters:
        index - index to be retrieved
        Returns:
        the specific Token.
      • generateParseException

        public ParseException generateParseException()
        Generate ParseException.
        Returns:
        new Exception object. Never null
      • trace_enabled

        public final boolean trace_enabled()
        Returns:
        Always false.
      • enable_tracing

        public final void enable_tracing()
        Enable tracing.
      • disable_tracing

        public final void disable_tracing()
        Disable tracing.