@SupportedOptions({"org.robolectric.annotation.processing.shadowPackage","org.robolectric.annotation.processing.shouldInstrumentPackage"})
@SupportedAnnotationTypes("org.robolectric.annotation.*")
public class RobolectricProcessor
extends javax.annotation.processing.AbstractProcessor
Constructor | Description |
---|---|
RobolectricProcessor() |
Default constructor.
|
RobolectricProcessor(Map<String,String> options) |
Constructor to use for testing passing options in.
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
getSdksFile(Map<String,String> options,
String sdksFileParam) |
Extendable to support Bazel environments, where the sdks file is generated as a build artifact.
|
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
|
void |
init(javax.annotation.processing.ProcessingEnvironment environment) |
|
boolean |
process(Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
public void init(javax.annotation.processing.ProcessingEnvironment environment)
init
in class javax.annotation.processing.AbstractProcessor
public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
process
in class javax.annotation.processing.AbstractProcessor
protected String getSdksFile(Map<String,String> options, String sdksFileParam)
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor