Search in sources :

Example 6 with InjectorMethod

use of com.google.gwt.inject.rebind.util.InjectorMethod in project google-gin by gwtplus.

the class GinjectorBindingsOutputter method outputMethods.

/**
 * Outputs some methods to the fragments they belong to.
 */
void outputMethods(Iterable<InjectorMethod> methods, FragmentMap fragments) {
    for (InjectorMethod method : methods) {
        FragmentPackageName fragmentPackageName = fragmentPackageNameFactory.create(method.getPackageName());
        GinjectorFragmentOutputter fragment = fragments.get(fragmentPackageName);
        fragment.outputMethod(method);
    }
}
Also used : InjectorMethod(com.google.gwt.inject.rebind.util.InjectorMethod)

Aggregations

InjectorMethod (com.google.gwt.inject.rebind.util.InjectorMethod)6 ArrayList (java.util.ArrayList)4 NameGenerator (com.google.gwt.inject.rebind.util.NameGenerator)3 GinjectorBindings (com.google.gwt.inject.rebind.GinjectorBindings)2 GinjectorNameGenerator (com.google.gwt.inject.rebind.GinjectorNameGenerator)2 FieldLiteral (com.google.gwt.inject.rebind.reflect.FieldLiteral)2 NoSourceNameException (com.google.gwt.inject.rebind.reflect.NoSourceNameException)2 SourceWriteUtil (com.google.gwt.inject.rebind.util.SourceWriteUtil)2 Method (java.lang.reflect.Method)2 GeneratorContext (com.google.gwt.core.ext.GeneratorContext)1 Binding (com.google.gwt.inject.rebind.binding.Binding)1 GinjectorBinding (com.google.gwt.inject.rebind.binding.GinjectorBinding)1 SubPackageClass (com.google.gwt.inject.rebind.output.subpackage.SubPackageClass)1 MethodLiteral (com.google.gwt.inject.rebind.reflect.MethodLiteral)1 InjectorWriteContext (com.google.gwt.inject.rebind.util.InjectorWriteContext)1 MethodCallUtil (com.google.gwt.inject.rebind.util.MethodCallUtil)1 SourceSnippetBuilder (com.google.gwt.inject.rebind.util.SourceSnippetBuilder)1 Key (com.google.inject.Key)1 InjectionPoint (com.google.inject.spi.InjectionPoint)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1