jsyntaxpane.lexers
public class SimpleRegexLexer extends java.lang.Object implements Lexer
compareTo
methodConstructor and Description |
---|
SimpleRegexLexer(java.util.Map props) |
SimpleRegexLexer(java.lang.String propsLocation) |
Modifier and Type | Method and Description |
---|---|
void |
parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
This is the only method a Lexer needs to implement.
|
SimpleRegexLexer |
putPattern(TokenType type,
java.lang.String regex) |
SimpleRegexLexer |
putPatterns(java.util.Map props) |
public SimpleRegexLexer(java.util.Map props)
public SimpleRegexLexer(java.lang.String propsLocation) throws java.io.IOException
java.io.IOException
public void parse(javax.swing.text.Segment segment, int ofst, java.util.List<Token> tokens)
Lexer
public SimpleRegexLexer putPattern(TokenType type, java.lang.String regex)
public SimpleRegexLexer putPatterns(java.util.Map props)