@SupportedOptions(value={"org.robolectric.annotation.processing.shadowPackage","org.robolectric.annotation.processing.shouldInstrumentPackage"})
@SupportedAnnotationTypes(value="org.robolectric.annotation.*")
public class RobolectricProcessor
extends javax.annotation.processing.AbstractProcessor
Annotation processor entry point for Robolectric annotations.
Constructor and Description |
---|
RobolectricProcessor()
Default constructor.
|
RobolectricProcessor(java.util.Map<java.lang.String,java.lang.String> options)
Constructor to use for testing passing options in.
|
Modifier and Type | Method and Description |
---|---|
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
void |
init(javax.annotation.processing.ProcessingEnvironment environment) |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
public RobolectricProcessor()
Default constructor.
public RobolectricProcessor(java.util.Map<java.lang.String,java.lang.String> options)
Constructor to use for testing passing options in. Only necessary until compile-testing supports passing options in.
options
- simulated options that would ordinarily be passed in the ProcessingEnvironment
.public void init(javax.annotation.processing.ProcessingEnvironment environment)
init
in interface javax.annotation.processing.Processor
init
in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor