178 |
"(" + type-encodings of parameter types + ")" |
"(" + type-encodings of parameter types + ")" |
179 |
+ type-encoding of return type |
+ type-encoding of return type |
180 |
*/ |
*/ |
181 |
|
/** |
182 |
|
If we implement this method in native, it would no doubt help performance. |
183 |
|
*/ |
184 |
public static String getEncodingOfMethod( Method m ) |
public static String getEncodingOfMethod( Method m ) |
185 |
{ |
{ |
186 |
String returnEncoding = getEncodingOfClass( m.getReturnType() ); |
String returnEncoding = getEncodingOfClass( m.getReturnType() ); |
208 |
|
|
209 |
buf.append( ')' ); |
buf.append( ')' ); |
210 |
buf.append( returnEncoding ); |
buf.append( returnEncoding ); |
|
|
|
211 |
return buf.toString(); |
return buf.toString(); |
212 |
} |
} |
213 |
|
|
218 |
|
|
219 |
"(" + type-encodings of parameter types + ")V" |
"(" + type-encodings of parameter types + ")V" |
220 |
*/ |
*/ |
221 |
|
/** |
222 |
|
If we implement this method in native, it would no doubt help performance. |
223 |
|
*/ |
224 |
public static String getEncodingOfConstructor( Constructor c ) |
public static String getEncodingOfConstructor( Constructor c ) |
225 |
{ |
{ |
226 |
Class[] paramTypes = c.getParameterTypes(); |
Class[] paramTypes = c.getParameterTypes(); |