Skip navigation links
A B C D E F G H I K L M N O P R S T U V W 

A

AdapterJavadocs - Class in dagger.internal.codegen
Utility class providing some commonly used boilerplate between InjectAdapterProcessor and ModuleAdapterProcessor.
AdapterJavadocs() - Constructor for class dagger.internal.codegen.AdapterJavadocs
 
add(E) - Method in class dagger.internal.ArrayQueue
Inserts the specified element at the end of this queue.
add(BindingsGroup, String, Binding<?>) - Static method in class dagger.internal.SetBinding
 
ArrayQueue<E> - Class in dagger.internal
Resizable-array implementation of the Queue interface.
ArrayQueue() - Constructor for class dagger.internal.ArrayQueue
Constructs an empty array queue with an initial capacity sufficient to hold 16 elements.
ArrayQueue(int) - Constructor for class dagger.internal.ArrayQueue
Constructs an empty array queue with an initial capacity sufficient to hold the specified number of elements.
ArrayQueue(Collection<? extends E>) - Constructor for class dagger.internal.ArrayQueue
Constructs a queue containing the elements of the specified collection, in the order they are returned by the collection's iterator.
attach(Linker) - Method in class dagger.internal.Binding
Links this binding to its dependencies.
attach(Linker) - Method in class dagger.internal.codegen.GraphAnalysisStaticInjection
 
attach(Linker) - Method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
attach(Linker) - Method in class dagger.internal.loaders.ReflectiveStaticInjection
 
attach(Linker) - Method in class dagger.internal.SetBinding
 
attach(Linker) - Method in class dagger.internal.StaticInjection
 

B

beginGraph(String...) - Method in class dagger.internal.codegen.GraphVizWriter
 
Binding<T> - Class in dagger.internal
Injects a value of a specific type.
Binding(String, String, boolean, Object) - Constructor for class dagger.internal.Binding
 
Binding.InvalidBindingException - Exception in dagger.internal
An exception thrown by anything attempting to construct a binding which is invalid.
BindingsGroup - Class in dagger.internal
A grouping of bindings that fails when existing values are clobbered, to be used in collecting the initial set of bindings for a graph (from provides methods).
BindingsGroup() - Constructor for class dagger.internal.BindingsGroup
 

C

clear() - Method in class dagger.internal.ArrayQueue
Removes all of the elements from this queue.
clone() - Method in class dagger.internal.ArrayQueue
Returns a copy of this queue.
close() - Method in class dagger.internal.codegen.GraphVizWriter
 
complete - Variable in class dagger.internal.ModuleAdapter
 
contains(Object) - Method in class dagger.internal.ArrayQueue
Returns true if this queue contains the specified element.
contributeProvidesBinding(String, ProvidesBinding<?>) - Method in class dagger.internal.BindingsGroup
 
contributeSetBinding(String, SetBinding<?>) - Method in class dagger.internal.BindingsGroup
 
create(Class<T>, boolean) - Static method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
create(Class<?>) - Static method in class dagger.internal.loaders.ReflectiveStaticInjection
 
create(Object...) - Static method in class dagger.ObjectGraph
Returns a new dependency graph using the @Module-annotated modules.

D

dagger - package dagger
 
dagger.internal - package dagger.internal
 
dagger.internal.codegen - package dagger.internal.codegen
 
dagger.internal.loaders - package dagger.internal.loaders
 
dependedOn() - Method in class dagger.internal.Binding
 
detectCircularDependencies(Collection<Binding<?>>) - Method in class dagger.internal.ProblemDetector
 
detectProblems(Collection<Binding<?>>) - Method in class dagger.internal.ProblemDetector
 
detectUnusedBinding(Collection<Binding<?>>) - Method in class dagger.internal.ProblemDetector
 

E

edge(String, String, String...) - Method in class dagger.internal.codegen.GraphVizWriter
 
edgeDefaults(String...) - Method in class dagger.internal.codegen.GraphVizWriter
 
element() - Method in class dagger.internal.ArrayQueue
Retrieves, but does not remove, the head of the queue represented by this queue.
endGraph() - Method in class dagger.internal.codegen.GraphVizWriter
 
entrySet() - Method in class dagger.internal.BindingsGroup
 
