/**
* Returns the task definition for this task
*/
public TaskDef getTaskDefinition() {
TaskDef def = new TaskDef();
//construtor
if (hasConstructor()) {
ParameterDef [] params = constructorDef.getParameterDefs();
for(int i=0; i<params.length; i++)
def.addInput(params[i]);
}
//properties
if (hasPropertyBinding()) {
ParameterDef [] inputs = propertyDef.listInputDefinitions();
for (int i=0; i<inputs.length; i++)
def.addInput(inputs[i]);
ParameterDef [] outputs = propertyDef.listOutputDefinitions();
for (int i=0; i<outputs.length; i++)
def.addOutput(outputs[i]);
}
//method
ParameterDef [] params = targetMethodDef.getParameterDefs();
for(int i=0; i<params.length; i++)
def.addInput(params[i]);
ParameterDef returnType = targetMethodDef.getReturnType();
if (returnType != null)
def.addOutput(returnType);
return def;
}