org.eclipse.xtext.generator.parser.antlr.ex
Class ExternalAntlrLexerFragment

java.lang.Object
  extended by org.eclipse.xtext.generator.DefaultGeneratorFragment
      extended by org.eclipse.xtext.generator.parser.antlr.ex.ExternalAntlrLexerFragment
All Implemented Interfaces:
IGeneratorFragment

public class ExternalAntlrLexerFragment
extends DefaultGeneratorFragment

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
ExternalAntlrLexerFragment()
           
 
Method Summary
 void addAntlrParam(java.lang.String param)
           
 void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
          Called by the container after configuration so the component can validate the configuration before invocation.
 void generate(Grammar grammar, org.eclipse.xpand2.XpandExecutionContext ctx)
          can be used to generate whatever necessary
 java.lang.String[] getAntlrParams()
           
 AntlrToolFacade getAntlrTool()
           
 java.util.Set<Binding> getGuiceBindingsRt(Grammar grammar)
          return a map containing the contributed guice bindings created in this generator fragment
 java.util.Set<Binding> getGuiceBindingsUi(Grammar grammar)
          return a map containing the contributed guice bindings for the ui part created in this generator fragment
 java.lang.String getLexerGrammar()
           
 boolean isContentAssist()
           
 boolean isHighlighting()
           
 boolean isRuntime()
           
 void setAntlrTool(AntlrToolFacade facade)
           
 void setContentAssist(boolean contentAssist)
           
 void setHighlighting(boolean highlighting)
           
 void setLexerGrammar(java.lang.String lexerGrammar)
           
 void setRuntime(boolean runtime)
           
protected  void suppressWarningsImpl(java.lang.String javaFile)
           
 
Methods inherited from class org.eclipse.xtext.generator.DefaultGeneratorFragment
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, getExportedPackagesRt, getExportedPackagesUi, getImportedPackagesRt, getImportedPackagesUi, getRequiredBundlesRt, getRequiredBundlesUi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalAntlrLexerFragment

public ExternalAntlrLexerFragment()
Method Detail

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