📄 iparseeventlistener.java
字号:
/**
* Soft Gems Resource parser. Created by Mike Lischke.
*
* The source code in this file can freely be used for any purpose provided this notice remains
* unchanged in the file.
*
* Copyright 2004 by Mike Lischke, www.soft-gems.net, public@soft-gems.net. All rights reserved.
*/
package net.softgems.resourceparser.main;
/**
* The ParseEventListener interface serves as interface for messages between the various parse parts
* and the application.
*
* @author Mike Lischke
*/
public interface IParseEventListener
{
/** Used to indicate a fatal error condition (value is 0). */
public final int PANIC = 0;
/** Used to indicate an error condition (value is 1). */
public final int ERROR = 1;
/** Used to tell the receiver about a potentially dangerous condition (value is 2). */
public final int WARNING = 2;
/** Used to tell the receiver about something interesting (value is 3). */
public final int INFORMATION = 3;
/** Used to tell the receiver that a new file has been included (value is 4). */
public final int NEW_LINE = 4;
/** Used to indicate a fatal error condition (value is 5). */
public final int INCLUDE_FILE = 5;
//------------------------------------------------------------------------------------------------
/**
* The handleEvent method must be implemented by a descendant and is called when an
* event occurs of which the owner should know about.
*
* @param event One of the constants defined above to identify the type of message.
* @param message A plain text describing the event. It can be empty, e.g. for new line events.
*/
public abstract void handleEvent(int event, String message);
//------------------------------------------------------------------------------------------------
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -