/external/guice/core/test/com/google/inject/spi/ |
D | HasDependenciesTest.java | 44 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies() 60 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithoutDependencies()
|
D | ElementsTest.java | 167 assertTrue(command instanceof InstanceBinding); in testBindConstantAnnotations() 176 assertTrue(command instanceof InstanceBinding); in testBindConstantAnnotations() 205 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 214 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 223 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 232 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 241 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 250 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 259 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() 268 assertTrue(command instanceof InstanceBinding); in testBindConstantTypes() [all …]
|
D | SpiBindingsTest.java | 62 assertTrue(binding instanceof InstanceBinding); in testBindConstant() 80 assertTrue(binding instanceof InstanceBinding); in testToInstanceBinding() 86 public Void visit(InstanceBinding<? extends T> binding) { in testToInstanceBinding() 237 assertTrue(binding instanceof InstanceBinding); in testConstantBinding() 243 public Void visit(InstanceBinding<? extends T> binding) { in testConstantBinding()
|
/external/guice/core/src/com/google/inject/internal/ |
D | InstanceBindingImpl.java | 28 import com.google.inject.spi.InstanceBinding; 31 final class InstanceBindingImpl<T> extends BindingImpl<T> implements InstanceBinding<T> { 95 return MoreObjects.toStringHelper(InstanceBinding.class) in toString()
|
D | BindingImpl.java | 25 import com.google.inject.spi.InstanceBinding; 94 return this instanceof InstanceBinding; in isConstant()
|
D | AbstractBindingBuilder.java | 25 import com.google.inject.spi.InstanceBinding; 122 if (binding instanceof InstanceBinding) { in checkNotScoped()
|
D | Indexer.java | 30 import com.google.inject.spi.InstanceBinding; 132 public Indexer.IndexedBinding visit(InstanceBinding<? extends Object> binding) { in visit()
|
D | BindingProcessor.java | 27 import com.google.inject.spi.InstanceBinding; 96 public Boolean visit(InstanceBinding<? extends T> binding) { in visit()
|
D | InjectorImpl.java | 47 import com.google.inject.spi.InstanceBinding; 451 String stringValue = ((InstanceBinding<String>) stringBinding).getInstance();
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
D | TransitiveDependencyVisitor.java | 28 import com.google.inject.spi.InstanceBinding; 67 public Collection<Key<?>> visit(InstanceBinding<?> binding) { in visit()
|
D | DefaultNodeCreator.java | 27 import com.google.inject.spi.InstanceBinding; 115 public Collection<Node> visit(InstanceBinding<?> binding) { in visit()
|
D | DefaultEdgeCreator.java | 27 import com.google.inject.spi.InstanceBinding; 105 public Collection<Edge> visit(InstanceBinding<?> binding) { in visit()
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | TransitiveDependencyVisitorTest.java | 33 import com.google.inject.spi.InstanceBinding; 75 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance() 83 Collection<Key<?>> dependencies = visitor.visit((InstanceBinding<?>) binding); in testVisitInstance_instanceHasDependencies()
|
/external/guice/core/src/com/google/inject/spi/ |
D | InstanceBinding.java | 28 public interface InstanceBinding<T> extends Binding<T>, HasDependencies { interface
|
D | BindingTargetVisitor.java | 32 V visit(InstanceBinding<? extends T> binding); in visit()
|
D | DefaultBindingTargetVisitor.java | 38 public V visit(InstanceBinding<? extends T> instanceBinding) { in visit()
|
D | Elements.java | 74 public Object visit(InstanceBinding<?> binding) {
|
/external/guice/core/test/com/google/inject/internal/ |
D | MapBinderTest.java | 59 import com.google.inject.spi.InstanceBinding; 939 if (binding instanceof InstanceBinding) { in recurseForDependencies() 940 elements.add((String) ((InstanceBinding<?>) binding).getInstance()); in recurseForDependencies() 1325 assertEquals("a", ((InstanceBinding<String>) a).getInstance()); in testTwoMapBindersAreDistinct() 1326 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testTwoMapBindersAreDistinct() 1385 assertEquals("valueOne", ((InstanceBinding) firstBinding).getInstance()); in testGetEntries() 1390 assertEquals("valueTwo", ((InstanceBinding) secondBinding).getInstance()); in testGetEntries() 1419 assertEquals("a1", ((InstanceBinding) firstBinding).getInstance()); in testGetEntriesWithDuplicateKeys() 1424 assertEquals("a2", ((InstanceBinding) secondBinding).getInstance()); in testGetEntriesWithDuplicateKeys() 1452 assertEquals("a", ((InstanceBinding) firstBinding).getInstance()); in testGetEntriesWithDuplicateValues() [all …]
|
D | MultibinderTest.java | 62 import com.google.inject.spi.InstanceBinding; 717 InstanceBinding<?> instanceBinding = null; in testMultibinderDependenciesInToolStage() 728 if (b instanceof InstanceBinding) { in testMultibinderDependenciesInToolStage() 736 instanceBinding = (InstanceBinding) b; in testMultibinderDependenciesInToolStage() 1171 InstanceBinding<?> binding = in testBindingKeysFixedOnReturnFromGetElements() 1172 Iterables.getOnlyElement(Iterables.filter(Elements.getElements(ab), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements() 1375 .filter(Predicates.instanceOf(InstanceBinding.class)) in testSetAndMapValueAreDistinctInSpi() 1381 assertEquals("A", ((InstanceBinding<String>) a).getInstance()); in testSetAndMapValueAreDistinctInSpi() 1382 assertEquals("b", ((InstanceBinding<String>) b).getInstance()); in testSetAndMapValueAreDistinctInSpi() 1383 assertEquals("C", ((InstanceBinding<String>) c).getInstance()); in testSetAndMapValueAreDistinctInSpi()
|
D | OptionalBinderTest.java | 53 import com.google.inject.spi.InstanceBinding; 1099 if (binding instanceof InstanceBinding) { in recurseForDependencies() 1100 elements.add((String) ((InstanceBinding) binding).getInstance()); in recurseForDependencies() 1368 InstanceBinding<?> binding = in testBindingKeysFixedOnReturnFromGetElements() 1369 Iterables.getOnlyElement(Iterables.filter(Elements.getElements(m), InstanceBinding.class)); in testBindingKeysFixedOnReturnFromGetElements()
|
D | SpiUtils.java | 71 import com.google.inject.spi.InstanceBinding; 1214 if (item instanceof InstanceBinding in matches() 1215 && ((InstanceBinding) item).getInstance().equals(result.instance)) { in matches()
|
/external/guice/core/test/com/google/inject/ |
D | ProvisionListenerTest.java | 32 import com.google.inject.spi.InstanceBinding; 583 if (provision.getBinding() instanceof InstanceBinding) { in onProvision()
|