org.stjs.generator.plugin
Class MainGenerationPlugin<JS>

java.lang.Object
  extended by org.stjs.generator.plugin.MainGenerationPlugin<JS>
All Implemented Interfaces:
STJSGenerationPlugin<JS>

public class MainGenerationPlugin<JS>
extends Object
implements STJSGenerationPlugin<JS>

this is the main generation plugin that adds all the needed checks and writers.

Author:
acraciun

Constructor Summary
MainGenerationPlugin()
           
 
Method Summary
protected  void addMethodCallTemplates(WriterVisitor<JS> visitor)
           
 void contributeCheckVisitor(CheckVisitor visitor)
          add the check contributors
 void contributeWriteVisitor(WriterVisitor<JS> visitor)
          add the writer contributors
 boolean loadByDefault()
           
 GenerationContext<JS> newContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainGenerationPlugin

public MainGenerationPlugin()
Method Detail

newContext

public GenerationContext<JS> newContext()

contributeCheckVisitor

public void contributeCheckVisitor(CheckVisitor visitor)
Description copied from interface: STJSGenerationPlugin
add the check contributors

Specified by:
contributeCheckVisitor in interface STJSGenerationPlugin<JS>

contributeWriteVisitor

public void contributeWriteVisitor(WriterVisitor<JS> visitor)
Description copied from interface: STJSGenerationPlugin
add the writer contributors

Specified by:
contributeWriteVisitor in interface STJSGenerationPlugin<JS>

addMethodCallTemplates

protected void addMethodCallTemplates(WriterVisitor<JS> visitor)

loadByDefault

public boolean loadByDefault()
Specified by:
loadByDefault in interface STJSGenerationPlugin<JS>
Returns:
true if this plugin is to be executed with any class, or false if the user should activate it via UsePlugin


Copyright © 2014. All Rights Reserved.