public abstract class AbstractInternalContentAssistParser extends org.antlr.runtime.Parser implements ObservableXtextTokenStream.StreamListener, ITokenDefProvider
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractInternalContentAssistParser.DefaultFollowElementFactory |
static interface |
AbstractInternalContentAssistParser.RecoveryListener |
protected class |
AbstractInternalContentAssistParser.StreamAdapter |
Modifier and Type | Field and Description |
---|---|
protected int |
currentMarker |
protected ObservableXtextTokenStream.StreamListener |
delegate |
protected boolean |
failedPredicateAtEOF |
protected int |
firstMarker |
protected org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser.IFollowElementFactory |
followElementFactory |
protected java.util.Set<FollowElement> |
followElements |
protected java.util.List<org.eclipse.emf.ecore.EObject> |
grammarElements |
protected com.google.common.collect.Multimap<java.lang.Integer,AbstractElement> |
indexToHandledElements |
protected boolean |
inMismatchIsUnwantedToken |
protected java.util.List<org.eclipse.emf.ecore.EObject> |
localTrace |
protected int |
lookAheadAddOn |
protected boolean |
marked |
protected boolean |
mismatch |
protected int |
predictionLevel |
protected AbstractInternalContentAssistParser.RecoveryListener |
recoveryListener |
protected boolean |
resyncing |
protected int |
stackSize |
protected boolean |
strict |
protected java.util.List<TerminalRule> |
terminalRules |
protected IUnorderedGroupHelper |
unorderedGroupHelper |
protected int |
wasErrorCount |
Constructor and Description |
---|
AbstractInternalContentAssistParser(org.antlr.runtime.TokenStream input) |
AbstractInternalContentAssistParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state) |
Modifier and Type | Method and Description |
---|---|
void |
after(org.eclipse.emf.ecore.EObject grammarElement) |
void |
announceConsume() |
void |
announceEof(int lookAhead) |
void |
announceMark(int marker) |
void |
announceRewind(int marker) |
void |
before(org.eclipse.emf.ecore.EObject grammarElement) |
void |
beginDFAPrediction() |
void |
beginResync() |
protected AbstractInternalContentAssistParser.StreamAdapter |
createErrorRecoveryStrategy() |
protected FollowElement |
createFollowElement(AbstractElement current,
int lookAhead) |
LookAheadTerminal |
createLookAheadTerminal(org.antlr.runtime.Token token) |
protected AbstractInternalContentAssistParser.StreamAdapter |
createMismatchStrategy() |
protected AbstractInternalContentAssistParser.StreamAdapter |
createNotErrorRecoveryStrategy() |
protected AbstractInternalContentAssistParser.StreamAdapter |
createPredictionStrategy() |
void |
emitErrorMessage(java.lang.String msg) |
void |
endDFAPrediction() |
void |
endResync() |
protected AbstractElement |
getCurrentGrammarElement() |
java.util.Set<FollowElement> |
getFollowElements() |
protected abstract Grammar |
getGrammar() |
java.util.List<org.eclipse.emf.ecore.EObject> |
getGrammarElements() |
org.antlr.runtime.RecognizerSharedState |
getInternalRecognizerSharedState() |
java.util.List<org.eclipse.emf.ecore.EObject> |
getLocalTrace() |
protected int |
getLookaheadThreshold()
When experiencing slow content assist, try to reduce the threshold.
|
AbstractInternalContentAssistParser.RecoveryListener |
getRecoveryListener() |
java.util.Map<java.lang.Integer,java.lang.String> |
getTokenDefMap() |
IUnorderedGroupHelper |
getUnorderedGroupHelper() |
protected java.lang.String |
getValueForTokenName(java.lang.String tokenName) |
protected boolean |
isBacktracking() |
boolean |
isDFAPrediction() |
protected int |
keepStackSize() |
boolean |
mismatchIsMissingToken(org.antlr.runtime.IntStream input,
org.antlr.runtime.BitSet follow) |
boolean |
mismatchIsUnwantedToken(org.antlr.runtime.IntStream input,
int ttype) |
void |
recover(org.antlr.runtime.IntStream stream,
org.antlr.runtime.RecognitionException ex) |
protected java.lang.Object |
recoverFromMismatchedToken(org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow) |
protected void |
restoreStackSize(int stackSize) |
protected void |
selectEofStrategy() |
void |
setRecoveryListener(AbstractInternalContentAssistParser.RecoveryListener recoveryListener) |
void |
setStrict(boolean strict) |
void |
setUnorderedGroupHelper(IUnorderedGroupHelper unorderedGroupHelper) |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOut
alreadyParsedRule, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, pushFollow, recoverFromMismatchedSet, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut
protected final java.util.List<org.eclipse.emf.ecore.EObject> grammarElements
protected final java.util.List<org.eclipse.emf.ecore.EObject> localTrace
protected int stackSize
protected final java.util.Set<FollowElement> followElements
protected ObservableXtextTokenStream.StreamListener delegate
protected java.util.List<TerminalRule> terminalRules
protected boolean mismatch
protected AbstractInternalContentAssistParser.RecoveryListener recoveryListener
protected int lookAheadAddOn
protected boolean marked
protected boolean resyncing
protected boolean strict
protected int wasErrorCount
protected int predictionLevel
protected int currentMarker
protected int firstMarker
protected boolean inMismatchIsUnwantedToken
protected boolean failedPredicateAtEOF
protected com.google.common.collect.Multimap<java.lang.Integer,AbstractElement> indexToHandledElements
protected IUnorderedGroupHelper unorderedGroupHelper
protected org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser.IFollowElementFactory followElementFactory
public AbstractInternalContentAssistParser(org.antlr.runtime.TokenStream input, org.antlr.runtime.RecognizerSharedState state)
public AbstractInternalContentAssistParser(org.antlr.runtime.TokenStream input)
protected int getLookaheadThreshold()
public void before(org.eclipse.emf.ecore.EObject grammarElement)
public void after(org.eclipse.emf.ecore.EObject grammarElement)
public void recover(org.antlr.runtime.IntStream stream, org.antlr.runtime.RecognitionException ex)
recover
in class org.antlr.runtime.BaseRecognizer
public void emitErrorMessage(java.lang.String msg)
emitErrorMessage
in class org.antlr.runtime.BaseRecognizer
public org.antlr.runtime.RecognizerSharedState getInternalRecognizerSharedState()
protected abstract Grammar getGrammar()
protected int keepStackSize()
protected void restoreStackSize(int stackSize)
protected boolean isBacktracking()
protected void selectEofStrategy()
protected AbstractInternalContentAssistParser.StreamAdapter createPredictionStrategy()
protected AbstractInternalContentAssistParser.StreamAdapter createErrorRecoveryStrategy()
protected AbstractInternalContentAssistParser.StreamAdapter createNotErrorRecoveryStrategy()
protected AbstractInternalContentAssistParser.StreamAdapter createMismatchStrategy()
public void beginResync()
beginResync
in class org.antlr.runtime.BaseRecognizer
public void endResync()
endResync
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 boolean mismatchIsMissingToken(org.antlr.runtime.IntStream input, org.antlr.runtime.BitSet follow)
mismatchIsMissingToken
in class org.antlr.runtime.BaseRecognizer
protected AbstractElement getCurrentGrammarElement()
protected FollowElement createFollowElement(AbstractElement current, int lookAhead)
public LookAheadTerminal createLookAheadTerminal(org.antlr.runtime.Token token)
public void announceEof(int lookAhead)
announceEof
in interface ObservableXtextTokenStream.StreamListener
public void announceConsume()
announceConsume
in interface ObservableXtextTokenStream.StreamListener
public boolean mismatchIsUnwantedToken(org.antlr.runtime.IntStream input, int ttype)
mismatchIsUnwantedToken
in class org.antlr.runtime.BaseRecognizer
public void announceRewind(int marker)
announceRewind
in interface ObservableXtextTokenStream.StreamListener
public void announceMark(int marker)
announceMark
in interface ObservableXtextTokenStream.StreamListener
public void beginDFAPrediction()
public boolean isDFAPrediction()
public void endDFAPrediction()
public java.util.Set<FollowElement> getFollowElements()
public java.util.Map<java.lang.Integer,java.lang.String> getTokenDefMap()
getTokenDefMap
in interface ITokenDefProvider
protected java.lang.String getValueForTokenName(java.lang.String tokenName)
public java.util.List<org.eclipse.emf.ecore.EObject> getGrammarElements()
public java.util.List<org.eclipse.emf.ecore.EObject> getLocalTrace()
public AbstractInternalContentAssistParser.RecoveryListener getRecoveryListener()
public void setRecoveryListener(AbstractInternalContentAssistParser.RecoveryListener recoveryListener)
public void setUnorderedGroupHelper(IUnorderedGroupHelper unorderedGroupHelper)
public IUnorderedGroupHelper getUnorderedGroupHelper()
public void setStrict(boolean strict)