39 |
|
|
40 |
package gnu.classpath.jdwp.util; |
package gnu.classpath.jdwp.util; |
41 |
|
|
42 |
|
import java.lang.reflect.Field; |
43 |
import java.lang.reflect.Method; |
import java.lang.reflect.Method; |
44 |
|
|
45 |
/** |
/** |
65 |
} |
} |
66 |
|
|
67 |
/** |
/** |
68 |
|
* Computes the field signature which is just the class signature of the |
69 |
|
* field's type, ie a Field of type java.lang.String this will return |
70 |
|
* "Ljava/lang/String;". |
71 |
|
* |
72 |
|
* @param field the field for which to compute the signature |
73 |
|
* @return the field's type signature |
74 |
|
*/ |
75 |
|
public static String computeFieldSignature (Field field) |
76 |
|
{ |
77 |
|
return computeClassSignature (field.getType()); |
78 |
|
} |
79 |
|
|
80 |
|
/** |
81 |
* Computes the method signature, i.e., java.lang.String.split (String, int) |
* Computes the method signature, i.e., java.lang.String.split (String, int) |
82 |
* returns "(Ljava/lang/String;I)[Ljava/lang/String;" |
* returns "(Ljava/lang/String;I)[Ljava/lang/String;" |
83 |
* |
* |