/external/guice/core/src/com/google/inject/spi/ |
HasDependencies.java | 32 * known statically, a dependency for the {@link com.google.inject.Injector Injector} will be 37 Set<Dependency<?>> getDependencies();
|
Dependency.java | 33 * <p>Use {@link #get} to build a freestanding dependency, or {@link InjectionPoint} to build one 40 public final class Dependency<T> { 46 Dependency(InjectionPoint injectionPoint, Key<T> key, boolean nullable, int parameterIndex) { 54 * Returns a new dependency that is not attached to an injection point. The returned dependency is 57 public static <T> Dependency<T> get(Key<T> key) { 58 return new Dependency<T>(null, MoreTypes.canonicalizeKey(key), true, -1); 64 public static Set<Dependency<?>> forInjectionPoints(Set<InjectionPoint> injectionPoints) { 65 List<Dependency<?>> dependencies = Lists.newArrayList(); 73 * Returns the key to the binding that satisfies this dependency 109 Dependency dependency = (Dependency) o; local [all...] |
DependencyAndSource.java | 27 * A combination of a {@link Dependency} and the {@link Binding#getSource() 28 * source} where the dependency was bound. 34 private final Dependency<?> dependency; field in class:DependencyAndSource 37 public DependencyAndSource(Dependency<?> dependency, Object source) { 38 this.dependency = dependency; 43 * Returns the Dependency, if one exists. For anything that can be referenced 44 * by {@link Injector#getBinding}, a dependency exists. A dependency will no [all...] |
ProviderLookup.java | 42 private final Dependency<T> dependency; field in class:ProviderLookup 46 this(source, Dependency.get(checkNotNull(key, "key"))); 50 public ProviderLookup(Object source, Dependency<T> dependency) { 52 this.dependency = checkNotNull(dependency, "dependency"); 60 return dependency.getKey(); 64 public Dependency<T> getDependency() [all...] |
ConvertedConstantBinding.java | 54 Set<Dependency<?>> getDependencies();
|
/external/guice/core/src/com/google/inject/internal/ |
InternalFactory.java | 19 import com.google.inject.spi.Dependency; 36 T get(Errors errors, InternalContext context, Dependency<?> dependency, boolean linked)
|
InternalContext.java | 24 import com.google.inject.spi.Dependency; 44 private Dependency<?> dependency; field in class:InternalContext 68 public Dependency<?> getDependency() { 69 return dependency; 72 /** Sets the new current dependency & adds it to the state. */ 73 public Dependency<?> pushDependency(Dependency<?> dependency, Object source) { 74 Dependency<?> previous = this.dependency 101 Dependency<?> dependency; local [all...] |
ConstantFactory.java | 20 import com.google.inject.spi.Dependency; 33 public T get(Errors errors, InternalContext context, Dependency dependency, boolean linked)
|
ExposedBindingImpl.java | 25 import com.google.inject.spi.Dependency; 45 public Set<Dependency<?>> getDependencies() { 46 return ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Injector.class)));
|
SingleParameterInjector.java | 19 import com.google.inject.spi.Dependency; 27 private final Dependency<T> dependency; field in class:SingleParameterInjector 30 SingleParameterInjector(Dependency<T> dependency, BindingImpl<? extends T> binding) { 31 this.dependency = dependency; 36 Dependency previous = context.pushDependency(dependency, binding.getSource()); 38 return binding.getInternalFactory().get(errors.withSource(dependency), context, dependency, false) [all...] |
InternalFactoryToProviderAdapter.java | 22 import com.google.inject.spi.Dependency; 37 public T get(Errors errors, InternalContext context, Dependency<?> dependency, boolean linked) 41 return errors.checkForNull(provider.get(), source, dependency);
|
ProviderToInternalFactoryAdapter.java | 21 import com.google.inject.spi.Dependency; 42 Dependency dependency = context.getDependency(); 46 return internalFactory.get(errors, context, dependency, true);
|
InternalFactoryToInitializableAdapter.java | 21 import com.google.inject.spi.Dependency; 43 public T get(Errors errors, InternalContext context, Dependency<?> dependency, boolean linked) 45 return circularGet(initializable.get(errors), errors, context, dependency, 51 Dependency<?> dependency, ConstructionContext<T> constructionContext) throws ErrorsException { 53 return super.provision(provider, errors, dependency, constructionContext);
|
ProviderInternalFactory.java | 23 import com.google.inject.spi.Dependency; 42 InternalContext context, final Dependency<?> dependency, 49 Class<?> expectedType = dependency.getKey().getTypeLiteral().getRawType(); 61 return provision(provider, errors, dependency, constructionContext); 65 return provision(provider, errors, dependency, constructionContext); 79 protected T provision(Provider<? extends T> provider, Errors errors, Dependency<?> dependency, 81 T t = errors.checkForNull(provider.get(), source, dependency);
|
SingleFieldInjector.java | 20 import com.google.inject.spi.Dependency; 31 final Dependency<?> dependency; field in class:SingleFieldInjector 38 this.dependency = injectionPoint.getDependencies().get(0); 42 binding = injector.getBindingOrThrow(dependency.getKey(), errors, JitLimitation.NO_JIT); 50 errors = errors.withSource(dependency); 52 Dependency previous = context.pushDependency(dependency, binding.getSource()); 54 Object value = binding.getInternalFactory().get(errors, context, dependency, false);
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
AssistedMethod.java | 20 import com.google.inject.spi.Dependency; 55 Set<Dependency<?>> getDependencies();
|
/external/guice/core/test/com/google/inject/spi/ |
HasDependenciesTest.java | 48 assertEquals(ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class))), 60 Dependency<?> onlyDependency = Iterables.getOnlyElement(binding.getDependencies()); 72 Dependency<?> onlyDependency = Iterables.getOnlyElement(binding.getDependencies()); 89 public Set<Dependency<?>> getDependencies() { 90 return ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class))); 96 public Set<Dependency<?>> getDependencies() { 97 return ImmutableSet.<Dependency<?>>of(Dependency.get(Key.get(Integer.class))) [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
Dependency.java | 16 public class Dependency { 29 public Dependency(Expr dependant, Expr other) { 37 public Dependency(Expr dependant, Expr other, Expr condition, boolean expectedOutput) {
|
TernaryExpr.java | 83 protected List<Dependency> constructDependencies() { 84 List<Dependency> deps = new ArrayList<Dependency>(); 86 final Dependency pred = new Dependency(this, predExpr); 92 deps.add(new Dependency(this, ifTrueExpr, predExpr, true)); 96 deps.add(new Dependency(this, ifFalseExpr, predExpr, false));
|
ListenerExpr.java | 71 protected List<Dependency> constructDependencies() { 72 final List<Dependency> dependencies = new ArrayList<Dependency>(); 73 Dependency dependency = new Dependency(this, getChild()); local 74 dependency.setMandatory(true); 75 dependencies.add(dependency);
|
BuiltInVariableExpr.java | 47 protected List<Dependency> constructDependencies() { 48 return new ArrayList<Dependency>();
|
SymbolExpr.java | 61 protected List<Dependency> constructDependencies() { 62 return new ArrayList<Dependency>();
|
CastExpr.java | 40 protected List<Dependency> constructDependencies() { 41 final List<Dependency> dependencies = constructDynamicChildrenDependencies(); 42 for (Dependency dependency : dependencies) { 43 dependency.setMandatory(true);
|
/external/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/ |
Dependency.java | 25 public class Dependency { 31 public Dependency (String name, String[] gwtInherits, String[]... subDependencies) { 47 incompat.add("Dependency " + name + " is not compatible with sub module " + type.getName().toUpperCase()); 62 if (obj instanceof Dependency) { 63 if (((Dependency)obj).getName().equals(getName())) {
|
/external/guice/core/src/com/google/inject/util/ |
Providers.java | 27 import com.google.inject.spi.Dependency; 102 Set<Dependency<?>> mutableDeps = Sets.newHashSet(); 106 final Set<Dependency<?>> dependencies = ImmutableSet.copyOf(mutableDeps); 138 private final Set<Dependency<?>> dependencies; 140 private GuicifiedProviderWithDependencies(Set<Dependency<?>> dependencies, 152 public Set<Dependency<?>> getDependencies() {
|