Package com.google.inject.spi
Class Elements
- java.lang.Object
-
- com.google.inject.spi.Elements
-
public final class Elements extends java.lang.ObjectExposes elements of a module so they can be inspected, validated orrewritten.- Since:
- 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classElements.ElementsAsModuleprivate static classElements.ModuleInfoprivate static classElements.RecordingBinder
-
Field Summary
Fields Modifier and Type Field Description private static BindingTargetVisitor<java.lang.Object,java.lang.Object>GET_INSTANCE_VISITOR
-
Constructor Summary
Constructors Constructor Description Elements()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<Element>getElements(Module... modules)Records the elements executed bymodules.static java.util.List<Element>getElements(Stage stage, Module... modules)Records the elements executed bymodules.static java.util.List<Element>getElements(Stage stage, java.lang.Iterable<? extends Module> modules)Records the elements executed bymodules.static java.util.List<Element>getElements(java.lang.Iterable<? extends Module> modules)Records the elements executed bymodules.(package private) static <T> BindingTargetVisitor<T,T>getInstanceVisitor()static ModulegetModule(java.lang.Iterable<? extends Element> elements)Returns the module composed ofelements.
-
-
-
Field Detail
-
GET_INSTANCE_VISITOR
private static final BindingTargetVisitor<java.lang.Object,java.lang.Object> GET_INSTANCE_VISITOR
-
-
Method Detail
-
getElements
public static java.util.List<Element> getElements(Module... modules)
Records the elements executed bymodules.
-
getElements
public static java.util.List<Element> getElements(Stage stage, Module... modules)
Records the elements executed bymodules.
-
getElements
public static java.util.List<Element> getElements(java.lang.Iterable<? extends Module> modules)
Records the elements executed bymodules.
-
getElements
public static java.util.List<Element> getElements(Stage stage, java.lang.Iterable<? extends Module> modules)
Records the elements executed bymodules.
-
getModule
public static Module getModule(java.lang.Iterable<? extends Element> elements)
Returns the module composed ofelements.
-
getInstanceVisitor
static <T> BindingTargetVisitor<T,T> getInstanceVisitor()
-
-