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
-
equals(Object)
- Returns true, if the passed Object is an instance of
IavaMethod and it has the same name and signature
as 'this'.
-
getArguments()
- Returns the arguments of this IavaMethod.
-
getName()
- Returns the name of this IavaMethod.
-
invoke(IavaRuntime, Object[])
- Invokes this IavaMethod within the supplied runtime
object and with the given parameters.
-
isPublic()
- Returns true, if this IavaMethod is public.
-
returnType()
- Returns the return type of this IavaMethod.
-
toString()
- Returns a String representation of this IavaMethod.
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
getName
public String getName()
- Returns the name of this IavaMethod.
isPublic
public boolean isPublic()
- Returns true, if this IavaMethod is public.
toString
public String toString()
- Returns a String representation of this IavaMethod.
- Overrides:
- toString in class Object
getArguments
public Class[] getArguments()
- Returns the arguments of this IavaMethod.
returnType
public Class returnType()
- Returns the return type of this IavaMethod.
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