public abstract class AbstractInternalAntlrParser
extends org.antlr.runtime.Parser
ISyntaxErrorMessageProvider
, objects construction is subject to an IAstFactory
.Modifier and Type | Class and Description |
---|---|
protected class |
AbstractInternalAntlrParser.ErrorContext |
protected class |
AbstractInternalAntlrParser.LexerErrorContext |
protected class |
AbstractInternalAntlrParser.ParserErrorContext |
protected class |
AbstractInternalAntlrParser.UnorderedGroupErrorContext |
protected class |
AbstractInternalAntlrParser.ValueConverterErrorContext |
Modifier | Constructor and Description |
---|---|
protected |
AbstractInternalAntlrParser(org.antlr.runtime.TokenStream input) |
protected |
AbstractInternalAntlrParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule) |
protected void |
add(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule,
INode node) |
protected void |
addWithLastConsumed(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule) |
protected void |
afterParserOrEnumRuleCall() |
protected void |
appendAllTokens() |
protected void |
appendError(INode node) |
protected java.util.List<ILeafNode> |
appendSkippedTokens() |
protected void |
appendTrailingHiddenTokens() |
protected void |
associateNodeWithAstElement(ICompositeNode node,
org.eclipse.emf.ecore.EObject astElement) |
protected ISyntaxErrorMessageProvider.IParserErrorContext |
createErrorContext(org.antlr.runtime.RecognitionException e) |
protected org.eclipse.emf.ecore.EObject |
createModelElement(AbstractRule rule) |
protected org.eclipse.emf.ecore.EObject |
createModelElement(org.eclipse.emf.ecore.EClassifier classifier) |
protected org.eclipse.emf.ecore.EObject |
createModelElement(org.eclipse.emf.ecore.EClassifier classifier,
ICompositeNode compositeNode) |
protected org.eclipse.emf.ecore.EObject |
createModelElementForParent(AbstractRule rule) |
protected org.eclipse.emf.ecore.EObject |
createModelElementForParent(org.eclipse.emf.ecore.EClassifier classifier) |
protected ISyntaxErrorMessageProvider.IValueConverterErrorContext |
createValueConverterErrorContext(ValueConverterException vce) |
void |
displayRecognitionError(java.lang.String[] tokenNames,
org.antlr.runtime.RecognitionException e) |
void |
emitErrorMessage(java.lang.String msg) |
protected void |
enterRule() |
protected org.eclipse.emf.ecore.EObject |
forceCreateModelElement(Action action,
org.eclipse.emf.ecore.EObject value) |
protected org.eclipse.emf.ecore.EObject |
forceCreateModelElementAndAdd(Action action,
org.eclipse.emf.ecore.EObject value) |
protected org.eclipse.emf.ecore.EObject |
forceCreateModelElementAndSet(Action action,
org.eclipse.emf.ecore.EObject value) |
java.lang.String |
getErrorMessage(org.antlr.runtime.RecognitionException e,
java.lang.String[] tokenNames) |
protected abstract java.lang.String |
getFirstRuleName() |
protected abstract IGrammarAccess |
getGrammarAccess() |
org.antlr.runtime.TokenStream |
getInput() |
protected INode |
getLastLeafNode() |
NodeModelBuilder |
getNodeModelBuilder() |
IAstFactory |
getSemanticModelBuilder() |
SyntaxErrorMessage |
getSyntaxErrorMessage(org.antlr.runtime.RecognitionException e,
java.lang.String[] tokenNames) |
ISyntaxErrorMessageProvider |
getSyntaxErrorProvider() |
IUnorderedGroupHelper |
getUnorderedGroupHelper() |
protected java.lang.String |
getValueConverterExceptionMessage(ValueConverterException vce) |
protected void |
handleValueConverterException(ValueConverterException vce) |
protected void |
insertCompositeNode(Action action) |
protected void |
leaveRule() |
protected void |
newCompositeNode(org.eclipse.emf.ecore.EObject grammarElement) |
protected void |
newLeafNode(org.antlr.runtime.Token token,
org.eclipse.emf.ecore.EObject grammarElement) |
IParseResult |
parse() |
IParseResult |
parse(java.lang.String entryRuleName) |
void |
recover(org.antlr.runtime.IntStream input,
org.antlr.runtime.RecognitionException re) |
protected java.lang.Object |
recoverFromMismatchedToken(org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow) |
protected void |
registerRules(Grammar grammar) |
void |
reportError(org.antlr.runtime.RecognitionException e) |
protected void |
set(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule) |
protected void |
set(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule,
INode node) |
void |
setNodeModelBuilder(NodeModelBuilder nodeModelBuilder) |
void |
setSemanticModelBuilder(IAstFactory semanticModelBuilder) |
void |
setSyntaxErrorProvider(ISyntaxErrorMessageProvider syntaxErrorProvider) |
void |
setTokenTypeMap(java.util.Map<java.lang.Integer,java.lang.String> tokenTypeMap) |
void |
setUnorderedGroupHelper(IUnorderedGroupHelper unorderedGroupHelper) |
protected void |
setWithLastConsumed(org.eclipse.emf.ecore.EObject _this,
java.lang.String feature,
java.lang.Object value,
java.lang.String lexerRule) |
protected java.lang.String |
superGetErrorMessage(org.antlr.runtime.RecognitionException e,
java.lang.String[] tokenNames) |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, endResync, failed, getBacktrackingLevel, getErrorHeader, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recoverFromMismatchedSet, setBacktrackingLevel, toStrings, traceIn, traceOut
protected AbstractInternalAntlrParser(org.antlr.runtime.TokenStream input)
protected AbstractInternalAntlrParser(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
protected void registerRules(Grammar grammar)
public org.antlr.runtime.TokenStream getInput()
protected abstract IGrammarAccess getGrammarAccess()
protected void associateNodeWithAstElement(ICompositeNode node, org.eclipse.emf.ecore.EObject astElement)
public void setTokenTypeMap(java.util.Map<java.lang.Integer,java.lang.String> tokenTypeMap)
public void setSyntaxErrorProvider(ISyntaxErrorMessageProvider syntaxErrorProvider)
public ISyntaxErrorMessageProvider getSyntaxErrorProvider()
protected void set(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node)
protected void set(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule)
protected void setWithLastConsumed(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule)
protected void add(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node)
protected void add(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule)
protected void addWithLastConsumed(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule)
protected void appendError(INode node)
protected void appendAllTokens()
protected INode getLastLeafNode()
protected java.util.List<ILeafNode> appendSkippedTokens()
protected void appendTrailingHiddenTokens()
public void recover(org.antlr.runtime.IntStream input, org.antlr.runtime.RecognitionException re)
recover
in class org.antlr.runtime.BaseRecognizer
protected java.lang.String getValueConverterExceptionMessage(ValueConverterException vce)
protected void handleValueConverterException(ValueConverterException vce)
protected ISyntaxErrorMessageProvider.IValueConverterErrorContext createValueConverterErrorContext(ValueConverterException vce)
public java.lang.String getErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
getErrorMessage
in class org.antlr.runtime.BaseRecognizer
public void displayRecognitionError(java.lang.String[] tokenNames, org.antlr.runtime.RecognitionException e)
displayRecognitionError
in class org.antlr.runtime.BaseRecognizer
public void reportError(org.antlr.runtime.RecognitionException e)
reportError
in class org.antlr.runtime.BaseRecognizer
protected java.lang.Object recoverFromMismatchedToken(org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) throws org.antlr.runtime.RecognitionException
recoverFromMismatchedToken
in class org.antlr.runtime.BaseRecognizer
org.antlr.runtime.RecognitionException
public SyntaxErrorMessage getSyntaxErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
protected java.lang.String superGetErrorMessage(org.antlr.runtime.RecognitionException e, java.lang.String[] tokenNames)
protected ISyntaxErrorMessageProvider.IParserErrorContext createErrorContext(org.antlr.runtime.RecognitionException e)
public final IParseResult parse() throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public final IParseResult parse(java.lang.String entryRuleName) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public void emitErrorMessage(java.lang.String msg)
emitErrorMessage
in class org.antlr.runtime.BaseRecognizer
protected abstract java.lang.String getFirstRuleName()
public void setUnorderedGroupHelper(IUnorderedGroupHelper unorderedGroupHelper)
public IUnorderedGroupHelper getUnorderedGroupHelper()
protected void afterParserOrEnumRuleCall()
protected org.eclipse.emf.ecore.EObject createModelElementForParent(AbstractRule rule)
protected org.eclipse.emf.ecore.EObject createModelElement(AbstractRule rule)
protected org.eclipse.emf.ecore.EObject createModelElementForParent(org.eclipse.emf.ecore.EClassifier classifier)
protected org.eclipse.emf.ecore.EObject createModelElement(org.eclipse.emf.ecore.EClassifier classifier)
protected org.eclipse.emf.ecore.EObject createModelElement(org.eclipse.emf.ecore.EClassifier classifier, ICompositeNode compositeNode)
protected org.eclipse.emf.ecore.EObject forceCreateModelElementAndSet(Action action, org.eclipse.emf.ecore.EObject value)
protected org.eclipse.emf.ecore.EObject forceCreateModelElementAndAdd(Action action, org.eclipse.emf.ecore.EObject value)
protected org.eclipse.emf.ecore.EObject forceCreateModelElement(Action action, org.eclipse.emf.ecore.EObject value)
protected void insertCompositeNode(Action action)
protected void enterRule()
protected void leaveRule()
protected void newCompositeNode(org.eclipse.emf.ecore.EObject grammarElement)
protected void newLeafNode(org.antlr.runtime.Token token, org.eclipse.emf.ecore.EObject grammarElement)
public void setNodeModelBuilder(NodeModelBuilder nodeModelBuilder)
public NodeModelBuilder getNodeModelBuilder()
public void setSemanticModelBuilder(IAstFactory semanticModelBuilder)
public IAstFactory getSemanticModelBuilder()