/** * Gets the proxy class name. * * @param name the name * @param mappedUniName the mapped uni name * @param isUniName the is uni name * @return the proxy class name */ private static String getProxyClassName(String name, Map<String, String> mappedUniName, boolean isUniName) { Set<String> emptyPkgs = Collections.emptySet(); return getProxyClassName(name, emptyPkgs, mappedUniName, isUniName); }
/** * Check class. * * @param packageName the package name * @param type the type * @param mappedUniName the mapped uni name * @param isUniName the is uni name * @return the class */ private static Class checkClass(String packageName, Type type, Map<String, String> mappedUniName, boolean isUniName) { String simpleName = getProxyClassName(type.getName(), mappedUniName, isUniName); String className = packageName + PACKAGE_SPLIT_CHAR + simpleName; Class<?> c = null; try { c = Class.forName(className); } catch (ClassNotFoundException e1) { // if class not found so should generate a new java source class. c = null; } return c; }
} else { classFound = true; ret += getProxyClassName(string, mappedUniName, isUniName) + PACKAGE_SPLIT_CHAR;
String simpleName = getProxyClassName(defaultClsName, mappedUniName, isUniName);
String simpleName = getProxyClassName(defaultClsName, mappedUniName, isUniName); String className = packageName + PACKAGE_SPLIT_CHAR + simpleName;
String simpleName = getProxyClassName(defaultClsName, uniMappedName, isUniName); if (fType == null) { String jType = field.getType(); javaType = getProxyClassName(jType, packages, uniMappedName, isUniName); fqname = StringUtils.removeStart(t.getFullyQualifiedName(), packageName + PACKAGE_SPLIT_CHAR); String subClsName = getProxyClassName(fqname, uniMappedName, isUniName);