Uses of Interface
com.google.errorprone.suppliers.Supplier
Packages that use 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
Methods in com.google.errorprone that return SupplierModifier 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.Methods in com.google.errorprone with parameters of type SupplierModifier 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
Fields in com.google.errorprone.matchers declared as SupplierModifier and TypeFieldDescriptionprotected Supplier
<com.sun.tools.javac.code.Type> AbstractTypeMatcher.typeToCompareSupplier
Methods in com.google.errorprone.matchers with parameters of type SupplierModifier 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) Constructors in com.google.errorprone.matchers with parameters of type SupplierModifierConstructorDescriptionAbstractTypeMatcher
(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
Methods in com.google.errorprone.matchers.method with parameters of type SupplierModifier 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.Method parameters in com.google.errorprone.matchers.method with type arguments of type SupplierModifier 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
Methods in com.google.errorprone.predicates with parameters of type SupplierModifier 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
Fields in com.google.errorprone.predicates.type declared as SupplierModifier and TypeFieldDescriptionfinal Supplier
<com.sun.tools.javac.code.Type> DescendantOf.expected
final Supplier
<com.sun.tools.javac.code.Type> Exact.supplier
Fields in com.google.errorprone.predicates.type with type parameters of type SupplierConstructors in com.google.errorprone.predicates.type with parameters of type SupplierConstructor parameters in com.google.errorprone.predicates.type with type arguments of type Supplier -
Uses of Supplier in com.google.errorprone.suppliers
Fields in com.google.errorprone.suppliers declared as SupplierModifier 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
Methods in com.google.errorprone.suppliers that return SupplierModifier 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.Methods in com.google.errorprone.suppliers that return types with arguments of type SupplierModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<Supplier<com.sun.tools.javac.code.Type>> Suppliers.fromStrings
(Iterable<String> types) Methods in com.google.errorprone.suppliers with parameters of type SupplierModifier 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.