Class RfValidator
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.google.web.bindery.requestfactory.apt.RfValidator
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@SupportedAnnotationTypes("*") @SupportedOptions({"rootOverride","suppressErrors","suppressWarnings","verbose"}) public class RfValidator extends javax.annotation.processing.AbstractProcessorThe entry point for annotation validation.
-
-
Constructor Summary
Constructors Constructor Description RfValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.SourceVersiongetSupportedSourceVersion()voidinit(javax.annotation.processing.ProcessingEnvironment processingEnv)booleanprocess(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)voidsetClientOnly(boolean clientOnly)(package private) voidsetForceErrors(boolean forceErrors)(package private) voidsetMustResolveAllMappings(boolean requireAll)Make it an error to not resolve all ProxyForName and ServiceName mappings.(package private) voidsetRootOverride(java.util.List<java.lang.String> binaryTypeNames)Instead of scanning the round's root elements, scan these type names instead.
-
-
-
Method Detail
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedSourceVersionin classjavax.annotation.processing.AbstractProcessor
-
init
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
- Specified by:
initin interfacejavax.annotation.processing.Processor- Overrides:
initin classjavax.annotation.processing.AbstractProcessor
-
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)- Specified by:
processin interfacejavax.annotation.processing.Processor- Specified by:
processin classjavax.annotation.processing.AbstractProcessor
-
setClientOnly
public void setClientOnly(boolean clientOnly)
-
setForceErrors
void setForceErrors(boolean forceErrors)
-
setMustResolveAllMappings
void setMustResolveAllMappings(boolean requireAll)
Make it an error to not resolve all ProxyForName and ServiceName mappings.
-
setRootOverride
void setRootOverride(java.util.List<java.lang.String> binaryTypeNames)
Instead of scanning the round's root elements, scan these type names instead. This is used by the ValidationTool to scan pre-compiled classfiles.
-
-