Package jsyntaxpane.lexers
Class EmptyLexer
java.lang.Object
jsyntaxpane.lexers.EmptyLexer
- All Implemented Interfaces:
Lexer
A lexer that does nothing. Used for plain document editing.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EmptyLexer
public EmptyLexer()
-
-
Method Details
-
parse
Description copied from interface:Lexer
This is the only method a Lexer needs to implement. It will be passed a Reader, and it should return non-overlapping Tokens for each recognized token in the stream.- Specified by:
parse
in interfaceLexer
- Parameters:
segment
- Text to parse.ofst
- offset to add to start of each token (useful for nesting)tokens
- List of Tokens to be added. This is done so that the caller creates the appropriate List implementation and size. The parse method just adds to the list
-