Tabnine Logo
Provides.type
Code IndexAdd Tabnine to your IDE (free)

How to use
type
method
in
dagger.Provides

Best Java code snippets using dagger.Provides.type (Showing top 6 results out of 315)

origin: square/dagger

 if ((provides.type() == SET || provides.type() == SET_VALUES)
   && previous instanceof SetBinding) {
switch (provides.type()) {
 case UNIQUE:
  if (injectsProvisionKeys.contains(binding.provideKey)) {
  throw new AssertionError("Unknown @Provides type " + provides.type());
origin: square/dagger

switch (provides.type()) {
 case UNIQUE:
  handleBindings(bindings, module, method, key, library);
  break;
 default:
  throw new AssertionError("Unknown @Provides type " + provides.type());
origin: square/dagger

switch (provides.type()) {
 case UNIQUE: {
  getBindings.addStatement("bindings.contributeProvidesBinding($S, new $T(module))",
  throw new AssertionError("Unknown @Provides type " + provides.type());
origin: com.squareup/dagger

@Override public void getBindings(Map<String, Binding<?>> bindings) {
 for (Class<?> c = moduleClass; c != Object.class; c = c.getSuperclass()) {
  for (Method method : c.getDeclaredMethods()) {
   Provides provides = method.getAnnotation(Provides.class);
   if (provides != null) {
    String key = Keys.get(method.getGenericReturnType(), method.getAnnotations(), method);
    switch (provides.type()) {
     case UNIQUE:
      handleBindings(bindings, method, key);
      break;
     case SET:
      handleSetBindings(bindings, method, key);
      break;
     default:
      throw new AssertionError("Unknown @Provides type " + provides.type());
    }
   }
  }
 }
}
origin: com.squareup/dagger-compiler

String key = GeneratorKeys.get(providerMethod);
ProviderMethodBinding binding = new ProviderMethodBinding(key, providerMethod);
switch (provides.type()) {
 case UNIQUE:
  ProviderMethodBinding clobbered = (ProviderMethodBinding) addTo.put(key, binding);
  throw new AssertionError("Unknown @Provides type " + provides.type());
origin: com.squareup/dagger-compiler

for (ExecutableElement providerMethod : providerMethods) {
 Provides provides = providerMethod.getAnnotation(Provides.class);
 switch (provides.type()) {
  case UNIQUE: {
   String key = GeneratorKeys.get(providerMethod);
   throw new AssertionError("Unknown @Provides type " + provides.type());
daggerProvidestype

Popular methods of Provides

  • <init>

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now