Class Helpers
java.lang.Object
org.robolectric.errorprone.bugpatterns.Helpers
Matchers for
ShadowUsageCheck
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Matches implementations of the given interface. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static com.google.errorprone.predicates.TypePredicate
isCastableTo
(String type) Match sub-types or implementations of the given type.static boolean
isInShadowClass
(com.sun.source.util.TreePath path, com.google.errorprone.VisitorState state)
-
Constructor Details
-
Helpers
public Helpers()
-
-
Method Details
-
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
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)
-