equals(Object) - Method in class dagger.internal.ModuleAdapter
 

F

FailoverLoader - Class in dagger.internal
Handles loading/finding of modules, injection bindings, and static injections by use of a strategy of "load the appropriate generated code" or, if no such code is found, create a reflective equivalent.
FailoverLoader() - Constructor for class dagger.internal.FailoverLoader
 
fullyLinkedBindings() - Method in class dagger.internal.Linker
Returns the map of all bindings available to this Linker, if and only if Linker.linkAll() has successfully returned at least once, otherwise it returns null;

G

GeneratedAdapters - Class in dagger.internal.loaders
A single point for API used in common by Adapters and Adapter generators
get() - Method in class dagger.internal.Binding
 
get(String) - Method in class dagger.internal.BindingsGroup
 
get(Type) - Static method in class dagger.internal.Keys
Returns a key for type with no annotation.
get(Type, Annotation[], Object) - Static method in class dagger.internal.Keys
Returns a key for type annotated with annotations, reporting failures against subject.
get() - Method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
get() - Method in class dagger.internal.ProvidesBinding
A provides binding is responsible for implementing storage of the module instance, and delegation to that module instance's method.
get() - Method in class dagger.internal.SetBinding
 
get() - Method in interface dagger.Lazy
Return the underlying value, computing the value if necessary.
get(Class<T>) - Method in class dagger.ObjectGraph
Returns an instance of type.
getAtInjectBinding(String, String, ClassLoader, boolean) - Method in class dagger.internal.codegen.GraphAnalysisLoader
 
getAtInjectBinding(String, String, ClassLoader, boolean) - Method in class dagger.internal.FailoverLoader
 
getAtInjectBinding(String, String, ClassLoader, boolean) - Method in class dagger.internal.Loader
Returns a binding that uses @Inject annotations, or null if no valid binding can be found or created.
getBindings(BindingsGroup, T) - Method in class dagger.internal.ModuleAdapter
Returns bindings for the @Provides methods of module.
getClassName(String) - Static method in class dagger.internal.Keys
Returns the class name for key, if key was created with a class instance.
getDependencies(Set<Binding<?>>, Set<Binding<?>>) - Method in class dagger.internal.Binding
Populates getBindings and injectMembersBindings with the bindings used by this binding to satisfy Binding.get() and Binding.injectMembers(T) calls, respectively.
getDependencies(Set<Binding<?>>, Set<Binding<?>>) - Method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
getDependencies(Set<Binding<?>>, Set<Binding<?>>) - Method in class dagger.internal.SetBinding
 
getMembersKey(Class<?>) - Static method in class dagger.internal.Keys
Returns a key for the members of type.
getModuleAdapter(Class<T>) - Method in class dagger.internal.codegen.GraphAnalysisLoader
 
getModuleAdapter(Class<T>) - Method in class dagger.internal.FailoverLoader
Obtains a module adapter for module from the first responding resolver.
getModuleAdapter(Class<T>) - Method in class dagger.internal.Loader
Returns a module adapter for moduleClass or throws a TypeNotPresentException if none can be found.
getSetKey(Type, Annotation[], Object) - Static method in class dagger.internal.Keys
Returns a key for type annotated with annotations, wrapped by Set, reporting failures against subject.
getStaticInjection(Class<?>) - Method in class dagger.internal.codegen.GraphAnalysisLoader
 
getStaticInjection(Class<?>) - Method in class dagger.internal.FailoverLoader
 
getStaticInjection(Class<?>) - Method in class dagger.internal.Loader
Returns the static injection for injectedClass.
getSupportedSourceVersion() - Method in class dagger.internal.codegen.GraphAnalysisProcessor
 
getSupportedSourceVersion() - Method in class dagger.internal.codegen.InjectAdapterProcessor
 
getSupportedSourceVersion() - Method in class dagger.internal.codegen.ModuleAdapterProcessor
 
getSupportedSourceVersion() - Method in class dagger.internal.codegen.ValidationProcessor
 
GraphAnalysisLoader - Class in dagger.internal.codegen
A Binding.Resolver suitable for tool use at build time.
GraphAnalysisLoader(ProcessingEnvironment) - Constructor for class dagger.internal.codegen.GraphAnalysisLoader
 
