All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Iava.IavaMethod

java.lang.Object
   |
   +----Iava.IavaMethod

public class IavaMethod
extends Object
implements IavaMessages
The class IavaMethod represents methods declared within scripts. Public IavaMethods can be invoked by Java code embedding the interpreter, while private methods can only be invoked by scripts themselves.

See Also:
IavaRuntime

Method Index

 o equals(Object)
Returns true, if the passed Object is an instance of IavaMethod and it has the same name and signature as 'this'.
 o getArguments()
Returns the arguments of this IavaMethod.
 o getName()
Returns the name of this IavaMethod.
 o invoke(IavaRuntime, Object[])
Invokes this IavaMethod within the supplied runtime object and with the given parameters.
 o isPublic()
Returns true, if this IavaMethod is public.
 o returnType()
Returns the return type of this IavaMethod.
 o toString()
Returns a String representation of this IavaMethod.

Methods

 o equals
 public boolean equals(Object o)
Returns true, if the passed Object is an instance of IavaMethod and it has the same name and signature as 'this'.

Overrides:
equals in class Object
 o getName
 public String getName()
Returns the name of this IavaMethod.

 o isPublic
 public boolean isPublic()
Returns true, if this IavaMethod is public.

 o toString
 public String toString()
Returns a String representation of this IavaMethod.

Overrides:
toString in class Object
 o getArguments
 public Class[] getArguments()
Returns the arguments of this IavaMethod.

 o returnType
 public Class returnType()
Returns the return type of this IavaMethod.

 o invoke
 public Object invoke(IavaRuntime rt,
                      Object args[])
Invokes this IavaMethod within the supplied runtime object and with the given parameters. If the wrong number or type of parameters is passed, an error is thrown by the interpreter. The return value is the Object returned by the IavaMethod. Primitive data types are wrapped within the according classes.


All Packages  Class Hierarchy  This Package  Previous  Next  Index