Class InputLexerSource

    • Constructor Detail

      • InputLexerSource

        public InputLexerSource​(@Nonnull
                                InputStream input,
                                Charset charset)
        Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.
      • InputLexerSource

        public InputLexerSource​(@Nonnull
                                Reader input,
                                boolean ppvalid)
      • InputLexerSource

        public InputLexerSource​(@Nonnull
                                Reader input)
    • Method Detail

      • getPath

        public String getPath()
        Description copied from class: Source
        Returns the File currently being lexed. If this Source is not a FileLexerSource, then it will ask the parent Source, and so forth recursively. If no Source on the stack is a FileLexerSource, returns null.
        Overrides:
        getPath in class Source
      • getName

        public String getName()
        Description copied from class: Source
        Returns the human-readable name of the current Source.
        Overrides:
        getName in class Source