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 |
---|---|
CallConstructorBinding |
BindingFactory.getCallConstructorBinding(MethodLiteral<?,Constructor<?>> constructor) |
CallConstructorBinding |
BindingFactoryImpl.getCallConstructorBinding(MethodLiteral<?,Constructor<?>> constructor) |
Modifier and Type | Method and Description |
---|---|
static <T> MethodLiteral<T,Constructor<?>> |
MethodLiteral.get(Constructor<?> constructor,
TypeLiteral<T> declaringType)
Creates a new
MethodLiteral based on the passed constructor and
its declaring type. |
static <T> MethodLiteral<T,Method> |
MethodLiteral.get(Method method,
TypeLiteral<T> declaringType)
Creates a new
MethodLiteral based on the passed method and its
declaring type. |
Modifier and Type | Method and Description |
---|---|
static int |
ReflectUtil.nonAbstractModifiers(MethodLiteral<?,Method> method)
If present, strips the "abstract" modifier from the passed method's
modifiers.
|
static ReflectUtil.SignatureBuilder |
ReflectUtil.signatureBuilder(MethodLiteral<?,?> method)
Builds the signature of a method with all types in source form.
|
Modifier and Type | Method and Description |
---|---|
Collection<MethodLiteral<?,Method>> |
MemberCollector.getMethods(TypeLiteral<?> typeLiteral)
Returns all methods in the provided type, including those of the type's
(recursive) super classes and interfaces.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MemberCollector.MethodFilter.accept(MethodLiteral<?,Method> method) |
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 |
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.
|
Collection<Dependency> |
GuiceUtil.getDependencies(Key<?> typeKey,
MethodLiteral<?,?> method)
Collects and returns all keys required to inject the given method.
|
Key<?> |
GuiceUtil.getKey(MethodLiteral<?,?> method)
Retrieves a key based on the passed
Ginjector method. |
boolean |
GuiceUtil.isMemberInject(MethodLiteral<?,?> method)
Returns true if the passed
Ginjector method is used for member
injection (i.e. |
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2008–2018. All rights reserved.