+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
package gnu.classpath.jdwp.util;
+import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
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)
* returns "(Ljava/lang/String;I)[Ljava/lang/String;"