public abstract class BaseTokenizerWithFakeCharacters extends Object
| Constructor and Description |
|---|
BaseTokenizerWithFakeCharacters() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TokenBase |
buildToken(int tokenType,
int start,
int end,
int line,
int column,
String tokenText)
Build a token of the appropriate type (used when we need to truncate a
token to strip out fake characters in removeFakeTokens)
|
protected void |
removeFakeTokens(int lastRealIndex,
List<TokenBase> tokenList)
Remove any dummy tokens that we created using the fake characters we
appended to the end of the stream.
|
protected abstract TokenBase buildToken(int tokenType, int start, int end, int line, int column, String tokenText)
tokenType - type of tokenstart - start of tokenend - end of tokenline - line of tokentokenText - text of tokenprotected void removeFakeTokens(int lastRealIndex,
List<TokenBase> tokenList)
lastRealIndex - index of last real characterstokenList - complete token listCopyright © 2016 The Apache Software Foundation. All rights reserved.