Package com.sun.tools.javadoc

Examples of com.sun.tools.javadoc.Messager


   *            the new messager
   * @return the old messager
   */
  public static Messager replaceMessager(Object docEnvContainer,
      Messager newMessager) {
    Messager messager = null;

    // replace the messager to avoid unnecessary warnings

    try {

View Full Code Here


   * @param root
   *            container of the current messager
   */
  public static void replaceMessageWriters(Writer newWriter, RootDoc root)
      throws Exception {
    Messager messager = replaceMessager(root, null);
    ObjectAnalyzer analyzer = new ObjectAnalyzer(messager);
    ArrayList<PrintWriter> writers = new ArrayList<PrintWriter>();
    writers.add((PrintWriter) analyzer.getPrivateField("warnWriter"));
    writers.add((PrintWriter) analyzer.getPrivateField("errWriter"));
    writers.add((PrintWriter) analyzer.getPrivateField("noticeWriter"));
View Full Code Here

        if (!result) {
          // info: if the annotation type has an error (not found)
          // then Message.printWarning is invoked.
          // avoid the printing of these warnings by replacing the
          // messager
          Messager originalMessager = replaceMessager(annotation,
              null);
          String name = null;
          if (useOnlyName)
            name = annotation.annotationType().name();
          else
View Full Code Here

TOP

Related Classes of com.sun.tools.javadoc.Messager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.