|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jelly.apt.ProcessorFactory
public abstract class ProcessorFactory
Base class for the annotation processor factory.
Field Summary | |
---|---|
static java.lang.String |
DECLARATION_DECORATOR_OPTION
Option for specifying the declaration decorator. |
protected static int |
round
|
protected java.net.URL |
template
|
static java.lang.String |
TEMPLATE_FILE_OPTION
Option to pass to APT specifying the template file on the filesystem to invoke. |
static java.lang.String |
TEMPLATE_URL_OPTION
Option to pass to APT specifying a URL of the template to invoke. |
static java.lang.String |
TYPE_DECORATOR_OPTION
Option for specifying the type decorator. |
Constructor Summary | |
---|---|
protected |
ProcessorFactory()
|
protected |
ProcessorFactory(java.net.URL template)
|
Method Summary | |
---|---|
protected com.sun.mirror.apt.AnnotationProcessorEnvironment |
decorateEnvironment(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Decorate the annotation processor environment. |
protected com.sun.mirror.apt.AnnotationProcessor |
getProcessorFor(java.util.Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> annotations)
Get a freemarker processor. |
com.sun.mirror.apt.AnnotationProcessor |
getProcessorFor(java.util.Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> set,
com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Default implementation ensures only one APT round does any work and establishes the context before instantiating the processor. |
protected java.net.URL |
getTemplateURL()
Get the URL to the template. |
protected abstract com.sun.mirror.apt.AnnotationProcessor |
newProcessor(java.net.URL url)
Instantiate a new processor. |
java.util.Collection<java.lang.String> |
supportedAnnotationTypes()
By default, all annotation types are supported. |
java.util.Collection<java.lang.String> |
supportedOptions()
The supported options for this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TEMPLATE_FILE_OPTION
public static final java.lang.String TEMPLATE_URL_OPTION
public static final java.lang.String DECLARATION_DECORATOR_OPTION
public static final java.lang.String TYPE_DECORATOR_OPTION
protected static int round
protected java.net.URL template
Constructor Detail |
---|
protected ProcessorFactory()
protected ProcessorFactory(java.net.URL template)
Method Detail |
---|
public java.util.Collection<java.lang.String> supportedOptions()
supportedOptions
in interface com.sun.mirror.apt.AnnotationProcessorFactory
public java.util.Collection<java.lang.String> supportedAnnotationTypes()
supportedAnnotationTypes
in interface com.sun.mirror.apt.AnnotationProcessorFactory
public com.sun.mirror.apt.AnnotationProcessor getProcessorFor(java.util.Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> set, com.sun.mirror.apt.AnnotationProcessorEnvironment env)
getProcessorFor
in interface com.sun.mirror.apt.AnnotationProcessorFactory
set
- The relevant annotation types.env
- The environment.
protected com.sun.mirror.apt.AnnotationProcessor getProcessorFor(java.util.Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> annotations)
annotations
- The annotations.
protected com.sun.mirror.apt.AnnotationProcessorEnvironment decorateEnvironment(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
env
- The environment to decorate.
protected java.net.URL getTemplateURL()
protected abstract com.sun.mirror.apt.AnnotationProcessor newProcessor(java.net.URL url)
url
- The URL to the template.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |