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 |
| 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 |
after(org.eclipse.emf.ecore.EObject grammarElement,
int paramConfig) |
void |
announceConsume() |
void |
announceEof(int lookAhead) |
void |
announceMark(int marker) |
void |
announceRewind(int marker) |
void |
before(org.eclipse.emf.ecore.EObject grammarElement) |
void |
before(org.eclipse.emf.ecore.EObject grammarElement,
int paramConfig) |
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 |
createNoOpStrategy() |
protected AbstractInternalContentAssistParser.StreamAdapter |
createNotErrorRecoveryStrategy() |
protected AbstractInternalContentAssistParser.StreamAdapter |
createPredictionStrategy() |
void |
emitErrorMessage(String msg) |
void |
endDFAPrediction() |
void |
endResync() |
protected AbstractElement |
getCurrentGrammarElement() |
Set<FollowElement> |
getFollowElements() |
protected abstract Grammar |
getGrammar() |
List<org.eclipse.emf.ecore.EObject> |
getGrammarElements() |
org.antlr.runtime.RecognizerSharedState |
getInternalRecognizerSharedState() |
List<org.eclipse.emf.ecore.EObject> |
getLocalTrace() |
protected int |
getLookaheadThreshold()
When experiencing slow content assist, try to reduce the threshold.
|
List<Integer> |
getParamStack() |
AbstractInternalContentAssistParser.RecoveryListener |
getRecoveryListener() |
Map<Integer,String> |
getTokenDefMap() |
IUnorderedGroupHelper |
getUnorderedGroupHelper() |
protected String |
getValueForTokenName(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 Object |
recoverFromMismatchedToken(org.antlr.runtime.IntStream input,
int ttype,
org.antlr.runtime.BitSet follow) |
protected void |
restoreStackSize(int stackSize) |
protected void |
selectEofStrategy() |
protected void |
selectEofStrategy(int lookAhead) |
void |
setRecoveryListener(AbstractInternalContentAssistParser.RecoveryListener recoveryListener) |
void |
setStrict(boolean strict) |
void |
setUnorderedGroupHelper(IUnorderedGroupHelper unorderedGroupHelper) |
protected static short[][] |
unpackEncodedStringArray(String[] arr) |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOutalreadyParsedRule, 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, traceOutprotected final List<org.eclipse.emf.ecore.EObject> grammarElements
protected final List<org.eclipse.emf.ecore.EObject> localTrace
protected int stackSize
protected final Set<FollowElement> followElements
protected ObservableXtextTokenStream.StreamListener delegate
protected List<TerminalRule> terminalRules
protected boolean mismatch
protected AbstractInternalContentAssistParser.RecoveryListener recoveryListener
protected int lookAheadAddOn
protected int 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<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 before(org.eclipse.emf.ecore.EObject grammarElement,
int paramConfig)
public void after(org.eclipse.emf.ecore.EObject grammarElement,
int paramConfig)
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.BaseRecognizerpublic void emitErrorMessage(String msg)
emitErrorMessage in class org.antlr.runtime.BaseRecognizerpublic org.antlr.runtime.RecognizerSharedState getInternalRecognizerSharedState()
protected abstract Grammar getGrammar()
protected int keepStackSize()
protected void restoreStackSize(int stackSize)
protected boolean isBacktracking()
protected void selectEofStrategy(int lookAhead)
protected void selectEofStrategy()
throws UnsupportedOperationException
UnsupportedOperationExceptionprotected AbstractInternalContentAssistParser.StreamAdapter createNoOpStrategy()
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.BaseRecognizerpublic void endResync()
endResync in class org.antlr.runtime.BaseRecognizerprotected 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.BaseRecognizerorg.antlr.runtime.RecognitionExceptionpublic boolean mismatchIsMissingToken(org.antlr.runtime.IntStream input,
org.antlr.runtime.BitSet follow)
mismatchIsMissingToken in class org.antlr.runtime.BaseRecognizerprotected 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.StreamListenerpublic void announceConsume()
announceConsume in interface ObservableXtextTokenStream.StreamListenerpublic boolean mismatchIsUnwantedToken(org.antlr.runtime.IntStream input,
int ttype)
mismatchIsUnwantedToken in class org.antlr.runtime.BaseRecognizerpublic void announceRewind(int marker)
announceRewind in interface ObservableXtextTokenStream.StreamListenerpublic void announceMark(int marker)
announceMark in interface ObservableXtextTokenStream.StreamListenerpublic void beginDFAPrediction()
public boolean isDFAPrediction()
public void endDFAPrediction()
public Set<FollowElement> getFollowElements()
public Map<Integer,String> getTokenDefMap()
getTokenDefMap in interface ITokenDefProviderpublic List<org.eclipse.emf.ecore.EObject> getGrammarElements()
public 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)
protected static short[][] unpackEncodedStringArray(String[] arr)
Copyright © 2016. All Rights Reserved.