Uses of Interface
com.google.errorprone.suppliers.Supplier
Package
Description
A predicate DSL for matching javac AST nodes.
Supports matchers, but rather than giving Matcher implementations which are predicates on
individual AST nodes, a supplier gives contextual information from the traversal of the AST.
-
Uses of Supplier in com.google.errorprone
Modifier and TypeMethodDescriptionstatic <T> Supplier
<T> Produces a cache for a function that is expected to return the same result throughout a compilation, but requires aVisitorState
to compute that result.Modifier and TypeMethodDescriptionstatic <T> Supplier
<T> Produces a cache for a function that is expected to return the same result throughout a compilation, but requires aVisitorState
to compute that result. -
Uses of Supplier in com.google.errorprone.matchers
Modifier and TypeFieldDescriptionprotected Supplier
<com.sun.tools.javac.code.Type> AbstractTypeMatcher.typeToCompareSupplier
Modifier and TypeMethodDescriptionstatic <T extends com.sun.source.tree.Tree>
Matcher<T> Matchers.isSameType
(Supplier<com.sun.tools.javac.code.Type> type) Matches an AST node if it has the same erased type as the given type.static <T extends com.sun.source.tree.Tree>
Matcher<T> Matchers.isSubtypeOf
(Supplier<com.sun.tools.javac.code.Type> type) Matches an AST node if its type is a subtype of the given type.static Matcher
<com.sun.source.tree.MethodTree> Matchers.methodReturns
(Supplier<com.sun.tools.javac.code.Type> returnType) ModifierConstructorDescriptionAbstractTypeMatcher
(Supplier<com.sun.tools.javac.code.Type> typeToCompareSupplier) IsSameType
(Supplier<com.sun.tools.javac.code.Type> typeToCompareSupplier) IsSubtypeOf
(Supplier<com.sun.tools.javac.code.Type> typeToCompareSupplier) -
Uses of Supplier in com.google.errorprone.matchers.method
Modifier and TypeMethodDescriptionDeprecated.Match on the given type exactly.Deprecated.Match on the given type exactly.MethodMatchers.AnyMethodMatcher.onDescendantOf
(Supplier<com.sun.tools.javac.code.Type> classType) Deprecated.Match on descendants of the given type.MethodMatchers.InstanceMethodMatcher.onDescendantOf
(Supplier<com.sun.tools.javac.code.Type> classType) Deprecated.Match on descendants of the given type.MethodMatchers.StaticMethodMatcher.onDescendantOf
(Supplier<com.sun.tools.javac.code.Type> classType) Deprecated.Match on descendants of the given type.MethodMatchers.InstanceMethodMatcher.onExactClass
(Supplier<com.sun.tools.javac.code.Type> classType) Deprecated.Match on the given type exactly.Modifier and TypeMethodDescriptionMethodMatchers.ConstructorClassMatcher.withParametersOfType
(Iterable<Supplier<com.sun.tools.javac.code.Type>> parameters) Deprecated.Match constructors whose formal parameters have the given types.MethodMatchers.MethodNameMatcher.withParametersOfType
(Iterable<Supplier<com.sun.tools.javac.code.Type>> parameters) Deprecated.Match constructors whose formal parameters have the given types. -
Uses of Supplier in com.google.errorprone.predicates
Modifier and TypeMethodDescriptionstatic TypePredicate
TypePredicates.isDescendantOf
(Supplier<com.sun.tools.javac.code.Type> type) Match sub-types of the given type.static TypePredicate
TypePredicates.isExactType
(Supplier<com.sun.tools.javac.code.Type> type) Match types that are exactly equal. -
Uses of Supplier in com.google.errorprone.predicates.type
Modifier and TypeFieldDescriptionfinal Supplier
<com.sun.tools.javac.code.Type> DescendantOf.expected
final Supplier
<com.sun.tools.javac.code.Type> Exact.supplier
-
Uses of Supplier in com.google.errorprone.suppliers
Modifier and TypeFieldDescriptionstatic final Supplier
<com.sun.tools.javac.code.Type> Suppliers.ANNOTATION_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.BOOLEAN_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.BYTE_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.CHAR_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.DOUBLE_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.ENCLOSING_CLASS
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.EXCEPTION_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.INT_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_BOOLEAN_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_INTEGER_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_LONG_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_VOID_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.LONG_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.OBJECT_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.SHORT_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.STRING_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.THROWABLE_TYPE
static final Supplier
<com.sun.tools.javac.code.Type> Suppliers.VOID_TYPE
Modifier and TypeMethodDescriptionstatic Supplier
<com.sun.tools.javac.code.Type> static Supplier
<com.sun.tools.javac.code.Type> Suppliers.genericTypeOf
(Supplier<com.sun.source.tree.ExpressionTree> expressionSupplier, int n) Supplies the n'th generic type of the given expression.static Supplier
<com.sun.tools.javac.code.Type> Suppliers.genericTypeOfType
(Supplier<com.sun.tools.javac.code.Type> typeSupplier, int n) Supplies the n'th generic type of the given expression.static <T> Supplier
<T> Suppliers.identitySupplier
(T toSupply) Supplies what was given.static Supplier
<com.sun.source.tree.ExpressionTree> Suppliers.receiverInstance()
Supplies the expression which gives the instance of an object that will receive the method call.static Supplier
<com.sun.tools.javac.code.Type> Suppliers.receiverType()
Supplies the expression which gives the instance of an object that will receive the method call.static Supplier
<com.sun.tools.javac.code.Type> Suppliers.typeFromClass
(Class<?> inputClass) Given the class representation of a type, supplies the corresponding type.static Supplier
<com.sun.tools.javac.code.Type> Suppliers.typeFromString
(String typeString) Given the string representation of a type, supplies the corresponding type.Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<Supplier<com.sun.tools.javac.code.Type>> Suppliers.fromStrings
(Iterable<String> types) Modifier and TypeMethodDescriptionstatic Supplier
<com.sun.tools.javac.code.Type> static Supplier
<com.sun.tools.javac.code.Type> Suppliers.genericTypeOf
(Supplier<com.sun.source.tree.ExpressionTree> expressionSupplier, int n) Supplies the n'th generic type of the given expression.static Supplier
<com.sun.tools.javac.code.Type> Suppliers.genericTypeOfType
(Supplier<com.sun.tools.javac.code.Type> typeSupplier, int n) Supplies the n'th generic type of the given expression.