* gnu/classpath/jdwp/util/Signature.java
(computeFieldSignature): New Method. From-SVN: r101745
This commit is contained in:
parent
5b59ff3b62
commit
caa54b82ca
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-07-07 Aaron Luchko <aluchko@redhat.com>
|
||||||
|
|
||||||
|
* gnu/classpath/jdwp/util/Signature.java
|
||||||
|
(computeFieldSignature): New Method.
|
||||||
|
|
||||||
2005-07-07 Aaron Luchko <aluchko@redhat.com>
|
2005-07-07 Aaron Luchko <aluchko@redhat.com>
|
||||||
|
|
||||||
* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:New
|
* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:New
|
||||||
|
|
|
@ -39,6 +39,7 @@ exception statement from your version. */
|
||||||
|
|
||||||
package gnu.classpath.jdwp.util;
|
package gnu.classpath.jdwp.util;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,6 +64,19 @@ public class Signature
|
||||||
return sb.toString ();
|
return sb.toString ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Computes the field signature which is just the class signature of the
|
||||||
|
* field's type, ie a Field of type java.lang.String this will return
|
||||||
|
* "Ljava/lang/String;".
|
||||||
|
*
|
||||||
|
* @param field the field for which to compute the signature
|
||||||
|
* @return the field's type signature
|
||||||
|
*/
|
||||||
|
public static String computeFieldSignature (Field field)
|
||||||
|
{
|
||||||
|
return computeClassSignature (field.getType());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes the method signature, i.e., java.lang.String.split (String, int)
|
* Computes the method signature, i.e., java.lang.String.split (String, int)
|
||||||
* returns "(Ljava/lang/String;I)[Ljava/lang/String;"
|
* returns "(Ljava/lang/String;I)[Ljava/lang/String;"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue