|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.util.MethodInvocationBuilder
public final class MethodInvocationBuilder
A utility class for building part of a method body to invoke a method. Analyzes the method and matches parameter types to ParameterBuilders.
| Constructor Summary | |
|---|---|
MethodInvocationBuilder()
|
|
| Method Summary | |
|---|---|
void |
addParameter(String parameterType,
ParameterBuilder builder)
Maps a parameter type to a ParameterBuilder. |
void |
addParameter(String parameterType,
String expression)
Maps a parameter type to a literal string to be used for the parameter expression. |
String |
buildMethodInvocation(TransformMethodSignature signature,
ClassTransformation transformation)
Builds the method invocation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodInvocationBuilder()
| Method Detail |
|---|
public void addParameter(String parameterType,
ParameterBuilder builder)
ParameterBuilder.
public void addParameter(String parameterType,
String expression)
StringParameterBuilder
public String buildMethodInvocation(TransformMethodSignature signature,
ClassTransformation transformation)
ParameterBuilder to provide the expression. Supplies a default value (usually null) for any parameters that do
not have parameter builders.
signature - of the method to invoketransformation -
TransformUtils.getDefaultValue(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||