public abstract class AbstractAntlrParser extends AbstractParser
IParser.NullImpl
Constructor and Description |
---|
AbstractAntlrParser() |
Modifier and Type | Method and Description |
---|---|
protected org.antlr.runtime.TokenSource |
createLexer(org.antlr.runtime.CharStream stream) |
protected NodeModelBuilder |
createNodeModelBuilder() |
protected abstract AbstractInternalAntlrParser |
createParser(XtextTokenStream stream) |
protected XtextTokenStream |
createTokenStream(org.antlr.runtime.TokenSource tokenSource) |
IParseResult |
doParse(java.lang.CharSequence sequence) |
IParseResult |
doParse(java.io.Reader reader) |
protected IParseResult |
doParse(java.lang.String ruleName,
org.antlr.runtime.CharStream in,
NodeModelBuilder nodeModelBuilder,
int initialLookAhead) |
protected IParseResult |
doReparse(IParseResult previousParseResult,
ReplaceRegion replaceRegion) |
protected abstract java.lang.String |
getDefaultRuleName() |
IAstFactory |
getElementFactory() |
com.google.inject.Provider<Lexer> |
getLexerProvider() |
IPartialParsingHelper |
getPartialParser() |
ISyntaxErrorMessageProvider |
getSyntaxErrorProvider() |
ITokenDefProvider |
getTokenDefProvider() |
com.google.inject.Provider<IUnorderedGroupHelper> |
getUnorderedGroupHelper() |
protected boolean |
isReparseSupported() |
IParseResult |
parse(ParserRule rule,
java.io.Reader reader) |
IParseResult |
parse(RuleCall ruleCall,
java.io.Reader reader,
int initialLookAhead) |
protected IParseResult |
parse(java.lang.String ruleName,
org.antlr.runtime.CharStream in) |
void |
setElementFactory(IAstFactory elementFactory) |
protected void |
setInitialHiddenTokens(XtextTokenStream tokenStream) |
void |
setLexerProvider(com.google.inject.Provider<Lexer> lexerProvider) |
void |
setPartialParser(IPartialParsingHelper partialParser) |
void |
setSyntaxErrorProvider(ISyntaxErrorMessageProvider syntaxErrorProvider) |
void |
setTokenDefProvider(ITokenDefProvider tokenDefProvider) |
void |
setUnorderedGroupHelper(com.google.inject.Provider<IUnorderedGroupHelper> unorderedGroupHelper) |
parse, reparse
public IParseResult doParse(java.io.Reader reader)
doParse
in class AbstractParser
public IParseResult doParse(java.lang.CharSequence sequence)
doParse
in class AbstractParser
public IAstFactory getElementFactory()
public void setElementFactory(IAstFactory elementFactory)
protected abstract java.lang.String getDefaultRuleName()
protected IParseResult parse(java.lang.String ruleName, org.antlr.runtime.CharStream in)
protected IParseResult doParse(java.lang.String ruleName, org.antlr.runtime.CharStream in, NodeModelBuilder nodeModelBuilder, int initialLookAhead)
protected void setInitialHiddenTokens(XtextTokenStream tokenStream)
protected abstract AbstractInternalAntlrParser createParser(XtextTokenStream stream)
public IParseResult parse(ParserRule rule, java.io.Reader reader)
public IParseResult parse(RuleCall ruleCall, java.io.Reader reader, int initialLookAhead)
protected IParseResult doReparse(IParseResult previousParseResult, ReplaceRegion replaceRegion)
doReparse
in class AbstractParser
protected boolean isReparseSupported()
isReparseSupported
in class AbstractParser
public void setPartialParser(IPartialParsingHelper partialParser)
public IPartialParsingHelper getPartialParser()
protected org.antlr.runtime.TokenSource createLexer(org.antlr.runtime.CharStream stream)
protected XtextTokenStream createTokenStream(org.antlr.runtime.TokenSource tokenSource)
public com.google.inject.Provider<Lexer> getLexerProvider()
public void setLexerProvider(com.google.inject.Provider<Lexer> lexerProvider)
public void setTokenDefProvider(ITokenDefProvider tokenDefProvider)
public ITokenDefProvider getTokenDefProvider()
public ISyntaxErrorMessageProvider getSyntaxErrorProvider()
public void setSyntaxErrorProvider(ISyntaxErrorMessageProvider syntaxErrorProvider)
public void setUnorderedGroupHelper(com.google.inject.Provider<IUnorderedGroupHelper> unorderedGroupHelper)
public com.google.inject.Provider<IUnorderedGroupHelper> getUnorderedGroupHelper()
protected NodeModelBuilder createNodeModelBuilder()