/** * Get class information. * * @param type fully-qualified class name * @return information, or <code>null</code> if unable to load */ public IClass getClassInfo(String type) { return m_classLocator.getClassInfo(type); }
/** * Check if type is a collection type (specifically collection, not array). * * @param type * @return item type, <code>null</code> if not a collection type */ private boolean isCollection(String type, IClassLocator icl) { IClass info = icl.getRequiredClassInfo(type); return info.isImplements("Ljava/util/Collection;"); }
/** * Get the JavaDoc formatter instance for a customization. * * @param custom customization information * @return formatter */ public IDocumentFormatter getFormatter(SharedNestingBase custom) { String cname = custom.getFormatterClass(); IDocumentFormatter format = (IDocumentFormatter)m_classInstances.get(cname); if (format == null) { Class clas = m_locator.loadClass(cname); if (clas == null) { throw new IllegalStateException("Cannot load document formatter class " + cname); } try { Object inst = clas.newInstance(); if (!(inst instanceof IDocumentFormatter)) { throw new IllegalStateException("Specified document formatter class does not implement IDocumentFormatter interface: " + cname); } m_classInstances.put(cname, inst); format = (IDocumentFormatter)inst; } catch (InstantiationException e) { throw new IllegalStateException("Cannot create instance of document formatter class " + cname); } catch (IllegalAccessException e) { throw new IllegalStateException("Cannot access document formatter class " + cname); } } return format; } }
m_classInformation = icl.getClassInfo(getName()); if (m_classInformation == null) { throw new IllegalStateException("Internal error: unable to find class " + m_name);
m_faultName = m_elementName + "Fault"; IClass clas = icl.getRequiredClassInfo(m_exceptionType); if (m_fieldName == null) { IClassItem[] fields = clas.getFields(); String type = item.getTypeName(); if (!Types.isSimpleValue(type)) { IClass info = icl.getRequiredClassInfo(type); if (info.isModifiable()) { m_fieldName = item.getName();
IClass info = icl.getClassInfo(type); fillType(info, req, style); if (isCollection()) {
m_classInformation = icl.getRequiredClassInfo(m_className);
IClass info = locator.getClassInfo(service.getClassName()); if (info != null) { List nodes = m_generationParameters.getWsdlCustom().getFormatter(service).docToNodes(info.getJavaDoc());
String gtype = gmeth.getTypeName(); String stype = smeth.getArgumentType(0); IClass gclas = icl.getRequiredClassInfo(gtype); if (gclas.isSuperclass(stype) || gclas.isImplements(stype)) { type = gtype;
info = m_locator.getClassInfo(detail.getMapping().getClassName());
if (parse.isParameterized()) { String ptype = parameterType(parse); IClass info = icl.getRequiredClassInfo(type); if (info.isImplements("Ljava/util/Collection;")) { itype = ptype; Boolean req = checkRequired(name, reqset, optset); List docs = fmt.docToNodes(method.getParameterJavaDoc(i)); value.complete(icl.getRequiredClassInfo(ptypes[i]), docs, req, pitypes[i]); m_return = new ValueCustom(this, name); m_return.complete(icl.getRequiredClassInfo(rtype), docs, req, ritype);