for (int i = 0; i < methods.length; i++) { IClassItem item = methods[i]; String name = item.getName(); int flags = item.getAccessFlags(); if (item.getArgumentCount() == 1 && (flags & Modifier.STATIC) == 0 && (flags & Modifier.PUBLIC) != 0 && name.startsWith("set") && item.getTypeName().equals("void")) {
throw new IllegalArgumentException("Internal error: no access methods known"); } else { type = smeth.getArgumentType(0); type = gmeth.getTypeName(); } else { String gtype = gmeth.getTypeName(); String stype = smeth.getArgumentType(0); IClass gclas = icl.getRequiredClassInfo(gtype); if (gclas.isSuperclass(stype) || gclas.isImplements(stype)) {
/** * Get formatted documentation from class item, in the form of a list of <code>org.w3c.dom.Node</code> instances. * * @param info item information * @return formatted documentation (<code>null</code> if none) */ public List getItemDocumentation(IClassItem info) { return docToNodes(info.getJavaDoc()); } }
for (int i = 0; i < fields.length; i++) { IClassItem item = fields[i]; if ((item.getAccessFlags() & (Modifier.FINAL | Modifier.STATIC | Modifier.TRANSIENT)) == 0) { String name = item.getName(); String memb = ValueCustom.memberNameFromField(name, prefs, suffs); boolean use = true;
m_documentation = fmt.docToNodes(method.getJavaDoc()); int count = method.getArgumentCount(); String[] ptypes = new String[count]; String[] pitypes = new String[count]; String rtype = null; String ritype = null; String sig = method.getGenericsSignature(); if (sig == null) { String type = method.getArgumentType(i); ptypes[i] = type; if (isCollection(type, icl)) { rtype = method.getTypeName(); if (isCollection(rtype, icl)) { ritype = "java.lang.Object"; Set optset = CustomUtils.noCaseNameSet(m_optionals); for (int i = 0; i < count; i++) { String name = method.getParameterName(i); if (name == null) { name = "arg" + (i + 1); List docs = fmt.docToNodes(method.getParameterJavaDoc(i)); value.complete(icl.getRequiredClassInfo(ptypes[i]), docs, req, pitypes[i]); String text = method.getReturnJavaDoc(); boolean isname = false;
if (gmeth != null) { if (m_getName == null) { m_getName = gmeth.getName(); type = gmeth.getTypeName(); m_setName = smeth.getName(); type = smeth.getArgumentType(0); m_private = (gmeth == null || Modifier.isPrivate(gmeth.getAccessFlags())) && (smeth == null || Modifier.isPrivate(smeth.getAccessFlags())); } else { if (m_fieldName == null) { m_fieldName = field.getName(); m_private = Modifier.isPrivate(field.getAccessFlags()); type = field.getTypeName(); sig = field.getGenericsSignature(); } else { if (gmeth == null) { sig = smeth.getGenericsSignature(); } else { sig = gmeth.getGenericsSignature();
for (int i = 0; i < fields.length; i++) { IClassItem item = fields[i]; String type = item.getTypeName(); if (!Types.isSimpleValue(type)) { IClass info = icl.getRequiredClassInfo(type); if (info.isModifiable()) { m_fieldName = item.getName(); m_dataType = type; break; + m_exceptionType); } else { m_dataType = field.getTypeName();
/** * Set the documentation for a schema component matching a class member. * * @param item * @param elem */ private void setDocumentation(IClassItem item, AnnotatedBase elem) { ClassCustom custom = m_custom.getClassCustomization(item.getOwningClass().getName()); if (custom != null && custom.isUseJavaDocs()) { List nodes = m_formatCache.getFormatter(custom).getItemDocumentation(item); if (nodes != null) { AnnotationElement anno = new AnnotationElement(); DocumentationElement doc = new DocumentationElement(); for (Iterator iter = nodes.iterator(); iter.hasNext();) { Node node = (Node)iter.next(); doc.addContent(node); } anno.getItemsList().add(doc); elem.setAnnotation(anno); } } }
String name = (String)iter.next(); IClassItem field = (IClassItem)fieldmap.get(name); int access = field.getAccessFlags(); if (!Modifier.isStatic(access) && !Modifier.isTransient(access)) { nameset.add(name);
for (int i = 0; i < methods.length; i++) { IClassItem method = methods[i]; String name = method.getName(); String lcname = name.toLowerCase(); int access = method.getAccessFlags(); OperationCustom op = (OperationCustom)opmap.get(lcname); if (op == null) {
for (int i = 0; i < methods.length; i++) { IClassItem item = methods[i]; String name = item.getName(); int flags = item.getAccessFlags(); if (item.getArgumentCount() == 0 && (flags & Modifier.STATIC) == 0 && (flags & Modifier.PUBLIC) != 0 && ((name.startsWith("get") && !item.getTypeName().equals("void")) || (name.startsWith("is") && item.getTypeName().equals("boolean")))) {