Class ExperimentalFeatureProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- org.uberfire.annotations.processors.AbstractErrorAbsorbingProcessor
-
- org.uberfire.annotations.processors.ExperimentalFeatureProcessor
-
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.uberfire.experimental.definition.annotations.ExperimentalFeature") @SupportedSourceVersion(RELEASE_8) public class ExperimentalFeatureProcessor extends AbstractErrorAbsorbingProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>ACTIVITY_TYPES_MAPPING-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description ExperimentalFeatureProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<String>getActivityType(TypeElement classElement)protected booleanprocessWithExceptions(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)Same contract asAbstractErrorAbsorbingProcessor.process(Set, RoundEnvironment), except that any exceptions thrown are caught and printed as messages of typeDiagnostic.Kind.ERROR.-
Methods inherited from class org.uberfire.annotations.processors.AbstractErrorAbsorbingProcessor
init, process, rememberInitializationError, writeCode
-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
-
-
-
Method Detail
-
processWithExceptions
protected boolean processWithExceptions(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) throws Exception
Description copied from class:AbstractErrorAbsorbingProcessorSame contract asAbstractErrorAbsorbingProcessor.process(Set, RoundEnvironment), except that any exceptions thrown are caught and printed as messages of typeDiagnostic.Kind.ERROR. This is done to keep Eclipse JDT from going into an infinite processing loop.- Specified by:
processWithExceptionsin classAbstractErrorAbsorbingProcessor- Throws:
Exception
-
getActivityType
public static Optional<String> getActivityType(TypeElement classElement)
-
-