piyaction.java

来自「PIY(Program It Yourself)是一个基于Java的应用程序开发」· Java 代码 · 共 26 行

JAVA
26
字号
package piy;

/**
* Representation of an abstract action.  All actions should be implemented into PIY by
* firstly implementing this class, and secondly by being placed in the "action" directory.
* Any properties of the action that need to be modifiable by the user should be named in
* accordance to the PIY naming rules for properties.
* @author David Vivash
* @version 1.0.1, 22/03/01
*/
public interface PIYAction
{
	/**
	* Get the return type of this action.  
	* @return the class representing the return type of the execute method. May be null 
	* if the action doesn't return anything.
	*/
	public Class getReturnType();

	/**
	* Run the action.
	* @return the result of running the action, whose type should be the same as that 
	* returned by getReturnType()
	*/
	public Object execute();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?