Class CodeInjectingPlugin
- java.lang.Object
-
- com.sun.tools.xjc.Plugin
-
- org.jvnet.jaxb2_commons.plugin.AbstractPlugin
-
- org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
-
- org.neuroml.model.injectingplugin.CodeInjectingPlugin
-
public class CodeInjectingPlugin extends org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
This class injects code into NeuroML classes while they're being generated. Its used as a plugin for the xjc ant task. This class is based on an example given here.- Author:
- mschachter
-
-
Constructor Summary
Constructors Constructor Description CodeInjectingPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOptionName()
String
getUsage()
boolean
run(com.sun.tools.xjc.outline.Outline model, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
-
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
parseArgument
-
-
-
-
Method Detail
-
getOptionName
public String getOptionName()
- Specified by:
getOptionName
in classcom.sun.tools.xjc.Plugin
-
getUsage
public String getUsage()
- Specified by:
getUsage
in classcom.sun.tools.xjc.Plugin
-
run
public boolean run(com.sun.tools.xjc.outline.Outline model, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
- Overrides:
run
in classorg.jvnet.jaxb2_commons.plugin.AbstractPlugin
-
-