Class AbstractPartialContentAssistParser
- java.lang.Object
-
- org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser<FollowElement,LookAheadTerminal,AbstractInternalContentAssistParser>
-
- org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser
-
- org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractPartialContentAssistParser
-
- All Implemented Interfaces:
IContentAssistParser,IPartialContentAssistParser,IPartialEditingContentAssistParser
public abstract class AbstractPartialContentAssistParser extends AbstractContentAssistParser implements IPartialContentAssistParser
Base class for content assist parsers that can reduce the input preceding the cursor position without any impact on the follow set.- Since:
- 2.9
-
-
Constructor Summary
Constructors Constructor Description AbstractPartialContentAssistParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<FollowElement>getFollowElements(org.eclipse.xtext.parser.IParseResult parseResult, int offset, boolean strict)-
Methods inherited from class org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser
createLexer, createParser, getFollowElements
-
Methods inherited from class org.eclipse.xtext.ide.editor.contentassist.antlr.BaseContentAssistParser
appendTextToParse, createEofListener, createObservableTokenStream, createTokenSource, createUnorderedGroupHelper, getElementsToParse, getElementsToParse, getElementsToParse, getEntryGrammarElement, getEntryRule, getFollowElements, getFollowElements, getFollowElements, getFollowElements, getFollowElements, getFollowElements, getFollowElements, getFollowElements, getInitialHiddenTokens, getInitializedUnorderedGroupHelper, getReplacement, getRequiredRuleNameComputer, getRequiredRuleNames, getRuleName, getRuleNames, getTextToParse, getUnorderedGroupHelper, ignoreFirstEntrance, initializeFor, setRequiredRuleNameComputer, setTokensFromFollowElement, setUnorderedGroupHelper, unwrapSingleElementGroups
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser
getFollowElements, getFollowElements
-
Methods inherited from interface org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser
initializeFor
-
-
-
-
Method Detail
-
getFollowElements
public java.util.Collection<FollowElement> getFollowElements(org.eclipse.xtext.parser.IParseResult parseResult, int offset, boolean strict)
- Specified by:
getFollowElementsin interfaceIPartialContentAssistParserstrict- iftruethe parser will not use error recovery on the very last token of the input.
-
-