public abstract class AbstractSplittingTokenSource extends Object implements org.antlr.runtime.TokenSource
| Modifier and Type | Field and Description |
|---|---|
static String |
LEXER_RULE_PREFIX
Deprecated.
use
TokenTool.LEXER_RULE_PREFIX if strictly necessary. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSplittingTokenSource() |
| Modifier and Type | Method and Description |
|---|---|
protected org.antlr.runtime.CommonToken |
createToken(org.antlr.runtime.CommonToken prototype,
String text,
Integer charPosInLine,
Integer channel,
Integer start,
Integer stop,
Integer type)
Create a new token from the given prototype.
|
protected abstract void |
doSplitToken(org.antlr.runtime.Token splitMe,
ITokenAcceptor acceptor) |
org.antlr.runtime.TokenSource |
getDelegate() |
String |
getLexerRuleName(String antlrTokenDef) |
protected String |
getRuleName(org.antlr.runtime.Token token) |
String |
getSourceName() |
protected int |
getTokenType(String ruleNameWithRulePrefix) |
void |
initializeTokenDefsFrom(ITokenDefProvider provider) |
org.antlr.runtime.Token |
nextToken() |
void |
setDelegate(org.antlr.runtime.TokenSource delegate) |
protected abstract boolean |
shouldSplitToken(org.antlr.runtime.Token candidate) |
protected void |
splitToken(org.antlr.runtime.Token splitMe,
ITokenAcceptor acceptor) |
@Deprecated public static final String LEXER_RULE_PREFIX
TokenTool.LEXER_RULE_PREFIX if strictly necessary.public void setDelegate(org.antlr.runtime.TokenSource delegate)
public org.antlr.runtime.TokenSource getDelegate()
public org.antlr.runtime.Token nextToken()
nextToken in interface org.antlr.runtime.TokenSourcepublic String getSourceName()
getSourceName in interface org.antlr.runtime.TokenSourceprotected String getRuleName(org.antlr.runtime.Token token)
protected int getTokenType(String ruleNameWithRulePrefix)
@Inject public void initializeTokenDefsFrom(ITokenDefProvider provider)
protected void splitToken(org.antlr.runtime.Token splitMe,
ITokenAcceptor acceptor)
protected abstract boolean shouldSplitToken(org.antlr.runtime.Token candidate)
protected abstract void doSplitToken(org.antlr.runtime.Token splitMe,
ITokenAcceptor acceptor)
protected org.antlr.runtime.CommonToken createToken(org.antlr.runtime.CommonToken prototype,
String text,
Integer charPosInLine,
Integer channel,
Integer start,
Integer stop,
Integer type)
null.Copyright © 2015. All Rights Reserved.