Package | Description |
---|---|
com.google.gwt.inject.rebind.binding | |
com.google.gwt.inject.rebind.util |
Modifier and Type | Method and Description |
---|---|
protected SourceSnippet |
CallConstructorBinding.getCreationStatement(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
protected SourceSnippet |
CallGwtDotCreateBinding.getCreationStatement(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
Binding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Gets one or more fully formed Java statements that create the bound value
and store it in a new local variable named
result . |
SourceSnippet |
ParentBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
ExposedChildBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
BindProviderBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
ProviderMethodBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
AsyncProviderBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
BindClassBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
FactoryBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
GinjectorBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
ImplicitProviderBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
SourceSnippet |
BindConstantBinding.getCreationStatements(NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput) |
Modifier and Type | Method and Description |
---|---|
SourceSnippet |
SourceSnippetBuilder.build() |
static SourceSnippet |
SourceSnippets.callChildGetter(GinjectorBindings childBindings,
Key<?> key)
Creates a snippet that evaluates to an injected instance of the given key,
as produced by the given child.
|
static SourceSnippet |
SourceSnippets.callGetter(Key<?> key)
Creates a snippet that evaluates to an injected instance of the given key
in the current
GinjectorBindings . |
static SourceSnippet |
SourceSnippets.callGinjectorInterfaceGetter()
Creates a snippet that evaluates to the implementation of the current
Ginjector interface.
|
static SourceSnippet |
SourceSnippets.callMemberInject(TypeLiteral<?> type,
String input)
Creates a snippet (including a trailing semicolon) that performs member
injection on a value of the given type.
|
static SourceSnippet |
SourceSnippets.callMethod(String methodName,
String fragmentPackageName,
Iterable<String> parameters)
Creates a snippet that evaluates to an invocation of the named method on
the given package fragment.
|
static SourceSnippet |
SourceSnippets.callParentGetter(Key<?> key,
GinjectorBindings parentBindings)
Creates a snippet that evaluates to an injected instance of the given key,
as produced by the given parent injector.
|
SourceSnippet |
MethodCallUtil.createConstructorInjection(MethodLiteral<?,Constructor<?>> constructor,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Creates a constructor injecting method and returns a string that invokes
the new method.
|
SourceSnippet |
SourceWriteUtil.createFieldInjection(FieldLiteral<?> field,
String injecteeName,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Creates a field injecting method and returns a string that invokes the
written method.
|
SourceSnippet |
SourceWriteUtil.createFieldInjections(Iterable<FieldLiteral<?>> fields,
String injecteeName,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Appends a field injecting method for each passed field to the
sourceWriter and returns a string that invokes all written
methods. |
SourceSnippet |
MethodCallUtil.createMethodCallWithInjection(MethodLiteral<?,?> method,
String invokeeName,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Creates a method that calls the passed method, injecting its parameters
using getters, and returns a string that invokes the new method.
|
SourceSnippet |
MethodCallUtil.createMethodCallWithInjection(MethodLiteral<?,?> method,
String invokeeName,
String[] parameterNames,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Creates a method that calls the passed method, injecting its parameters
using getters as necessary, and returns a string that invokes the new
method.
|
SourceSnippet |
SourceWriteUtil.createMethodInjections(Iterable<? extends MethodLiteral<?,?>> methods,
String injecteeName,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Creates a method injecting method and returns a string that invokes the new
method.
|
static SourceSnippet |
SourceSnippets.forText(String text)
Creates a snippet that generates a constant text string.
|
Modifier and Type | Method and Description |
---|---|
SourceSnippetBuilder |
SourceSnippetBuilder.append(SourceSnippet snippet) |
static InjectorMethod |
SourceSnippets.asMethod(boolean isNative,
String signature,
String pkg,
SourceSnippet body)
Creates an
InjectorMethod using the given SourceSnippet as
its body. |
Copyright © 2008–2018. All rights reserved.