GraphAnalysisProcessor - Class in dagger.internal.codegen
Performs full graph analysis on a module.
GraphAnalysisProcessor() - Constructor for class dagger.internal.codegen.GraphAnalysisProcessor
 
GraphAnalysisStaticInjection - Class in dagger.internal.codegen
 
GraphAnalysisStaticInjection(Element) - Constructor for class dagger.internal.codegen.GraphAnalysisStaticInjection
 
GraphVisualizer - Class in dagger.internal.codegen
Emits an object graph in dot format.
GraphVisualizer() - Constructor for class dagger.internal.codegen.GraphVisualizer
 
GraphVizWriter - Class in dagger.internal.codegen
Emits dot graphs.
GraphVizWriter(Writer) - Constructor for class dagger.internal.codegen.GraphVizWriter
 

H

handleErrors(List<String>) - Method in interface dagger.internal.Linker.ErrorHandler
Fail if any errors have been enqueued.
handleErrors(List<String>) - Method in class dagger.internal.ThrowingErrorHandler
 
hashCode() - Method in class dagger.internal.ModuleAdapter
 

I

includes - Variable in class dagger.internal.ModuleAdapter
 
inject() - Method in class dagger.internal.codegen.GraphAnalysisStaticInjection
 
inject() - Method in class dagger.internal.loaders.ReflectiveStaticInjection
 
inject() - Method in class dagger.internal.StaticInjection
 
inject(T) - Method in class dagger.ObjectGraph
Injects the members of instance, including injectable members inherited from its supertypes.
INJECT_ADAPTER_SUFFIX - Static variable in class dagger.internal.loaders.GeneratedAdapters
 
injectableTypes - Variable in class dagger.internal.ModuleAdapter
 
InjectAdapterProcessor - Class in dagger.internal.codegen
Generates an implementation of Binding that injects the @Inject-annotated members of a class.
InjectAdapterProcessor() - Constructor for class dagger.internal.codegen.InjectAdapterProcessor
 
injectMembers(T) - Method in class dagger.internal.Binding
 
injectMembers(T) - Method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
injectMembers(Set<T>) - Method in class dagger.internal.SetBinding
 
injectMembers(T) - Method in interface dagger.MembersInjector
Injects dependencies into the fields and methods of instance.
injectStatics() - Method in class dagger.ObjectGraph
Injects the static fields of the classes listed in the object graph's staticInjections property.
installBindings(BindingsGroup) - Method in class dagger.internal.Linker
Adds all bindings in toInstall.
instantiate(String, ClassLoader) - Method in class dagger.internal.Loader
Instantiates a class using its default constructor and the given ClassLoader.
InvalidBindingException(String, String) - Constructor for exception dagger.internal.Binding.InvalidBindingException
 
InvalidBindingException(String, String, Throwable) - Constructor for exception dagger.internal.Binding.InvalidBindingException
 
IS_SINGLETON - Static variable in class dagger.internal.Binding
 
isAnnotated(String) - Static method in class dagger.internal.Keys
Returns true if key has a qualifier annotation.
isCycleFree() - Method in class dagger.internal.Binding
 
isEmpty() - Method in class dagger.internal.ArrayQueue
Returns true if this queue contains no elements.
isLinked() - Method in class dagger.internal.Binding
 
isPlatformType(String) - Static method in class dagger.internal.Keys
Returns true if name is the name of a platform-provided class.
isVisiting() - Method in class dagger.internal.Binding
 
iterator() - Method in class dagger.internal.ArrayQueue
Returns an iterator over the elements in this queue.

K

Keys - Class in dagger.internal
Formats strings that identify the value to be injected.

L

Lazy<T> - Interface in dagger
A handle to a lazily-computed value.
library() - Method in class dagger.internal.Binding
 
library - Variable in class dagger.internal.ModuleAdapter
 
linkAll() - Method in class dagger.internal.Linker
Links all known bindings (whether requested or installed), plus all of their transitive dependencies.
Linker - Class in dagger.internal
Links bindings to their dependencies.
Linker(Linker, Loader, Linker.ErrorHandler) - Constructor for class dagger.internal.Linker
 
