Top Fields Constructors Methods
io.undertow.annotationprocessor

public Class HttpParserAnnotationProcessor

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:HttpParserConfig
@SupportedOptions
@SupportedSourceVersion:RELEASE_8
Imports
java.io.IOException, .OutputStream, java.util.Set, javax.annotation.processing.AbstractProcessor, .Filer, .ProcessingEnvironment, .RoundEnvironment, .SupportedAnnotationTypes, .SupportedOptions, .SupportedSourceVersion, javax.lang.model.SourceVersion, javax.lang.model.element.Element, .TypeElement, javax.tools.JavaFileObject

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private Filer
Inherited from javax.annotation.processing.AbstractProcessor:
processingEnv

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
init(final ProcessingEnvironment
environment to access facilities the tool framework provides to the processor
processingEnv
)

Overrides javax.annotation.processing.AbstractProcessor.init.

Implements javax.annotation.processing.Processor.init.

Initializes the processor with the processing environment.

public boolean
process(final Set<? extends TypeElement>
the annotation interfaces requested to be processed
annotations
,
final RoundEnvironment
environment for information about the current and prior round
roundEnv
)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor.

Inherited from javax.annotation.processing.AbstractProcessor:
getCompletionsgetSupportedAnnotationTypesgetSupportedOptionsgetSupportedSourceVersionisInitialized

Field Detail

filerback to summary
private Filer filer

Constructor Detail

HttpParserAnnotationProcessorback to summary
public HttpParserAnnotationProcessor()

Method Detail

initback to summary
public void init(final ProcessingEnvironment processingEnv)

Overrides javax.annotation.processing.AbstractProcessor.init.

Implements javax.annotation.processing.Processor.init.

Doc from javax.annotation.processing.AbstractProcessor.init.

Initializes the processor with the processing environment.

Parameters
processingEnv:ProcessingEnvironment

environment to access facilities the tool framework provides to the processor

Annotations
@Override
processback to summary
public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv)

Implements abstract javax.annotation.processing.AbstractProcessor.process.

Implements javax.annotation.processing.Processor.process.

Doc from javax.annotation.processing.AbstractProcessor.process.

Processes a set of annotation interfaces on root elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor. If true is returned, the annotation interfaces are claimed and subsequent processors will not be asked to process them; if false is returned, the annotation interfaces are unclaimed and subsequent processors may be asked to process them. A processor may always return the same boolean value or may vary the result based on its own chosen criteria.

The input set will be empty if the processor supports "*" and the root elements have no annotations. A Processor must gracefully handle an empty set of annotations.

Parameters
annotations:Set<? extends TypeElement>

Doc from javax.annotation.processing.Processor.process.

the annotation interfaces requested to be processed

roundEnv:RoundEnvironment

Doc from javax.annotation.processing.Processor.process.

environment for information about the current and prior round

Returns:boolean

Doc from javax.annotation.processing.Processor.process.

whether or not the set of annotation interfaces are claimed by this processor

Annotations
@Override