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

public Class GeneratorProcessor

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:*
@SupportedSourceVersion:RELEASE_6
@SupportedOptions:binpath, typemap, generatechecks, contextspecific
Imports
java.io.File, .FileFilter, java.util.Iterator, .Map, .Set, javax.annotation.processing.*, javax.lang.model.SourceVersion, javax.lang.model.element.Element, .TypeElement, javax.lang.model.util.ElementFilter, javax.tools.Diagnostic

Generator tool for creating the java classes and native code from an annotated template java interface.
Author
elias_naur
Version
$Revision$ $Id$

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static long
getDirectoryLastModified(final String bin_path, final String path)

private static long

Returns:

time of the latest change
getGeneratorLastModified
(final String bin_path)

Gets the time of the latest change on the Generator classes.

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

Constructor Detail

GeneratorProcessorback to summary
public GeneratorProcessor()

Method Detail

getDirectoryLastModifiedback to summary
private static long getDirectoryLastModified(final String bin_path, final String path)
getGeneratorLastModifiedback to summary
private static long getGeneratorLastModified(final String bin_path)

Gets the time of the latest change on the Generator classes.

Returns:long

time of the latest change

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