public interface InjectorWriteContext
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
callChildGetter(GinjectorBindings childBindings,
Key<?> key)
Generates a Java expression that evaluates to an injected instance of the
given key, as produced by the given child.
|
java.lang.String |
callGetter(Key<?> key)
Generates a Java expression that evaluates to an injected instance of the
given key.
|
java.lang.String |
callGinjectorInterfaceGetter()
Generates a Java statement that evaluates to the implementation of the
current Ginjector interface.
|
java.lang.String |
callMemberInject(TypeLiteral<?> type,
java.lang.String input)
Generates a Java statement (including trailing semicolon) that performs
member injection on a value of the given type.
|
java.lang.String |
callMethod(java.lang.String methodName,
java.lang.String fragmentPackageName,
java.lang.Iterable<java.lang.String> parameters)
Generates a Java expression that evaluates to an invocation of the named
method on the given package fragment.
|
java.lang.String |
callParentGetter(Key<?> key,
GinjectorBindings parentBindings)
Generates a Java expression that evaluates to an injected instance of the
given key, as produced by the given parent injector.
|
java.lang.String callGetter(Key<?> key)
java.lang.String callChildGetter(GinjectorBindings childBindings, Key<?> key)
java.lang.String callParentGetter(Key<?> key, GinjectorBindings parentBindings)
java.lang.String callMemberInject(TypeLiteral<?> type, java.lang.String input)
type - the type of value to perform member injection oninput - a Java expression that evaluates to the object that should
be member-injectedjava.lang.String callMethod(java.lang.String methodName,
java.lang.String fragmentPackageName,
java.lang.Iterable<java.lang.String> parameters)
Used when generating an intermediate invoker method; see
MethodCallUtil.createMethodCallWithInjection(com.google.gwt.inject.rebind.reflect.MethodLiteral<?, ?>, java.lang.String, com.google.gwt.inject.rebind.util.NameGenerator, java.util.List<com.google.gwt.inject.rebind.util.InjectorMethod>).
java.lang.String callGinjectorInterfaceGetter()