org.eclipse.xtext.generator.parser.antlr.ex
Class ExternalAntlrLexerFragment
java.lang.Object
org.eclipse.xtext.generator.DefaultGeneratorFragment
org.eclipse.xtext.generator.parser.antlr.ex.ExternalAntlrLexerFragment
- All Implemented Interfaces:
- IGeneratorFragment
public class ExternalAntlrLexerFragment
- extends DefaultGeneratorFragment
- 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 |
ExternalAntlrLexerFragment
public ExternalAntlrLexerFragment()
addAntlrParam
public void addAntlrParam(java.lang.String param)
getAntlrParams
public java.lang.String[] getAntlrParams()
setAntlrTool
public void setAntlrTool(AntlrToolFacade facade)
getAntlrTool
public AntlrToolFacade getAntlrTool()
generate
public void generate(Grammar grammar,
org.eclipse.xpand2.XpandExecutionContext ctx)
- Description copied from interface:
IGeneratorFragment
- can be used to generate whatever necessary
- Specified by:
generate
in interface IGeneratorFragment
- Overrides:
generate
in class DefaultGeneratorFragment
ctx
- - the execution context to use
suppressWarningsImpl
protected void suppressWarningsImpl(java.lang.String javaFile)
checkConfiguration
public void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
- Description copied from interface:
IGeneratorFragment
- Called by the container after configuration so the component can validate
the configuration before invocation.
- Specified by:
checkConfiguration
in interface IGeneratorFragment
- Overrides:
checkConfiguration
in class DefaultGeneratorFragment
- Parameters:
issues
- implementors should report configuration issues to this.
getGuiceBindingsRt
public java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
- Description copied from interface:
IGeneratorFragment
- return a map containing the contributed guice bindings created in this generator fragment
- Specified by:
getGuiceBindingsRt
in interface IGeneratorFragment
- Overrides:
getGuiceBindingsRt
in class DefaultGeneratorFragment
getGuiceBindingsUi
public java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
- Description copied from interface:
IGeneratorFragment
- return a map containing the contributed guice bindings for the ui part created in this generator fragment
- Specified by:
getGuiceBindingsUi
in interface IGeneratorFragment
- Overrides:
getGuiceBindingsUi
in class DefaultGeneratorFragment
setLexerGrammar
public void setLexerGrammar(java.lang.String lexerGrammar)
getLexerGrammar
public java.lang.String getLexerGrammar()
setHighlighting
public void setHighlighting(boolean highlighting)
isHighlighting
public boolean isHighlighting()
setRuntime
public void setRuntime(boolean runtime)
isRuntime
public boolean isRuntime()
setContentAssist
public void setContentAssist(boolean contentAssist)
isContentAssist
public boolean isContentAssist()