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

public Class CLGeneratorProcessor

extends AbstractProcessor
Class Inheritance
Annotations
@SupportedAnnotationTypes:*
@SupportedSourceVersion:RELEASE_6
@SupportedOptions:generatechecks, contextspecific
Imports
org.lwjgl.PointerWrapper, org.lwjgl.opencl.CLDevice, .CLPlatform, java.io.IOException, .PrintWriter, java.lang.annotation.Annotation, java.util.Set, javax.annotation.processing.*, javax.lang.model.SourceVersion, javax.lang.model.element.TypeElement, javax.lang.model.util.ElementFilter

Generator tool for creating the OpenCL capabilities classes
Author
Spasi

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
generateCLPDCapabilitiesSource(Set<TypeElement> templates, final Class<? extends Annotation> capsType, final String capsName, final Class<? extends PointerWrapper> objectType, final String objectName)

pack-priv static String
getExtensionName(String interface_name)

private static void
printHeader(final PrintWriter writer)

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

CLCAPS_CLASS_NAMEback to summary
public static final String CLCAPS_CLASS_NAME
CORE_PREFIXback to summary
private static final String CORE_PREFIX
DEVICE_CAPS_CLASS_NAMEback to summary
public static final String DEVICE_CAPS_CLASS_NAME
EXTENSION_PREFIXback to summary
private static final String EXTENSION_PREFIX
first_roundback to summary
private static boolean first_round
PLATFORM_CAPS_CLASS_NAMEback to summary
public static final String PLATFORM_CAPS_CLASS_NAME

Constructor Detail

CLGeneratorProcessorback to summary
public CLGeneratorProcessor()

Method Detail

generateCLCapabilitiesSourceback to summary
private void generateCLCapabilitiesSource(Set<TypeElement> templates) throws IOException
generateCLPDCapabilitiesSourceback to summary
private void generateCLPDCapabilitiesSource(Set<TypeElement> templates, final Class<? extends Annotation> capsType, final String capsName, final Class<? extends PointerWrapper> objectType, final String objectName) throws IOException
getExtensionNameback to summary
pack-priv static String getExtensionName(String interface_name)
printHeaderback to summary
private static void printHeader(final PrintWriter writer)
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