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:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type>
expected
-
Constructor Summary
Constructors Constructor Description CastableTo(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type)
-
Method Summary
Modifier and Type Method Description boolean
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
-