public interface InjectorWriteContext
Modifier and Type | Method and Description |
---|---|
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.
|
String |
callGetter(Key<?> key)
Generates a Java expression that evaluates to an injected instance of the
given key.
|
String |
callGinjectorInterfaceGetter()
Generates a Java statement that evaluates to the implementation of the
current Ginjector interface.
|
String |
callMemberInject(TypeLiteral<?> type,
String input)
Generates a Java statement (including trailing semicolon) that performs
member injection on a value of the given type.
|
String |
callMethod(String methodName,
String fragmentPackageName,
Iterable<String> parameters)
Generates a Java expression that evaluates to an invocation of the named
method on the given package fragment.
|
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.
|
String callGetter(Key<?> key)
String callChildGetter(GinjectorBindings childBindings, Key<?> key)
String callParentGetter(Key<?> key, GinjectorBindings parentBindings)
String callMemberInject(TypeLiteral<?> type, String input)
type
- the type of value to perform member injection oninput
- a Java expression that evaluates to the object that should
be member-injectedString callMethod(String methodName, String fragmentPackageName, Iterable<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>)
.
String callGinjectorInterfaceGetter()
Copyright © 2008–2018. All rights reserved.