for (String method : methods) {
List<String> methPrmTypes = intDecl.getMethodParamTypes(method);
- for (String paramType : methPrmTypes) {
+ List<String> methParams = intDecl.getMethodParams(method);
+ for (int i = 0; i < methPrmTypes.size(); i++) {
- String simpleType = getSimpleType(paramType);
+ String simpleType = getSimpleType(methPrmTypes.get(i));
+ String param = methParams.get(i);
if (getParamCategory(simpleType) == ParamCategory.NONPRIMITIVES) {
includeClasses.add(getNonPrimitiveCplusClass(simpleType));
+ } else if (param.contains("[]")) {
+ // Check if this is array for C++; translate into vector
+ includeClasses.add("vector");
}
}
}