Skip to content
Snippets Groups Projects
Commit 1c0a8bf8 authored by Alberto Debiasi's avatar Alberto Debiasi
Browse files

Add getParameterType for method

Change-Id: Ia948ffc20264764c79e314bbe10449565921e831
parent 0ec0702c
No related branches found
No related tags found
No related merge requests found
......@@ -4043,4 +4043,19 @@ public class EntityUtil {
return parametersNames;
}
public Object getParameterType(String paramName, String methodName, Class retrieveBlockType) {
Operation operation = getOperation(methodName, retrieveBlockType);
if ((operation != null)) {
if (operation.inputParameters() != null) {
Parameter par = operation.getOwnedParameter(paramName, null);
if (par != null) {
// logger.debug("getParameterType par: " + par);
return par.getType();
}
}
}
return null;
}
}
\ No newline at end of file
......@@ -1127,4 +1127,9 @@ return EntityUtil.getInstance().isCallEventByOperationName(idName,currBlock);
public Object getCallEventOperation(Object callEvent) throws Exception {
return EntityUtil.getInstance().getCallEventOperation((CallEvent)callEvent);
}
@Override
public Object getParameterType(String paramName, String methodName, Object retrieveBlockType) {
return EntityUtil.getInstance().getParameterType(paramName, methodName, (Class)retrieveBlockType);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment