Package | Description |
---|---|
com.google.gwt.inject.rebind.binding | |
com.google.gwt.inject.rebind.reflect | |
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) |
protected String |
CallGwtDotCreateBinding.getExpectedTypeName() |
protected String |
RemoteServiceProxyBinding.getExpectedTypeName() |
protected String |
CallGwtDotCreateBinding.getTypeNameToCreate() |
protected String |
RemoteServiceProxyBinding.getTypeNameToCreate() |
Modifier and Type | Method and Description |
---|---|
String |
ReflectUtil.SignatureBuilder.build()
Builds the method signature with all types in source form.
|
static String |
ReflectUtil.getSourceName(Type type)
Returns a string representation of the passed type's name while ensuring
that all type names (base and parameters) are converted to source type
names.
|
static String |
ReflectUtil.getSourceName(TypeLiteral<?> typeLiteral)
Alternate toString method for TypeLiterals that fixes a JDK bug that was
replicated in Guice.
|
Modifier and Type | Method and Description |
---|---|
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. |
String |
SourceWriteUtil.createMemberInjection(TypeLiteral<?> type,
NameGenerator nameGenerator,
List<InjectorMethod> methodsOutput)
Generates all the required injector methods to inject members of the given
type, and a standard member-inject method that invokes them.
|
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.
|
String |
InjectorMethod.getMethodBody(InjectorWriteContext context)
Returns the body of the method in the given context (e.g., "return this;")
|
void |
SourceWriteUtil.writeMethod(InjectorMethod method,
com.google.gwt.user.rebind.SourceWriter writer,
InjectorWriteContext writeContext)
Writes the given method to the given source writer.
|
void |
SourceWriteUtil.writeMethods(Iterable<InjectorMethod> methods,
com.google.gwt.user.rebind.SourceWriter writer,
InjectorWriteContext writeContext)
Writes the given methods to the given source writer.
|
Copyright © 2008–2018. All rights reserved.