net.sf.jelly.apt
Class APTJellyProcessor

java.lang.Object
  extended by net.sf.jelly.apt.APTJellyProcessor
All Implemented Interfaces:
com.sun.mirror.apt.AnnotationProcessor

public class APTJellyProcessor
extends java.lang.Object
implements com.sun.mirror.apt.AnnotationProcessor

Annotation processor that establishes a JellyContext with the AnnotationProcessorEnvironment established. And invokes

Author:
Ryan Heaton

Constructor Summary
APTJellyProcessor(com.sun.mirror.apt.AnnotationProcessorEnvironment env, org.xml.sax.InputSource script)
          Construct a processor with the given environment for the given script.
 
Method Summary
 com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
          The AnnotationProcessorEnvironment.
protected  void init(APTJellyContext context)
          Initialize an APTJellyContext.
protected  APTJellyContext newAPTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
          Instantiate a new APTJellyContext.
 void process()
          Establish and initialize an APTJellyContext and run the script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APTJellyProcessor

public APTJellyProcessor(com.sun.mirror.apt.AnnotationProcessorEnvironment env,
                         org.xml.sax.InputSource script)
Construct a processor with the given environment for the given script.

Parameters:
env - The environment.
script - The script.
Method Detail

process

public void process()
Establish and initialize an APTJellyContext and run the script.

Specified by:
process in interface com.sun.mirror.apt.AnnotationProcessor

newAPTJellyContext

protected APTJellyContext newAPTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Instantiate a new APTJellyContext.

Parameters:
env -
Returns:
a new APTJellyContext.

init

protected void init(APTJellyContext context)
Initialize an APTJellyContext. Default implementation sets the apt options in a variable named "aptOptions".

Parameters:
context - The context to initialize.

getAnnotationProcessorEnvironment

public com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
The AnnotationProcessorEnvironment.

Returns:
The AnnotationProcessorEnvironment.