public String qualifiedTypeName() { return delegate.qualifiedTypeName(); }
private static String resolveMethodArgs(GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc, String type) { if (!type.contains("(")) return type; Matcher m = NAME_ARGS_REGEX.matcher(type); if (m.matches()) { String name = m.group(1); String args = m.group(2); StringBuilder sb = new StringBuilder(); sb.append(name); sb.append("("); String[] argParts = SPLIT_ARGS_REGEX.split(args); boolean first = true; for (String argPart : argParts) { if (first) first = false; else sb.append(", "); GroovyClassDoc doc = classDoc.resolveClass(rootDoc, argPart); sb.append(doc == null ? argPart : doc.qualifiedTypeName()); } sb.append(")"); return sb.toString(); } return type; }
public List<GroovyClassDoc> getParentClasses() { List<GroovyClassDoc> result = new LinkedList<GroovyClassDoc>(); if (isInterface()) return result; result.add(0, this); GroovyClassDoc next = this; while (next.superclass() != null && !"java.lang.Object".equals(next.qualifiedTypeName())) { next = next.superclass(); result.add(0, next); } GroovyClassDoc prev = next; Class nextClass = getClassOf(next.qualifiedTypeName()); while (nextClass != null && nextClass.getSuperclass() != null && !Object.class.equals(nextClass)) { nextClass = nextClass.getSuperclass(); GroovyClassDoc nextDoc = new ExternalGroovyClassDoc(nextClass); if (prev instanceof SimpleGroovyClassDoc) { SimpleGroovyClassDoc parent = (SimpleGroovyClassDoc) prev; parent.setSuperClass(nextDoc); } result.add(0, nextDoc); prev = nextDoc; } if (!result.get(0).qualifiedTypeName().equals("java.lang.Object")) { result.add(0, new ExternalGroovyClassDoc(Object.class)); } return result; }
public String qualifiedTypeName() { return delegate.qualifiedTypeName(); }
public String qualifiedTypeName() { return delegate.qualifiedTypeName(); }
private static String resolveMethodArgs(GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc, String type) { if (type.indexOf("(") < 0) return type; Matcher m = NAME_ARGS_REGEX.matcher(type); if (m.matches()) { String name = m.group(1); String args = m.group(2); StringBuilder sb = new StringBuilder(); sb.append(name); sb.append("("); String[] argParts = SPLIT_ARGS_REGEX.split(args); boolean first = true; for (String argPart : argParts) { if (first) first = false; else sb.append(", "); GroovyClassDoc doc = classDoc.resolveClass(rootDoc, argPart); sb.append(doc == null ? argPart : doc.qualifiedTypeName()); } sb.append(")"); return sb.toString(); } return type; }
private static String resolveMethodArgs(GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc, String type) { if (!type.contains("(")) return type; Matcher m = NAME_ARGS_REGEX.matcher(type); if (m.matches()) { String name = m.group(1); String args = m.group(2); StringBuilder sb = new StringBuilder(); sb.append(name); sb.append("("); String[] argParts = SPLIT_ARGS_REGEX.split(args); boolean first = true; for (String argPart : argParts) { if (first) first = false; else sb.append(", "); GroovyClassDoc doc = classDoc.resolveClass(rootDoc, argPart); sb.append(doc == null ? argPart : doc.qualifiedTypeName()); } sb.append(")"); return sb.toString(); } return type; }
private static String resolveMethodArgs(GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc, String type) { if (!type.contains("(")) return type; Matcher m = NAME_ARGS_REGEX.matcher(type); if (m.matches()) { String name = m.group(1); String args = m.group(2); StringBuilder sb = new StringBuilder(); sb.append(name); sb.append("("); String[] argParts = SPLIT_ARGS_REGEX.split(args); boolean first = true; for (String argPart : argParts) { if (first) first = false; else sb.append(", "); GroovyClassDoc doc = classDoc.resolveClass(rootDoc, argPart); sb.append(doc == null ? argPart : doc.qualifiedTypeName()); } sb.append(")"); return sb.toString(); } return type; }
public List<GroovyClassDoc> getParentClasses() { List<GroovyClassDoc> result = new LinkedList<GroovyClassDoc>(); if (isInterface()) return result; result.add(0, this); GroovyClassDoc next = this; while (next.superclass() != null && !"java.lang.Object".equals(next.qualifiedTypeName())) { next = next.superclass(); result.add(0, next); } GroovyClassDoc prev = next; Class nextClass = getClassOf(next.qualifiedTypeName()); while (nextClass != null && nextClass.getSuperclass() != null && !Object.class.equals(nextClass)) { nextClass = nextClass.getSuperclass(); GroovyClassDoc nextDoc = new ExternalGroovyClassDoc(nextClass); if (prev instanceof SimpleGroovyClassDoc) { SimpleGroovyClassDoc parent = (SimpleGroovyClassDoc) prev; parent.setSuperClass(nextDoc); } result.add(0, nextDoc); prev = nextDoc; } if (!result.get(0).qualifiedTypeName().equals("java.lang.Object")) { result.add(0, new ExternalGroovyClassDoc(Object.class)); } return result; }
public List<GroovyClassDoc> getParentClasses() { List<GroovyClassDoc> result = new LinkedList<GroovyClassDoc>(); if (isInterface()) return result; result.add(0, this); GroovyClassDoc next = this; while (next.superclass() != null && !"java.lang.Object".equals(next.qualifiedTypeName())) { next = next.superclass(); result.add(0, next); } GroovyClassDoc prev = next; Class nextClass = getClassOf(next.qualifiedTypeName()); while (nextClass != null && nextClass.getSuperclass() != null && !Object.class.equals(nextClass)) { nextClass = nextClass.getSuperclass(); GroovyClassDoc nextDoc = new ExternalGroovyClassDoc(nextClass); if (prev instanceof SimpleGroovyClassDoc) { SimpleGroovyClassDoc parent = (SimpleGroovyClassDoc) prev; parent.setSuperClass(nextDoc); } result.add(0, nextDoc); prev = nextDoc; } if (!result.get(0).qualifiedTypeName().equals("java.lang.Object")) { result.add(0, new ExternalGroovyClassDoc(Object.class)); } return result; }
public List<GroovyClassDoc> getParentClasses() { List<GroovyClassDoc> result = new LinkedList<GroovyClassDoc>(); if (isInterface()) return result; result.add(0, this); GroovyClassDoc next = this; while (next.superclass() != null && !"java.lang.Object".equals(next.qualifiedTypeName())) { next = next.superclass(); result.add(0, next); } GroovyClassDoc prev = next; Class nextClass = getClassOf(next.qualifiedTypeName()); while (nextClass != null && nextClass.getSuperclass() != null && !Object.class.equals(nextClass)) { nextClass = nextClass.getSuperclass(); GroovyClassDoc nextDoc = new ExternalGroovyClassDoc(nextClass); if (prev instanceof SimpleGroovyClassDoc) { SimpleGroovyClassDoc parent = (SimpleGroovyClassDoc) prev; parent.setSuperClass(nextDoc); } result.add(0, nextDoc); prev = nextDoc; } if (!result.get(0).qualifiedTypeName().equals("java.lang.Object")) { result.add(0, new ExternalGroovyClassDoc(Object.class)); } return result; }
public List<GroovyClassDoc> getParentClasses() { List<GroovyClassDoc> result = new LinkedList<GroovyClassDoc>(); if (isInterface()) return result; result.add(0, this); GroovyClassDoc next = this; while (next.superclass() != null && !"java.lang.Object".equals(next.qualifiedTypeName())) { next = next.superclass(); result.add(0, next); } GroovyClassDoc prev = next; Class nextClass = getClassOf(next.qualifiedTypeName()); while (nextClass != null && nextClass.getSuperclass() != null && !Object.class.equals(nextClass)) { nextClass = nextClass.getSuperclass(); GroovyClassDoc nextDoc = new ExternalGroovyClassDoc(nextClass); if (prev instanceof SimpleGroovyClassDoc) { SimpleGroovyClassDoc parent = (SimpleGroovyClassDoc) prev; parent.setSuperClass(nextDoc); } result.add(0, nextDoc); prev = nextDoc; } if (!result.get(0).qualifiedTypeName().equals("java.lang.Object")) { result.add(0, new ExternalGroovyClassDoc(Object.class)); } return result; }