org.eclipse.xtext.ui.editor.contentassist.antlr
Class AbstractContentAssistParser

java.lang.Object
  extended by 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

Constructor Summary
AbstractContentAssistParser()
           
 
Method Summary
protected  org.antlr.runtime.TokenSource createLexer(org.antlr.runtime.CharStream stream)
           
protected abstract  AbstractInternalContentAssistParser createParser()
           
 java.util.Collection<FollowElement> getFollowElements(FollowElement element)
           
 java.util.Collection<FollowElement> getFollowElements(java.lang.String input, boolean strict)
           
protected abstract  java.lang.String[] getInitialHiddenTokens()
           
protected abstract  java.lang.String getRuleName(AbstractElement element)
           
 com.google.inject.Provider<IUnorderedGroupHelper> getUnorderedGroupHelper()
           
 void setUnorderedGroupHelper(com.google.inject.Provider<IUnorderedGroupHelper> unorderedGroupHelper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractContentAssistParser

public AbstractContentAssistParser()
Method Detail

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()