public class Helpers extends Object
Matchers for ShadowUsageCheck
.
Modifier and Type | Class and Description |
---|---|
static class |
Helpers.AnnotatedMethodMatcher
Matches methods with the specified annotation.
|
static class |
Helpers.CastableTo
Matches implementations of the given interface.
|
Constructor and Description |
---|
Helpers() |
Modifier and Type | Method and Description |
---|---|
static com.google.errorprone.predicates.TypePredicate |
isCastableTo(String type)
Match sub-types or implementations of the given type.
|
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.
|
static boolean |
isInShadowClass(com.sun.source.util.TreePath path,
com.google.errorprone.VisitorState state) |
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.
public static com.google.errorprone.predicates.TypePredicate isCastableTo(String type)
Match sub-types or implementations of the given type.
public static boolean isInShadowClass(com.sun.source.util.TreePath path, com.google.errorprone.VisitorState state)