/** * Return operation info as map */ private Map<String, Object> getOperInfoAsMap(GOperationInfo operInfo) { Map<String, Object> map = new TreeMap<String, Object>(); map.put("methodName", operInfo.getMethodName()); map.put("name", operInfo.getName()); map.put("parameterList", operInfo.getParameterList()); return map; }
public void addOperation(GOperationInfo operationInfo) { operations.put(new GOperationSignature(operationInfo.getName(), operationInfo.getParameterList()), operationInfo); }
for (Iterator iterator = operationInfos.iterator(); iterator.hasNext();) { GOperationInfo operationInfo = (GOperationInfo) iterator.next(); operationSignatures.add(new GOperationSignature(operationInfo.getName(), operationInfo.getParameterList()));
operations.put(new GOperationSignature(operationInfo.getName(), operationInfo.getParameterList()), operationInfo);
for (Iterator iterator = gbeanInfo.getOperations().iterator(); iterator.hasNext();) { GOperationInfo operationInfo = (GOperationInfo) iterator.next(); GOperationSignature signature = new GOperationSignature(operationInfo.getName(), operationInfo.getParameterList());
this.parameterTypes = Collections.unmodifiableList(new ArrayList(operationInfo.getParameterList())); Class[] types = new Class[parameterTypes.size()]; ClassLoader classLoader = gbeanInstance.getClassLoader();
public static LinkedHashSet<String> getImports(List<GBeanData> gbeans) { LinkedHashSet<String> imports = new LinkedHashSet<String>(); for (GBeanData data: gbeans) { GBeanInfo info = data.getGBeanInfo(); addImport(imports, info.getClassName()); for (GAttributeInfo attInfo: info.getAttributes()) { addImport(imports, attInfo.getType()); } for (GReferenceInfo refInfo: info.getReferences()) { addImport(imports, refInfo.getReferenceType()); } for (GOperationInfo opInfo: info.getOperations()) { addImport(imports, opInfo.getReturnType()); for (String paramType : opInfo.getParameterList()) { addImport(imports, paramType); } } } return imports; }