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
FieldsModifier and TypeFieldDescriptionfinal com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> -
Constructor Summary
ConstructorsConstructorDescriptionCastableTo(com.google.errorprone.suppliers.Supplier<com.sun.tools.javac.code.Type> type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(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:
applyin interfacecom.google.errorprone.predicates.TypePredicate
-