All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.cometway.jerminal.commands.invoke

com.cometway.jerminal.commands.JerminalCommand
   |
   +----com.cometway.jerminal.commands.invoke

public class invoke
extends JerminalCommand
This command invokes a method on an existing Object.

Synopsis:

invoke [Target Object] [method name] [method param1 type] (method param2 type)... [method param1 value] (method param2 value)...
The Object [Target Object] will have the method [method name] invoked. The Method will require as its arguments the types [method param1 type] and if exists, (method param2 type) and so on. There can be as many types as needed to describe the method. The command returns the Object returned by the method invocation when given the arguments [method param1 value] and if exists (method param2 type) and so on. The number of method values must equal to the number of method types. The method values can be casted into primitive Object representations. For example, [method param1 value] could be '(Character)c'. If the [Target Object] is a classname, the method invoked is assumed to be a static method.


Constructor Index

 o invoke(JerminalSession)

Method Index

 o evaluate(Vector)
This method is called by the JerminalSession when it uses this command.

Constructors

 o invoke
 public invoke(JerminalSession j)

Methods

 o evaluate
 public Object evaluate(Vector operands)
This method is called by the JerminalSession when it uses this command.

Overrides:
evaluate in class JerminalCommand

All Packages  Class Hierarchy  This Package  Previous  Next  Index