*
* @return The built CodeBlock
*/
protected CodeBlock getWrapParameters() {
final WrapParameterTemplatedFile wrap = new WrapParameterTemplatedFile();
return new CollectionTemplatedCodeBlock<MethodParameter>() {
@Override
public InputStream getInputStream() {
return wrap.getInputStream();
}
@Override
protected Object getValue0(final String name) {
return wrap.getValue0(name);
}
@Override
protected Collection<MethodParameter> getCollection() {
return ProxyInterceptedMethodTemplatedFile.this.getMethod().getParameters();
}
@Override
protected void prepareToWrite(final MethodParameter methodParameter) {
wrap.setParameter(methodParameter);
}
@Override
protected void writeBetweenElements(final SourceWriter writer) {
writer.print(",");