Commit caa54b82 by Aaron Luchko Committed by Aaron Luchko

* gnu/classpath/jdwp/util/Signature.java

        (computeFieldSignature): New Method.

From-SVN: r101745
parent 5b59ff3b
2005-07-07 Aaron Luchko <aluchko@redhat.com> 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>
* gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:New * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java:New
file. file.
......
...@@ -39,6 +39,7 @@ exception statement from your version. */ ...@@ -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;
/** /**
...@@ -64,6 +65,19 @@ public class Signature ...@@ -64,6 +65,19 @@ public class Signature
} }
/** /**
* 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;"
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment