Class CodeTransformers
java.lang.Object
tech.picnic.errorprone.refaster.runner.CodeTransformers
Scans the classpath for ".refaster" files and loads them as
CodeTransformers.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableListMultimap<String, com.google.errorprone.CodeTransformer> Returns all RefasterCodeTransformers found on the classpath.
-
Method Details
-
getAllCodeTransformers
public static com.google.common.collect.ImmutableListMultimap<String,com.google.errorprone.CodeTransformer> getAllCodeTransformers()Returns all RefasterCodeTransformers found on the classpath.This method returns a cached view; all invocations except the first are very cheap.
- Returns:
- A mapping from Refaster rule names to associated
CodeTransformers.
-