org.eclipse.xtext.ui.editor.contentassist.antlr
Class AbstractContentAssistParser
java.lang.Object
org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser
- All Implemented Interfaces:
- IContentAssistParser
- Direct Known Subclasses:
- CodetemplatesParser, PureXbaseParser, SingleCodetemplateParser, XbaseParser, XbaseWithAnnotationsParser, XtendParser, XtextParser
public abstract class AbstractContentAssistParser
- extends java.lang.Object
- implements IContentAssistParser
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContentAssistParser
public AbstractContentAssistParser()
createLexer
protected org.antlr.runtime.TokenSource createLexer(org.antlr.runtime.CharStream stream)
getFollowElements
public java.util.Collection<FollowElement> getFollowElements(FollowElement element)
- Specified by:
getFollowElements
in interface IContentAssistParser
getRuleName
protected abstract java.lang.String getRuleName(AbstractElement element)
createParser
protected abstract AbstractInternalContentAssistParser createParser()
getInitialHiddenTokens
protected abstract java.lang.String[] getInitialHiddenTokens()
getFollowElements
public java.util.Collection<FollowElement> getFollowElements(java.lang.String input,
boolean strict)
- Specified by:
getFollowElements
in interface IContentAssistParser
strict
- if true
the parser will not use error recovery on the very last token of the input.
setUnorderedGroupHelper
public void setUnorderedGroupHelper(com.google.inject.Provider<IUnorderedGroupHelper> unorderedGroupHelper)
getUnorderedGroupHelper
public com.google.inject.Provider<IUnorderedGroupHelper> getUnorderedGroupHelper()