Class RfValidator
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.google.web.bindery.requestfactory.apt.RfValidator
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("*")
@SupportedOptions({"rootOverride","suppressErrors","suppressWarnings","verbose"})
public class RfValidator
extends AbstractProcessor
The entry point for annotation validation.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, 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(List<String> binaryTypeNames) Instead of scanning the round's root elements, scan these type names instead.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
RfValidator
public RfValidator()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
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
Instead of scanning the round's root elements, scan these type names instead. This is used by the ValidationTool to scan pre-compiled classfiles.
-