Class Helpers.CastableTo
java.lang.Object
org.robolectric.errorprone.bugpatterns.Helpers.CastableTo
- All Implemented Interfaces:
com.google.errorprone.predicates.TypePredicate
,Serializable
- Enclosing class:
- Helpers
public static class Helpers.CastableTo
extends Object
implements com.google.errorprone.predicates.TypePredicate
Matches implementations of the given interface.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type>
-
Constructor Summary
ConstructorDescriptionCastableTo
(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type) -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(com.sun.tools.javac.code.Type type, com.google.errorprone.VisitorState state)
-
Field Details
-
expected
public final com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> expected
-
-
Constructor Details
-
CastableTo
public CastableTo(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type)
-
-
Method Details
-
apply
public boolean apply(com.sun.tools.javac.code.Type type, com.google.errorprone.VisitorState state) - Specified by:
apply
in interfacecom.google.errorprone.predicates.TypePredicate
-