public final class MethodInvocationBuilder extends Object
Constructor and Description |
---|
MethodInvocationBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
public MethodInvocationBuilder()
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)
Copyright © 2003-2012 The Apache Software Foundation.