jsyntaxpane.lexers
Class KReatorJFlexLexer
java.lang.Object
jsyntaxpane.lexers.DefaultJFlexLexer
jsyntaxpane.lexers.KReatorJFlexLexer
- All Implemented Interfaces:
- Lexer
- Direct Known Subclasses:
- EvidenceLexer, VerySimpleLexer
public abstract class KReatorJFlexLexer
- extends DefaultJFlexLexer
Field Summary |
protected static byte |
BRACKET
|
protected static byte |
CURLY
|
protected static byte |
PARAN
|
protected java.util.Stack<java.lang.Integer> |
returnState
|
protected java.util.Queue<java.lang.Integer> |
stateQueue
|
Method Summary |
protected void |
addListToQueue(java.util.List<java.lang.Integer> stateArray)
|
protected void |
addListToQueueFront(java.util.List<java.lang.Integer> stateArray)
|
protected void |
addToQueue(java.lang.Object... states)
|
protected void |
addToQueueFront(java.lang.Object... states)
|
protected int |
getNextState()
|
protected Token |
token(TokenType type,
int tStart,
int tLength,
int newStart,
int newLength)
Helper method to create and return a new Token from of TokenType
tokenStart and tokenLength will be modified to the newStart and
newLength params |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stateQueue
protected java.util.Queue<java.lang.Integer> stateQueue
returnState
protected java.util.Stack<java.lang.Integer> returnState
PARAN
protected static final byte PARAN
- See Also:
- Constant Field Values
BRACKET
protected static final byte BRACKET
- See Also:
- Constant Field Values
CURLY
protected static final byte CURLY
- See Also:
- Constant Field Values
KReatorJFlexLexer
public KReatorJFlexLexer()
token
protected Token token(TokenType type,
int tStart,
int tLength,
int newStart,
int newLength)
- Description copied from class:
DefaultJFlexLexer
- Helper method to create and return a new Token from of TokenType
tokenStart and tokenLength will be modified to the newStart and
newLength params
- Overrides:
token
in class DefaultJFlexLexer
- Returns:
getNextState
protected int getNextState()
addListToQueue
protected void addListToQueue(java.util.List<java.lang.Integer> stateArray)
addToQueue
protected void addToQueue(java.lang.Object... states)
addListToQueueFront
protected void addListToQueueFront(java.util.List<java.lang.Integer> stateArray)
addToQueueFront
protected void addToQueueFront(java.lang.Object... states)