Lines Matching defs:Elements
64 * Exposes elements of a module so they can be inspected, validated or {@link
70 public final class Elements {
84 * Records the elements executed by {@code modules}.
91 * Records the elements executed by {@code modules}.
98 * Records the elements executed by {@code modules}.
105 * Records the elements executed by {@code modules}.
116 // Free the memory consumed by the stack trace elements cache
118 return Collections.unmodifiableList(binder.elements);
122 private final Iterable<? extends Element> elements;
124 ElementsAsModule(Iterable<? extends Element> elements) {
125 this.elements = elements;
130 for (Element element : elements) {
137 * Returns the module composed of {@code elements}.
139 public static Module getModule(final Iterable<? extends Element> elements) {
140 return new ElementsAsModule(elements);
163 private final List<Element> elements;
181 this.elements = Lists.newArrayList();
184 Elements.class, RecordingBinder.class, AbstractModule.class,
198 this.elements = prototype.elements;
213 this.elements = privateElements.getElementsMutable();
228 elements.add(new InterceptorBinding(
235 elements.add(new ScopeBinding(getElementSource(), annotationType, scope));
246 elements.add(new InjectionRequest<T>(getElementSource(), MoreTypes.canonicalizeForKey(type),
254 elements.add(element);
263 elements.add(new TypeListenerBinding(getElementSource(), listener, typeMatcher));
268 elements.add(new ProvisionListenerBinding(getElementSource(), bindingMatcher, listeners));
273 elements.add(new StaticInjectionRequest(getElementSource(), type));
299 elements.addAll(messages);
344 elements.addAll(messages);
362 elements.add(new Message(getElementSource(), Errors.format(message, arguments)));
367 elements.add(new Message(ImmutableList.of((Object) getElementSource()), message, t));
371 elements.add(message);
376 new BindingBuilder<T>(this, elements, getElementSource(), MoreTypes.canonicalizeKey(key));
389 return new ConstantBindingBuilderImpl<Void>(this, elements, getElementSource());
398 elements.add(element);
408 elements.add(new TypeConverterBinding(getElementSource(), typeMatcher, converter));
430 elements.add(privateElements);
436 elements
441 elements.add(new RequireExplicitBindingsOption(getElementSource()));
446 elements.add(new RequireAtInjectOnConstructorsOption(getElementSource()));
451 elements.add(new RequireExactBindingAnnotationsOption(getElementSource()));
457 elements.add(new ModuleAnnotatedMethodScannerBinding(getElementSource(), scanner));
545 * also removes the last two elements in order to make {@link #install(Module)} the last call