Linker.ErrorHandler - Interface in dagger.internal
Handles linker errors appropriately.
linkRequested() - Method in class dagger.internal.Linker
Links all requested bindings plus their transitive dependencies.
loadClass(ClassLoader, String) - Method in class dagger.internal.Loader
Loads a class from a ClassLoader-specific cache if it's already there, or loads it from the given ClassLoader and caching it for future requests.
Loader - Class in dagger.internal
Provides a point of configuration of the basic resolving functions within Dagger, namely that of Module handling, injection binding creation, and static injection.
Loader() - Constructor for class dagger.internal.Loader
 
loadModules(Loader, Object[]) - Static method in class dagger.internal.Modules
Returns a full set of module adapters, including module adapters for included modules.

M

MembersInjector<T> - Interface in dagger
Injects dependencies into the fields and methods on instances of type T.
membersKey - Variable in class dagger.internal.Binding
The key used to inject members of 'T', or null if this binding cannot inject members.
methodName - Variable in class dagger.internal.ProvidesBinding
 
Module - Annotation Type in dagger
Annotates a class that contributes to the object graph.
MODULE_ADAPTER_SUFFIX - Static variable in class dagger.internal.loaders.GeneratedAdapters
 
ModuleAdapter<T> - Class in dagger.internal
Extracts bindings from an @Module-annotated class.
ModuleAdapter(Class<T>, String[], Class<?>[], boolean, Class<?>[], boolean, boolean) - Constructor for class dagger.internal.ModuleAdapter
 
ModuleAdapterProcessor - Class in dagger.internal.codegen
Generates an implementation of ModuleAdapter that includes a binding for each @Provides method of a target class.
ModuleAdapterProcessor() - Constructor for class dagger.internal.codegen.ModuleAdapterProcessor
 
moduleClass - Variable in class dagger.internal.ModuleAdapter
 
moduleClass - Variable in class dagger.internal.ProvidesBinding
 
Modules - Class in dagger.internal
Static helper for organizing modules.

N

newModule() - Method in class dagger.internal.ModuleAdapter
Returns a new instance of the module class created using a no-args constructor.
node(String, String...) - Method in class dagger.internal.codegen.GraphVizWriter
 
nodeDefaults(String...) - Method in class dagger.internal.codegen.GraphVizWriter
 
NOT_SINGLETON - Static variable in class dagger.internal.Binding
 
NULL - Static variable in interface dagger.internal.Linker.ErrorHandler
 

O

ObjectGraph - Class in dagger
A graph of objects linked by their dependencies.
offer(E) - Method in class dagger.internal.ArrayQueue
Inserts the specified element at the end of this queue.
overrides - Variable in class dagger.internal.ModuleAdapter
 

P

peek() - Method in class dagger.internal.ArrayQueue
Retrieves, but does not remove, the head of the queue represented by this queue, or returns null if this queue is empty.
plus(Object...) - Method in class dagger.ObjectGraph
Returns a new object graph that includes all of the objects in this graph, plus additional objects in the @Module-annotated modules.
poll() - Method in class dagger.internal.ArrayQueue
Retrieves and removes the head of the queue represented by this queue (in other words, the first element of this queue), or returns null if this queue is empty.
ProblemDetector - Class in dagger.internal
Detects problems like cyclic dependencies.
ProblemDetector() - Constructor for class dagger.internal.ProblemDetector
 
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class dagger.internal.codegen.GraphAnalysisProcessor
Perform full-graph analysis on complete modules.
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class dagger.internal.codegen.InjectAdapterProcessor
 
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class dagger.internal.codegen.ModuleAdapterProcessor
 
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class dagger.internal.codegen.ValidationProcessor
 
provideKey - Variable in class dagger.internal.Binding
The key used to provide instances of 'T', or null if this binding cannot provide instances.
Provides - Annotation Type in dagger
Annotates methods of a module to create a provider method binding.
Provides.Type - Enum in dagger
The type of binding into which the return type of the annotated method contributes.
ProvidesBinding<T> - Class in dagger.internal
A Binding<T> which delegates to a module method.
ProvidesBinding(String, boolean, String, String) - Constructor for class dagger.internal.ProvidesBinding
Creates a new ProvidesBinding with the given "provides" key, a flag as to whether this binding should be scoped, and the requiredBy object for traceability.
put(String, Binding<?>) - Method in class dagger.internal.BindingsGroup
 

