Class ErrorProneScannerTransformer
java.lang.Object
com.google.errorprone.scanner.ErrorProneScannerTransformer
- All Implemented Interfaces:
- CodeTransformer
Adapter from an 
ErrorProneScanner to a CodeTransformer.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableClassToInstanceMap<Annotation> Returns a map of annotation data logically applied to this code transformer.voidapply(TreePath tree, com.sun.tools.javac.util.Context context, DescriptionListener listener) Apply recursively from the leaf node in the givenTreePath.static ErrorProneScannerTransformer
- 
Constructor Details- 
ErrorProneScannerTransformerpublic ErrorProneScannerTransformer()
 
- 
- 
Method Details- 
create
- 
applypublic void apply(TreePath tree, com.sun.tools.javac.util.Context context, DescriptionListener listener) Description copied from interface:CodeTransformerApply recursively from the leaf node in the givenTreePath.- Specified by:
- applyin interface- CodeTransformer
 
- 
annotationsDescription copied from interface:CodeTransformerReturns a map of annotation data logically applied to this code transformer.As an example, if a CodeTransformerexpressed as a Refaster rule had an annotation applied to it:
 You could retrieve the value of@MyCustomAnnotation("value") public class AnnotatedRefasterRule { @BeforeTemplate void before(String x) {...} @AfterTemplate void after(String x) {...} }@MyCustomAnnotationfrom this map.- Specified by:
- annotationsin interface- CodeTransformer
 
 
-