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 aVisitorStateto 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 aVisitorStateto 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.typeToCompareSupplierMethods in com.google.errorprone.matchers with parameters of type SupplierModifier and TypeMethodDescriptionMatchers.isSameType(Supplier<com.sun.tools.javac.code.Type> type) Matches an AST node if it has the same erased type as the given type.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<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 TypePredicateTypePredicates.isDescendantOf(Supplier<com.sun.tools.javac.code.Type> type) Match sub-types of the given type.static TypePredicateTypePredicates.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.expectedfinal Supplier<com.sun.tools.javac.code.Type> Exact.supplierFields 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_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.BOOLEAN_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.BYTE_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.CHAR_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.DOUBLE_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.ENCLOSING_CLASSstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.EXCEPTION_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.INT_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_BOOLEAN_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_INTEGER_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_LONG_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.JAVA_LANG_VOID_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.LONG_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.OBJECT_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.SHORT_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.STRING_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.THROWABLE_TYPEstatic final Supplier<com.sun.tools.javac.code.Type> Suppliers.VOID_TYPEMethods 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<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<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<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.