net.sf.jelly.apt
Class APTJellyContext

java.lang.Object
  extended by org.apache.commons.jelly.JellyContext
      extended by net.sf.jelly.apt.APTJellyContext
All Implemented Interfaces:
TemplateModel

public class APTJellyContext
extends org.apache.commons.jelly.JellyContext
implements TemplateModel

A jelly context with an AnnotationProcessorEnvironment.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class org.apache.commons.jelly.JellyContext
classLoader, useContextClassLoader
 
Constructor Summary
  APTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
           
protected APTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env, org.apache.commons.jelly.JellyContext parent)
           
 
Method Summary
protected  org.apache.commons.jelly.JellyContext createChildContext()
           
 com.sun.mirror.apt.AnnotationProcessorEnvironment getAnnotationProcessorEnvironment()
           
 void setVariable(java.lang.String name, java.lang.Object value)
          If value is a Declaration or TypeMirror, decorate it before setting it in the context.
 
Methods inherited from class org.apache.commons.jelly.JellyContext
clear, clearVariables, compileScript, compileScript, compileScript, createRelativeURL, createXMLParser, findVariable, getClassLoader, getCurrentURL, getJellyContextURL, getJellyContextURL, getParent, getResource, getResourceAsStream, getRootURL, getScope, getTagLibrary, getUseContextClassLoader, getVariable, getVariable, getVariableNames, getVariables, getXMLParser, isExport, isExportLibraries, isInherit, isTagLibraryRegistered, newJellyContext, newJellyContext, registerTagLibrary, registerTagLibrary, removeVariable, removeVariable, runScript, runScript, runScript, runScript, runScript, runScript, runScript, runScript, setClassLoader, setCurrentURL, setExport, setExportLibraries, setInherit, setParent, setRootURL, setUseContextClassLoader, setVariable, setVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jelly.apt.TemplateModel
getVariable
 

Constructor Detail

APTJellyContext

public APTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env)

APTJellyContext

protected APTJellyContext(com.sun.mirror.apt.AnnotationProcessorEnvironment env,
                          org.apache.commons.jelly.JellyContext parent)
Method Detail

getAnnotationProcessorEnvironment

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

createChildContext

protected org.apache.commons.jelly.JellyContext createChildContext()
Overrides:
createChildContext in class org.apache.commons.jelly.JellyContext

setVariable

public void setVariable(java.lang.String name,
                        java.lang.Object value)
If value is a Declaration or TypeMirror, decorate it before setting it in the context.

Specified by:
setVariable in interface TemplateModel
Overrides:
setVariable in class org.apache.commons.jelly.JellyContext
Parameters:
name - The name of the variable.
value - The value of the variable.