Top Description Fields Constructors Methods
org.lwjgl.util.generator.opengl

public Class GLReferencesGeneratorProcessor

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:*
@SupportedSourceVersion:RELEASE_6
@SupportedOptions:generatechecks, contextspecific
Imports
org.lwjgl.util.generator.Alternate, .CachedReference, .Utils, java.io.IOException, .PrintWriter, java.util.Set, javax.annotation.processing.*, javax.lang.model.SourceVersion, javax.lang.model.element.ExecutableElement, .TypeElement, .VariableElement, javax.lang.model.util.ElementFilter

Generator tool for creating the References class
Author
elias_naur
Version
$Revision: 3237 $ $Id: ReferencesGeneratorProcessorFactory.java 3237 2009-09-08 15:07:15Z spasi $

Field Summary

Modifier and TypeField and Description
private static boolean
private static final String
private static final String
Inherited from javax.annotation.processing.AbstractProcessor:
processingEnv

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
private static void
private static void
private static void
private static void
private static void
private void
public boolean
process(Set<? extends TypeElement>
the annotation interfaces requested to be processed
annotations
,
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:
getCompletionsgetSupportedAnnotationTypesgetSupportedOptionsgetSupportedSourceVersioninitisInitialized

Field Detail

first_roundback to summary
private static boolean first_round
REFERENCES_CLASS_NAMEback to summary
private static final String REFERENCES_CLASS_NAME
REFERENCES_PARAMETER_NAMEback to summary
private static final String REFERENCES_PARAMETER_NAME

Constructor Detail

GLReferencesGeneratorProcessorback to summary
public GLReferencesGeneratorProcessor()

Method Detail

generateClearsFromMethodsback to summary
private static void generateClearsFromMethods(ProcessingEnvironment env, PrintWriter writer, TypeElement interface_decl)
generateClearsFromParametersback to summary
private static void generateClearsFromParameters(PrintWriter writer, TypeElement interface_decl, ExecutableElement method)
generateCopiesFromMethodsback to summary
private static void generateCopiesFromMethods(ProcessingEnvironment env, PrintWriter writer, TypeElement interface_decl)
generateCopiesFromParametersback to summary
private static void generateCopiesFromParameters(PrintWriter writer, TypeElement interface_decl, ExecutableElement method)
generateReferencesFromMethodsback to summary
private static void generateReferencesFromMethods(ProcessingEnvironment env, PrintWriter writer, TypeElement interface_decl)
generateReferencesFromParametersback to summary
private static void generateReferencesFromParameters(PrintWriter writer, TypeElement interface_decl, ExecutableElement method)
generateReferencesSourceback to summary
private void generateReferencesSource(ProcessingEnvironment env, Set<TypeElement> templates) throws IOException
processback to summary
public boolean process(Set<? extends TypeElement> annotations, 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>

the annotation interfaces requested to be processed

roundEnv:RoundEnvironment

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