flex2.tools.oem.Message Maven / Gradle / Ivy
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package flex2.tools.oem;
/**
* The Message
interface lets you discover
* the following information about a compiler message.
*
*
* 1. getLevel() - Error level: error, warning or info.
* 2. getPath() - Location.
* 3. getLine() - Line number.
* 4. getColumn() - Column number.
* 5. toString() - Message string.
*
*
* The Message.toString()
method returns the message text.
*
* @version 2.0.1
* @author Clement Wong
*/
public interface Message
{
/**
* Indicates that the severity of this Message
is "error
".
*/
String ERROR = "error";
/**
* Indicates that the severity of this Message
is "warning
".
*/
String WARNING = "warning";
/**
* Indicates that the severity of this Message
is "info
".
*/
String INFO = "info";
/**
* Returns the compiler message severity level.
*
* @return One of Message.ERROR
, Message.WARNING
, or Message.INFO
.
* @see #ERROR
* @see #WARNING
* @see #INFO
*/
String getLevel();
/**
* Returns the location of the file that contains the error.
*
* @return String; null
if the path is not applicable.
*/
String getPath();
/**
* Returns the line number of the file that contains the error.
*
* @return An integer; -1
if the line number is not applicable.
*/
int getLine();
/**
* Returns the column number of the file that contains the error.
*
* @return An integer; -1
if the column number is not applicable.
*/
int getColumn();
/**
* Returns the message.
*
* @return A string.
*/
String toString();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy