|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsyntaxpane.lexers.KreatorAntlrLexer
public class KreatorAntlrLexer
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
KreatorAntlrLexer(org.antlr.runtime.Lexer lexer)
|
Method Summary | |
---|---|
void |
parse(javax.swing.text.Segment segment,
int ofst,
java.util.List<Token> tokens)
This is the only method a Lexer needs to implement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public KreatorAntlrLexer(org.antlr.runtime.Lexer lexer)
Method Detail |
---|
public void parse(javax.swing.text.Segment segment, int ofst, java.util.List<Token> tokens)
Lexer
parse
in interface Lexer
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |