Package com.github.fungal.api.remote
Interface Command
- All Known Implementing Classes:
Deploy,GetCommand,Help,Undeploy
public interface Command
Represents a command
- Author:
- Jesper Pedersen
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the commandClass[]Get the parameter types of the command;nullif noneinvoke(Serializable[] args) InvokebooleanisPublic()Is it a public command
-
Method Details
-
getName
String getName()Get the name of the command- Returns:
- The name
-
getParameterTypes
Class[] getParameterTypes()Get the parameter types of the command;nullif none- Returns:
- The types
-
invoke
Invoke- Parameters:
args- The arguments- Returns:
- The return value
-
isPublic
boolean isPublic()Is it a public command- Returns:
- True if system-wide; false if internal
-