@SupportedAnnotationTypes(value="com.gwtplatform.dispatch.annotation.GenEvent") public class GenEventProcessor extends GenProcessor
GenEvent
annotations.
GenEventProcessor
should only ever be called by tool infrastructure.
See Processor
for more details.processingEnv
Constructor and Description |
---|
GenEventProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateAssociatedTypeMethod(GenerationHelper writer,
String eventSimpleName) |
protected void |
generateDispatchMethod(GenerationHelper writer,
String eventSimpleName) |
protected void |
generateFireFieldsStaticMethod(GenerationHelper writer,
Collection<VariableElement> requiredFields,
String simpleClassName) |
protected void |
generateFireInstanceStaticMethod(GenerationHelper writer,
String simpleClassName) |
protected void |
generateFireSelfMethod(GenerationHelper writer) |
protected void |
generateHandlerInterface(GenerationHelper writer,
String eventSimpleName) |
protected void |
generateHasHandlerInterface(GenerationHelper writer,
String eventSimpleName) |
protected void |
generateStaticTypeField(GenerationHelper out,
String eventSimpleName) |
protected void |
generateTypeAccessorMethod(GenerationHelper out,
String eventSimpleName) |
void |
process(Element eventElement)
Override this function to receive elements which you've declared in
supported annotations.
|
getEnvironment, getSupportedSourceVersion, init, onProcessingCompleted, onProcessingStarted, printError, printMessage, process
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
public void process(Element eventElement)
GenProcessor
process
in class GenProcessor
eventElement
- the annotated element.protected void generateAssociatedTypeMethod(GenerationHelper writer, String eventSimpleName)
protected void generateDispatchMethod(GenerationHelper writer, String eventSimpleName)
protected void generateHasHandlerInterface(GenerationHelper writer, String eventSimpleName)
protected void generateHandlerInterface(GenerationHelper writer, String eventSimpleName)
protected void generateFireInstanceStaticMethod(GenerationHelper writer, String simpleClassName)
protected void generateFireFieldsStaticMethod(GenerationHelper writer, Collection<VariableElement> requiredFields, String simpleClassName)
protected void generateFireSelfMethod(GenerationHelper writer)
protected void generateStaticTypeField(GenerationHelper out, String eventSimpleName)
protected void generateTypeAccessorMethod(GenerationHelper out, String eventSimpleName)
Copyright © 2010–2014 Arcbees. All rights reserved.