Parameter type strings returned by getMethod( ) consist of:
One character indicating the type of each method parameter
An underscore (_)
A character indicating the type of the return value
If a method returns no value, the underscore may be omitted.
The characters that indicate method parameter types are listed in the table below. The data types represented are detailed in the sections that follow.
Table 1. Characters indicating method parameter types
Character |
PODS data type* |
Default Value |
||||||
---|---|---|---|---|---|---|---|---|
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
(not NULL) |
|
||||||
|
(may be NULL) |
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
|
|
||||||
|
Variable number of arguments |
|
* For more information on these data types, see PODS data types.
Below are some examples of parameter type strings that could be returned by getMethod( )
:
"ss_i"
indicates that a method takes two PODSString
parameters and returns a PODSInt32
.
"_o"
indicates that a method takes no parameters and returns a (PODSObject *)
.
"sib"
indicates that a method takes a PODSString
, a PODSInt32,
and a PODSBoolean
as parameters and returns no value (the method call returns the undefined value to JavaScript).
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |