public class

Utils

extends Object
java.lang.Object
   ↳ com.sun.tools.example.debug.bdi.Utils

Summary

Public Constructors
Utils()
Public Methods
static String description(ObjectReference ref)
Return a description of an object.
static long fromHex(String hexStr)
Convert hexadecimal strings to longs.
static String getStatus(ThreadReference thr)
Return the thread status description.
static boolean isJavaIdentifier(String s)
static boolean isValidMethodName(String s)
private String typedName(Method method) { // TO DO: Use method.signature() instead of method.arguments() so that // we get sensible results for classes without debugging info StringBuffer buf = new StringBuffer(); buf.append(method.name()); buf.append("("); Iterator it = method.arguments().iterator(); while (it.hasNext()) { buf.append(((LocalVariable)it.next()).typeName()); if (it.hasNext()) { buf.append(","); } } buf.append(")"); return buf.toString(); }
static String locationString(Location loc)
static String toHex(long n)
Convert a long to a hexadecimal string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Utils ()

Public Methods

public static String description (ObjectReference ref)

Return a description of an object.

public static long fromHex (String hexStr)

Convert hexadecimal strings to longs.

public static String getStatus (ThreadReference thr)

Return the thread status description.

public static boolean isJavaIdentifier (String s)

public static boolean isValidMethodName (String s)

private String typedName(Method method) { // TO DO: Use method.signature() instead of method.arguments() so that // we get sensible results for classes without debugging info StringBuffer buf = new StringBuffer(); buf.append(method.name()); buf.append("("); Iterator it = method.arguments().iterator(); while (it.hasNext()) { buf.append(((LocalVariable)it.next()).typeName()); if (it.hasNext()) { buf.append(","); } } buf.append(")"); return buf.toString(); }

public static String locationString (Location loc)

public static String toHex (long n)

Convert a long to a hexadecimal string.