Class StreamLexer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String javadoc()
      Returns a saved javadoc comment.
      Token next()
      Returns the next token in the input stream, or EOF.
      int position()
      Returns the current position in the input.
      SourceFile source()
      Returns the source file for diagnostics.
      java.lang.String stringValue()
      Returns the string value of the current literal or identifier token.
      • Methods inherited from class java.lang.Object

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

      • javadoc

        public @Nullable java.lang.String javadoc()
        Description copied from interface: Lexer
        Returns a saved javadoc comment.
        Specified by:
        javadoc in interface Lexer
      • stringValue

        public java.lang.String stringValue()
        Description copied from interface: Lexer
        Returns the string value of the current literal or identifier token.
        Specified by:
        stringValue in interface Lexer
      • position

        public int position()
        Description copied from interface: Lexer
        Returns the current position in the input.
        Specified by:
        position in interface Lexer
      • source

        public SourceFile source()
        Description copied from interface: Lexer
        Returns the source file for diagnostics.
        Specified by:
        source in interface Lexer
      • next

        public Token next()
        Description copied from interface: Lexer
        Returns the next token in the input stream, or EOF.
        Specified by:
        next in interface Lexer