Uses of Interface
com.google.errorprone.suppliers.Supplier
Package | Description |
---|---|
com.google.errorprone | |
com.google.errorprone.matchers |
A predicate DSL for matching javac AST nodes.
|
com.google.errorprone.matchers.method | |
com.google.errorprone.predicates | |
com.google.errorprone.predicates.type | |
com.google.errorprone.suppliers |
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 Supplier Modifier and Type Method Description static <T> Supplier<T>
VisitorState. memoize(Supplier<T> f)
Produces a cache for a function that is expected to return the same result throughout a compilation, but requires a VisitorState to compute that result.Methods in com.google.errorprone with parameters of type Supplier Modifier and Type Method Description static <T> Supplier<T>
VisitorState. memoize(Supplier<T> f)
Produces a cache for a function that is expected to return the same result throughout a compilation, but requires a VisitorState to compute that result. -
Uses of Supplier in com.google.errorprone.matchers
Fields in com.google.errorprone.matchers declared as Supplier Modifier and Type Field Description protected Supplier<com.sun.tools.javac.code.Type>
AbstractTypeMatcher. typeToCompareSupplier
Methods in com.google.errorprone.matchers with parameters of type Supplier Modifier and Type Method Description static <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 Supplier Constructor Description AbstractTypeMatcher(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 Supplier Modifier and Type Method Description MethodMatchers.ConstructorClassMatcher
MethodMatchers.ConstructorMatcher. forClass(Supplier<com.sun.tools.javac.code.Type> classType)
Deprecated.Match on the given type exactly.MethodMatchers.MethodClassMatcher
MethodMatchers.StaticMethodMatcher. onClass(Supplier<com.sun.tools.javac.code.Type> classType)
Deprecated.Match on the given type exactly.MethodMatchers.MethodClassMatcher
MethodMatchers.AnyMethodMatcher. onDescendantOf(Supplier<com.sun.tools.javac.code.Type> classType)
Deprecated.Match on descendants of the given type.MethodMatchers.MethodClassMatcher
MethodMatchers.InstanceMethodMatcher. onDescendantOf(Supplier<com.sun.tools.javac.code.Type> classType)
Deprecated.Match on descendants of the given type.MethodMatchers.MethodClassMatcher
MethodMatchers.StaticMethodMatcher. onDescendantOf(Supplier<com.sun.tools.javac.code.Type> classType)
Deprecated.Match on descendants of the given type.MethodMatchers.MethodClassMatcher
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 Supplier Modifier and Type Method Description MethodMatchers.ParameterMatcher
MethodMatchers.ConstructorClassMatcher. withParametersOfType(Iterable<Supplier<com.sun.tools.javac.code.Type>> parameters)
Deprecated.Match constructors whose formal parameters have the given types.MethodMatchers.ParameterMatcher
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 Supplier Modifier and Type Method Description static 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 Supplier Modifier and Type Field Description Supplier<com.sun.tools.javac.code.Type>
DescendantOf. expected
Supplier<com.sun.tools.javac.code.Type>
Exact. supplier
Fields in com.google.errorprone.predicates.type with type parameters of type Supplier Modifier and Type Field Description Iterable<Supplier<com.sun.tools.javac.code.Type>>
DescendantOfAny. types
Iterable<Supplier<com.sun.tools.javac.code.Type>>
ExactAny. types
Constructors in com.google.errorprone.predicates.type with parameters of type Supplier Constructor Description DescendantOf(Supplier<com.sun.tools.javac.code.Type> type)
Exact(Supplier<com.sun.tools.javac.code.Type> type)
Constructor parameters in com.google.errorprone.predicates.type with type arguments of type Supplier Constructor Description DescendantOfAny(Iterable<Supplier<com.sun.tools.javac.code.Type>> types)
ExactAny(Iterable<Supplier<com.sun.tools.javac.code.Type>> types)
-
Uses of Supplier in com.google.errorprone.suppliers
Fields in com.google.errorprone.suppliers declared as Supplier Modifier and Type Field Description static Supplier<com.sun.tools.javac.code.Type>
Suppliers. ANNOTATION_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. BOOLEAN_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. BYTE_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. CHAR_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. DOUBLE_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. ENCLOSING_CLASS
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. EXCEPTION_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. INT_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. JAVA_LANG_BOOLEAN_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. JAVA_LANG_INTEGER_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. JAVA_LANG_LONG_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. JAVA_LANG_VOID_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. LONG_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. OBJECT_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. STRING_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. THROWABLE_TYPE
static Supplier<com.sun.tools.javac.code.Type>
Suppliers. VOID_TYPE
Methods in com.google.errorprone.suppliers that return Supplier Modifier and Type Method Description static Supplier<com.sun.tools.javac.code.Type>
Suppliers. arrayOf(Supplier<com.sun.tools.javac.code.Type> elementType)
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 Supplier Modifier and Type Method Description static 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 Supplier Modifier and Type Method Description static Supplier<com.sun.tools.javac.code.Type>
Suppliers. arrayOf(Supplier<com.sun.tools.javac.code.Type> elementType)
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.