| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.inject.rebind.util.MethodCallUtil
public class MethodCallUtil
Utility code to create method and constructor calls.
| Constructor Summary | |
|---|---|
| MethodCallUtil() | |
| Method Summary | |
|---|---|
|  SourceSnippet | createConstructorInjection(MethodLiteral<?,java.lang.reflect.Constructor<?>> constructor,
                           NameGenerator nameGenerator,
                           java.util.List<InjectorMethod> methodsOutput)Creates a constructor injecting method and returns a string that invokes the new method. | 
|  SourceSnippet | createMethodCallWithInjection(MethodLiteral<?,?> method,
                              java.lang.String invokeeName,
                              NameGenerator nameGenerator,
                              java.util.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 | createMethodCallWithInjection(MethodLiteral<?,?> method,
                              java.lang.String invokeeName,
                              java.lang.String[] parameterNames,
                              NameGenerator nameGenerator,
                              java.util.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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MethodCallUtil()
| Method Detail | 
|---|
public SourceSnippet createConstructorInjection(MethodLiteral<?,java.lang.reflect.Constructor<?>> constructor,
                                                NameGenerator nameGenerator,
                                                java.util.List<InjectorMethod> methodsOutput)
                                         throws NoSourceNameException
constructor - constructor to callnameGenerator - NameGenerator to be used for ensuring method name uniquenessmethodsOutput - a list where all new methods created by this
     call are added
NoSourceNameException
public SourceSnippet createMethodCallWithInjection(MethodLiteral<?,?> method,
                                                   java.lang.String invokeeName,
                                                   NameGenerator nameGenerator,
                                                   java.util.List<InjectorMethod> methodsOutput)
                                            throws NoSourceNameException
method - method to call (can be constructor)invokeeName - expression that evaluates to the object on which
     the method is to be called.  If null the method will be called
     in the current scope.nameGenerator - NameGenerator to be used for ensuring method name uniquenessmethodsOutput - a list where all new methods created by this
     call are added
NoSourceNameException
public SourceSnippet createMethodCallWithInjection(MethodLiteral<?,?> method,
                                                   java.lang.String invokeeName,
                                                   java.lang.String[] parameterNames,
                                                   NameGenerator nameGenerator,
                                                   java.util.List<InjectorMethod> methodsOutput)
                                            throws NoSourceNameException
CreationException.
method - method to call (can be constructor)invokeeName - expression that evaluates to the object on which
     the method is to be called.  If null the method will be called
     in the current scope.parameterNames - array with parameter names that can replace getter
     methods (usually used to fetch injected values) in the returned
     string. The array length must match the number of method
     parameters. A null value denotes that the getter method
     should be used.nameGenerator - NameGenerator to use for ensuring method name uniquenessmethodsOutput - a list where all new methods created by this
     call are added
NoSourceNameException| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||