Interface Function
-
- All Known Subinterfaces:
Command
- All Known Implementing Classes:
ActionCommand
,ExitCommand
,HelpCommand
,SecuredCommand
,SubShellCommand
,TopLevelCommand
public interface Function
This interface represents some code that can be executed in theSession
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
execute(Session session, List<Object> arguments)
Execute this function within the given Session and with the given arguments.
-
-
-
Method Detail
-
execute
Object execute(Session session, List<Object> arguments) throws Exception
Execute this function within the given Session and with the given arguments.- Parameters:
session
- the current sessionarguments
- the arguments of this function- Returns:
- the result
- Throws:
Exception
- if any exception occurs
-
-