Inheritance diagram for CallableMethod::
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... |
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
|
Construct a CallableMethod without arguments.
|
|
Construct a CallableMethod with 1 argument.
|
|
Construct a CallableMethod with 2 arguments.
|
|
Construct a CallableMethod with 3 arguments.
|
|
Construct a CallableMethod with n arguments.
|
|
Get the name of the method.
|
|
Get the number of arguments of the method.
|
|
Get the types of the arguments of the method.
|
|
Get the names of the arguments of the method.
|
|
Get the choice types of the arguments of the method.
|
|
Invoke the method of the target object with the given argument values.
|