Class Helpers
- java.lang.Object
-
- org.robolectric.errorprone.bugpatterns.Helpers
-
public class Helpers extends Object
Matchers forShadowUsageCheck.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHelpers.CastableToMatches implementations of the given interface.
-
Constructor Summary
Constructors Constructor Description Helpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.errorprone.predicates.TypePredicateisCastableTo(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type)Match sub-types or implementations of the given type.static com.google.errorprone.predicates.TypePredicateisCastableTo(String type)Match sub-types or implementations of the given type.static booleanisInShadowClass(com.sun.source.util.TreePath path, com.google.errorprone.VisitorState state)
-
-
-
Method Detail
-
isCastableTo
public static com.google.errorprone.predicates.TypePredicate isCastableTo(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type)
Match sub-types or implementations of the given type.
-
isCastableTo
public static com.google.errorprone.predicates.TypePredicate isCastableTo(String type)
Match sub-types or implementations of the given type.
-
isInShadowClass
public static boolean isInShadowClass(com.sun.source.util.TreePath path, com.google.errorprone.VisitorState state)
-
-