R

ReflectiveAtInjectBinding<T> - Class in dagger.internal.loaders
Injects the @Inject-annotated fields and constructors of a class using reflection.
ReflectiveStaticInjection - Class in dagger.internal.loaders
Uses reflection to inject the static fields of a class.
remove() - Method in class dagger.internal.ArrayQueue
Retrieves and removes the head of the queue represented by this queue.
remove(Object) - Method in class dagger.internal.ArrayQueue
Removes a single instance of the specified element from this queue.
requestBinding(String, Object) - Method in class dagger.internal.Linker
Deprecated.
Older, generated code still using this should be re-generated.
requestBinding(String, Object, ClassLoader) - Method in class dagger.internal.Linker
Returns the binding if it exists immediately.
requestBinding(String, Object, boolean, boolean) - Method in class dagger.internal.Linker
Deprecated.
Older, generated code still using this should be re-generated.
requestBinding(String, Object, ClassLoader, boolean, boolean) - Method in class dagger.internal.Linker
Returns the binding if it exists immediately.
requiredBy - Variable in class dagger.internal.Binding
 

S

SetBinding<T> - Class in dagger.internal
A Binding<T> which contains contributors (other bindings marked with @Provides @OneOf), to which it delegates provision requests on an as-needed basis.
SetBinding(String, Object) - Constructor for class dagger.internal.SetBinding
Creates a new SetBinding with the given "provides" key, and the requiredBy object for traceability.
SetBinding(SetBinding<T>) - Constructor for class dagger.internal.SetBinding
Creates a new SetBinding with all of the contributing bindings of the provided original SetBinding.
setCycleFree(boolean) - Method in class dagger.internal.Binding
 
setDependedOn(boolean) - Method in class dagger.internal.Binding
 
setLibrary(boolean) - Method in class dagger.internal.Binding
 
setVisiting(boolean) - Method in class dagger.internal.Binding
 
size() - Method in class dagger.internal.ArrayQueue
Returns the number of elements in this queue.
size() - Method in class dagger.internal.SetBinding
 
STATIC_INJECTION_SUFFIX - Static variable in class dagger.internal.loaders.GeneratedAdapters
 
StaticInjection - Class in dagger.internal
Injects the static fields of a class.
StaticInjection() - Constructor for class dagger.internal.StaticInjection
 
staticInjections - Variable in class dagger.internal.ModuleAdapter
 

T

ThrowingErrorHandler - Class in dagger.internal
Handles errors by throwing an exception containing all the available errors.
ThrowingErrorHandler() - Constructor for class dagger.internal.ThrowingErrorHandler
 
toArray() - Method in class dagger.internal.ArrayQueue
Returns an array containing all of the elements in this queue in proper sequence (from first to last element).
toArray(T[]) - Method in class dagger.internal.ArrayQueue
Returns an array containing all of the elements in this queue in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.
toString() - Method in class dagger.internal.Binding
 
toString() - Method in class dagger.internal.BindingsGroup
 
toString() - Method in class dagger.internal.loaders.ReflectiveAtInjectBinding
 
toString() - Method in class dagger.internal.ProvidesBinding
 
toString() - Method in class dagger.internal.SetBinding
 
type - Variable in exception dagger.internal.Binding.InvalidBindingException
 

U

UNRESOLVED - Static variable in class dagger.internal.Binding
 

V

validate() - Method in class dagger.ObjectGraph
Do runtime graph problem detection.
ValidationProcessor - Class in dagger.internal.codegen
Checks for errors that are not directly related to modules and @Inject annotated elements.
ValidationProcessor() - Constructor for class dagger.internal.codegen.ValidationProcessor
 
valueOf(String) - Static method in enum dagger.Provides.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum dagger.Provides.Type
Returns an array containing the constants of this enum type, in the order they are declared.

W

write(Map<String, Binding<?>>, GraphVizWriter) - Method in class dagger.internal.codegen.GraphVisualizer
 
A B C D E F G H I K L M N O P R S T U V W 
Skip navigation links

Copyright © 2016 Square, Inc.. All rights reserved.