* parameters from the interceptor chain.
*
* @return
*/
protected CodeBlock getUnwrapParameters() {
final UnwrapParameterTemplatedFile unwrap = new UnwrapParameterTemplatedFile();
return new CollectionTemplatedCodeBlock<MethodParameter>() {
@Override
public InputStream getInputStream() {
return unwrap.getInputStream();
}
@Override
protected Object getValue0(final String name) {
return unwrap.getValue0(name);
}
@Override
protected Collection<MethodParameter> getCollection() {
return InvokeTargetMethodTemplatedFile.this.getMethod().getParameters();
}
@Override
protected void prepareToWrite(MethodParameter methodParameter) {
unwrap.setParameter( methodParameter );
}
@Override
protected void writeBetweenElements(SourceWriter writer) {
writer.print(",");