Top Description Inners Fields Constructors Methods
com.google.inject.spi

public final Class Elements

extends Object
Class Inheritance
Static Imports
com.google.common.base.Preconditions.checkArgument, .Preconditions.checkNotNull, com.google.inject.internal.InternalFlags.getIncludeStackTraceOption

Exposes elements of a module so they can be inspected, validated or rewritten.
Author
[email protected] (Jesse Wilson)
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final BindingTargetVisitor<Object, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<Element>
getElements(Module... modules)

Records the elements executed by modules.

public static List<Element>
getElements(Stage stage, Module... modules)

Records the elements executed by modules.

public static List<Element>
getElements(Iterable<? extends Module> modules)

Records the elements executed by modules.

public static List<Element>
getElements(Stage stage, Iterable<? extends Module> modules)

Records the elements executed by modules.

pack-priv static <T> BindingTargetVisitor<T, T>
public static Module
getModule(final Iterable<? extends Element> elements)

Returns the module composed of elements.

public static Binder
withTrustedSource(GuiceInternal guiceInternal, Binder binder, Object source)

Internal version of Binder.withSource for establishing a trusted ElementSource chain for source-restricting bindings that are re-written using Element#applyTo.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait