@Override public ClassDoc classNamed(String qualifiedName) { return delegate.classNamed(qualifiedName); }
public ClassDoc classNamed(String arg0) { return root.classNamed(arg0); }
public ClassDoc classNamed(String arg0) { return wrapped.classNamed(arg0); }
/** * Return the ClassDoc associated with clazz * * @param clazz * @return */ public ClassDoc getClassDocForClass(Class clazz) { return rootDoc.classNamed(clazz.getName()); }
/** * Return the ClassDoc associated with clazz * * @param clazz * @return */ public ClassDoc getClassDocForClass(final Class<?> clazz) { return rootDoc.classNamed(clazz.getName()); }
public boolean matches(String name) { ClassDoc cd = root.classNamed(name); if(cd == null) return false; return matches(cd); }
public boolean matches(String name) { ClassDoc cd = root.classNamed(name); if(cd == null) return false; return matches(cd); }
public boolean matches(String name) { ClassDoc cd = root.classNamed(name); return cd == null ? false : matches(cd); }
public boolean matches(String name) { ClassDoc cd = root.classNamed(name); return cd == null ? false : matches(cd); }
/** * @return The annotation with the <var>annotationType</var>, or {@code null} iff the <var>doc</var> is * not annotated with the <var>annotationType</var> * @throws Longjump The <var>annotationType</var> is not on JAVADOC's source path or class path */ @Nullable public static AnnotationDesc get(ProgramElementDoc doc, Class<?> annotationType, RootDoc rootDoc) throws Longjump { ClassDoc brpcd = rootDoc.classNamed(annotationType.getName()); return Annotations.get(doc, brpcd); }
/** * @return The annotation with the <var>annotationType</var>, or {@code null} iff the <var>doc</var> is * not annotated with the <var>annotationType</var> * @throws Longjump The <var>annotationType</var> is not on JAVADOC's source path or class path */ @Nullable public static AnnotationDesc get(ProgramElementDoc doc, Class<?> annotationType, RootDoc rootDoc) throws Longjump { ClassDoc brpcd = rootDoc.classNamed(annotationType.getName()); return Annotations.get(doc, brpcd); }
public final class ObjectListDoclet { public static final String TOP_CLASS_NAME = "com.example.MyClass"; /** Doclet entry point. */ public static boolean start(RootDoc root) throws Exception { try { ClassDoc topClassDoc = root.classNamed(TOP_CLASS_NAME); for (ClassDoc classDoc : root.classes()) { if (classDoc.subclassOf(topClassDoc)) { System.out.println(classDoc); } } return true; } catch (Exception ex) { ex.printStackTrace(); return false; } } }
/** * A drop-in replacement for {@link RootDoc#classNamed(String)}, but instead of returning {@code null} it prints an * error and throws a {@link Longjump}. */ public static ClassDoc classNamed(RootDoc rootDoc, String className) throws Longjump { ClassDoc result = rootDoc.classNamed(className); if (result == null) { rootDoc.printError("\"" + className + "\" missing on classpath"); throw new Longjump(); } return result; }
/** * A drop-in replacement for {@link RootDoc#classNamed(String)}, but instead of returning {@code null} it prints an * error and throws a {@link Longjump}. */ public static ClassDoc classNamed(RootDoc rootDoc, String className) throws Longjump { ClassDoc result = rootDoc.classNamed(className); if (result == null) { rootDoc.printError("\"" + className + "\" missing on classpath"); throw new Longjump(); } return result; }
this.collectionClassDoc = root.classNamed("java.util.Collection"); this.mapClassDoc = root.classNamed("java.util.Map"); this.contextDoc = contextDoc;
ClassDoc viewClass = viewRootDoc.classNamed(opt.viewName); if(viewClass == null) { System.out.println("View " + opt.viewName + " not found! Exiting without generating any output.");
ClassDoc viewClass = viewRootDoc.classNamed(opt.viewName); if(viewClass == null) { System.out.println("View " + opt.viewName + " not found! Exiting without generating any output.");
this.collectionClassDoc = root.classNamed("java.util.Collection"); this.mapClassDoc = root.classNamed("java.util.Map");
throw new RuntimeException("Could not find the field corresponding to " + fieldDoc + ", presumably because the field is inaccessible"); if (field.isAnnotationPresent(ArgumentCollection.class)) { ClassDoc typeDoc = getRootDoc().classNamed(fieldDoc.type().qualifiedTypeName()); if (typeDoc == null) throw new ReviewedGATKException("Tried to get javadocs for ArgumentCollection field " + fieldDoc + " but couldn't find the class in the RootDoc");
comment = getFirstSentence(root.classNamed(type.qualifiedTypeName()));