Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

CallableMethod Class Reference

A CallableMethod is a small shell around any method of a java.lang.Object that adds a "description" of the method and its arguments. More...

Inheritance diagram for CallableMethod::

CallableProperty List of all members.

Public Methods

 CallableMethod (String methodName)
 Construct a CallableMethod without arguments. More...

 CallableMethod (String methodName, String argType, String argName, String choiceType)
 Construct a CallableMethod with 1 argument. More...

 CallableMethod (String methodName, String argType1, String argName1, String choiceType1, String argType2, String argName2, String choiceType2)
 Construct a CallableMethod with 2 arguments. More...

 CallableMethod (String methodName, String argType1, String argName1, String choiceType1, String argType2, String argName2, String choiceType2, String argType3, String argName3, String choiceType3)
 Construct a CallableMethod with 3 arguments. More...

 CallableMethod (String methodName, String[] argTypes, String[] argNames, String[] choiceTypes)
 Construct a CallableMethod with n arguments. More...

String getMethodName ()
 Get the name of the method. More...

int getNumArgs ()
 Get the number of arguments of the method. More...

String[] getArgTypes ()
 Get the types of the arguments of the method. More...

String[] getArgNames ()
 Get the names of the arguments of the method. More...

String[] getChoiceTypes ()
 Get the choice types of the arguments of the method. More...

Object invoke (Object target, Object[] argVals)
 Invoke the method of the target object with the given argument values. More...


Detailed Description

A CallableMethod is a small shell around any method of a java.lang.Object that adds a "description" of the method and its arguments.

The description is typically used in a dialog box (e.g. JavaFuncDialog) to give the user some information and support for invocation of the Java method. The description consists of the name of the method, and for each parameter the type of the parameter, the name of the parameter, and a choiceType which is typically given to SaObjectChoice. The choiceType is used to build a list with parameter value suggestions.

The following argType's are supported: boolean, Boolean, java.lang.Boolean, byte, Byte, java.lang.Byte, short, Short, java.lang.Short, int, Integer, java.lang.Integer, float, Float, java.lang.Float, double, Double, java.lang.Double, String, java.lang.String, Color, java.awt.Color


Constructor & Destructor Documentation

CallableMethod::CallableMethod String    methodName [inline]
 

Construct a CallableMethod without arguments.

CallableMethod::CallableMethod String    methodName,
String    argType,
String    argName,
String    choiceType
[inline]
 

Construct a CallableMethod with 1 argument.

CallableMethod::CallableMethod String    methodName,
String    argType1,
String    argName1,
String    choiceType1,
String    argType2,
String    argName2,
String    choiceType2
[inline]
 

Construct a CallableMethod with 2 arguments.

CallableMethod::CallableMethod String    methodName,
String    argType1,
String    argName1,
String    choiceType1,
String    argType2,
String    argName2,
String    choiceType2,
String    argType3,
String    argName3,
String    choiceType3
[inline]
 

Construct a CallableMethod with 3 arguments.

CallableMethod::CallableMethod String    methodName,
String    argTypes[],
String    argNames[],
String    choiceTypes[]
[inline]
 

Construct a CallableMethod with n arguments.


Member Function Documentation

String CallableMethod::getMethodName   [inline]
 

Get the name of the method.

int CallableMethod::getNumArgs   [inline]
 

Get the number of arguments of the method.

String [] CallableMethod::getArgTypes   [inline]
 

Get the types of the arguments of the method.

String [] CallableMethod::getArgNames   [inline]
 

Get the names of the arguments of the method.

String [] CallableMethod::getChoiceTypes   [inline]
 

Get the choice types of the arguments of the method.

Object CallableMethod::invoke Object    target,
Object    argVals[]
[inline]
 

Invoke the method of the target object with the given argument values.


The documentation for this class was generated from the following file:
Generated on Tue Jan 8 14:14:21 2002 for JavaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001