public final class PrivateElementsImpl extends Objectimplements PrivateElements
| Constructor and Description |
|---|
PrivateElementsImpl(Object
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
acceptVisitor(ElementVisitor
Accepts an element visitor.
|
void |
addExposureBuilder(ExposureBuilder
|
void |
applyTo(Binder
Writes this module element to the given binder (optional operation).
|
List |
getElements()
Returns the configuration information in this private environment.
|
List |
getElementsMutable()
|
Set |
getExposedKeys()
Returns the unique exposed keys for these private elements.
|
Object |
getExposedSource(Key
Returns an arbitrary object containing information about the "place" where this key was exposed.
|
Injector |
getInjector()
Returns the child injector that hosts these private elements, or null if the elements haven't been used to create an injector.
|
Object |
getSource()
Returns an arbitrary object containing information about the "place" where this element was configured.
|
void |
initInjector(Injector
|
String |
toString()
|
public PrivateElementsImpl(Objectsource)
public ObjectgetSource()
Element
Tools might specially handle types they know about; StackTraceElement is a good example. Tools should simply call toString() on the source object if the type is unfamiliar.
public List<Element > getElements()
PrivateElements
public InjectorgetInjector()
PrivateElements
public void initInjector(Injectorinjector)
public Set<Key <?>> getExposedKeys()
PrivateElements
public <T> T acceptVisitor(ElementVisitor<T> visitor)
Element
acceptVisitor in interface
Element
visitor - to call back on
public void addExposureBuilder(ExposureBuilder<?> exposureBuilder)
public void applyTo(Binderbinder)
Element
public ObjectgetExposedSource(Key <?> key)
PrivateElements
Tools might specially handle types they know about; StackTraceElement is a good example. Tools should simply call toString() on the source object if the type is unfamiliar.
getExposedSource in interface
PrivateElements
key - one of the keys exposed by this module.
public StringtoString()