mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-07-05 09:46:05 +00:00
* gnu/classpath/jdwp/util/Signature.java
(computeFieldSignature): New Method. From-SVN: r101745
This commit is contained in:
committed by
Aaron Luchko
parent
5b59ff3b62
commit
caa54b82ca
@@ -39,6 +39,7 @@ exception statement from your version. */
|
||||
|
||||
package gnu.classpath.jdwp.util;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
/**
|
||||
@@ -63,6 +64,19 @@ public class Signature
|
||||
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;"
|
||||
|
||||
Reference in New Issue
Block a user