0N/A/*
2362N/A * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage com.sun.mirror.apt;
0N/A
0N/Aimport com.sun.mirror.util.SourcePosition;
0N/A
0N/A/**
6319N/A * A <tt>Messager</tt> provides the way for
6319N/A * an annotation processor to report error messages, warnings, and
0N/A * other notices.
0N/A *
0N/A * @deprecated All components of this API have been superseded by the
0N/A * standardized annotation processing API. The replacement for the
0N/A * functionality of this interface is {@link
0N/A * javax.annotation.processing.Messager}.
0N/A *
0N/A * @author Joseph D. Darcy
0N/A * @author Scott Seligman
0N/A * @since 1.5
0N/A */
0N/A@Deprecated
0N/A@SuppressWarnings("deprecation")
0N/Apublic interface Messager {
0N/A
0N/A /**
0N/A * Prints an error message.
0N/A * Equivalent to <tt>printError(null, msg)</tt>.
0N/A * @param msg the message, or an empty string if none
0N/A */
0N/A void printError(String msg);
0N/A
0N/A /**
0N/A * Prints an error message.
0N/A * @param pos the position where the error occured, or null if it is
0N/A * unknown or not applicable
0N/A * @param msg the message, or an empty string if none
0N/A */
0N/A void printError(SourcePosition pos, String msg);
0N/A
0N/A /**
0N/A * Prints a warning message.
0N/A * Equivalent to <tt>printWarning(null, msg)</tt>.
0N/A * @param msg the message, or an empty string if none
0N/A */
0N/A void printWarning(String msg);
0N/A
0N/A /**
0N/A * Prints a warning message.
0N/A * @param pos the position where the warning occured, or null if it is
0N/A * unknown or not applicable
0N/A * @param msg the message, or an empty string if none
0N/A */
0N/A void printWarning(SourcePosition pos, String msg);
0N/A
0N/A /**
0N/A * Prints a notice.
0N/A * Equivalent to <tt>printNotice(null, msg)</tt>.
0N/A * @param msg the message, or an empty string if none
0N/A */
6319N/A void printNotice(String msg);
6319N/A
6319N/A /**
6319N/A * Prints a notice.
6319N/A * @param pos the position where the noticed occured, or null if it is
6319N/A * unknown or not applicable
6319N/A * @param msg the message, or an empty string if none
6319N/A */
0N/A void printNotice(SourcePosition pos, String msg);
0N/A}
0N/A