org.eclipse.xtext.generator.parser.antlr
Class DebugAntlrGeneratorFragment

java.lang.Object
  extended by org.eclipse.xtext.generator.DefaultGeneratorFragment
      extended by org.eclipse.xtext.generator.AbstractGeneratorFragment
          extended by org.eclipse.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment
              extended by org.eclipse.xtext.generator.parser.antlr.DebugAntlrGeneratorFragment
All Implemented Interfaces:
IGeneratorFragment, NamingAware

public class DebugAntlrGeneratorFragment
extends AbstractAntlrGeneratorFragment

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
DebugAntlrGeneratorFragment()
           
 
Method Summary
 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 getGrammarFileName(Grammar g, Naming naming)
           
protected  void prettyPrint(java.lang.String absoluteGrammarFileName)
           
 
Methods inherited from class org.eclipse.xtext.generator.parser.antlr.AbstractAntlrGeneratorFragment
addAntlrParam, containsUnorderedGroup, getAntlrParams, getAntlrTool, getLexerFileNameSuffix, getOptions, getParameters, getParserFileNameSuffix, setAntlrTool, setOptions, simplifyUnorderedGroupPredicates, simplifyUnorderedGroupPredicatesIfRequired, splitLexerClassFile, splitParserAndLexerIfEnabled, splitParserAndLexerIfEnabled, splitParserClassFile, suppressWarnings, suppressWarnings
 
Methods inherited from class org.eclipse.xtext.generator.AbstractGeneratorFragment
addToPluginXmlRt, addToPluginXmlUi, addToStandaloneSetup, getExportedPackagesRt, getExportedPackagesUi, getGuiceBindingsRt, getGuiceBindingsUi, getNaming, getRequiredBundlesRt, getRequiredBundlesUi, getTemplate, registerNaming
 
Methods inherited from class org.eclipse.xtext.generator.DefaultGeneratorFragment
getImportedPackagesRt, getImportedPackagesUi
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugAntlrGeneratorFragment

public DebugAntlrGeneratorFragment()
Method Detail

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 AbstractAntlrGeneratorFragment
Parameters:
issues - implementors should report configuration issues to this.

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 AbstractAntlrGeneratorFragment
ctx - - the execution context to use

prettyPrint

protected void prettyPrint(java.lang.String absoluteGrammarFileName)

getGrammarFileName

public java.lang.String getGrammarFileName(Grammar g,
                                           Naming naming)