|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jde.debugger.Rep
Rep.java
Responsible for providing static methods used in spewing out string representations.
Now, the representation that is sent across for the threads (ie to the jde) depends on the context. When it is sent with reference to thread commands, eg. get_threads, get_thread, get_object_monitors; it has a lot of thread specific information, eg. its state and all.
When it's sent treating the thread as an object, eg. get_object, it's represented differently, and a different set of information is sent.
Similary, when an array command is used, a different set of information is sent across, as against when it's treated as an object.
Created: Tue Aug 3 16:36:54 1999 Copyright (c) 2000, 2001, 2003 Paul Kinnucan
Constructor Summary | |
Rep()
|
Method Summary | |
static java.lang.String |
escapeString(java.lang.String str)
Prefix \ escapes to all \ and " characters in a string so that the string can be read byte the Lisp interpreter. |
static java.lang.String |
getArrayRep(com.sun.jdi.ArrayReference a,
java.lang.String elements)
Returns information about an array |
static java.lang.String |
getLocalVariableRep(com.sun.jdi.LocalVariable lv)
Returns a representation of a local variable on a stack frame |
static java.lang.String |
getLocalVariableValueMapRep(java.util.Map map)
Returns a list of (local variable, value) pairs. |
static java.lang.String |
getLocalVariableValueRep(com.sun.jdi.LocalVariable lv,
com.sun.jdi.Value v)
Returns a representation of a (local variable, value) pair. |
static java.lang.String |
getLocationRep(com.sun.jdi.Location loc)
Returns a representation of a Location |
static java.lang.String |
getObjectMonitorsRep(com.sun.jdi.ObjectReference o)
Returns information about monitors of an object. |
static java.lang.String |
getObjectRep(com.sun.jdi.ObjectReference o)
Returns a non-detailed representation of an object. |
static java.lang.String |
getObjectRep(com.sun.jdi.ObjectReference o,
boolean detailed)
Returns a canonical representation of an object. |
static java.lang.String |
getStringRep(com.sun.jdi.StringReference s)
Returns the value of a string |
static java.lang.String |
getThreadGroupRep(com.sun.jdi.ThreadGroupReference t)
Returns a canonical representation of a given ThreadGroupReference. |
static java.lang.String |
getThreadRep(com.sun.jdi.ThreadReference t)
Returns a detailed thread representation. |
static java.lang.String |
getThreadRep(com.sun.jdi.ThreadReference t,
boolean detailed)
Returns a canonical representation of a given ThreadReference. |
static java.lang.String |
getValueRep(com.sun.jdi.Value value)
Returns a representation of a 'value', that can be primitive or an object reference, or void. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Rep()
Method Detail |
public static java.lang.String getLocationRep(com.sun.jdi.Location loc)
Syntax:
(list "type-name" "sourcefile" lineNumber) (list "type-name" nil lineNumber)Comments:
public static java.lang.String getLocalVariableRep(com.sun.jdi.LocalVariable lv)
Syntax:
(list "name of variable" "type of variable")
public static java.lang.String getLocalVariableValueRep(com.sun.jdi.LocalVariable lv, com.sun.jdi.Value v)
Syntax:
(local-variable
.value
)
public static java.lang.String getLocalVariableValueMapRep(java.util.Map map)
Syntax:
(list [(local variable, value) pair
]*)
public static java.lang.String getValueRep(com.sun.jdi.Value value)
Syntax:
(list "null")
(list "void")
object-rep
(list "boolean" "true") (list "boolean" "false")
(list "byte" 'byte-value')
(list "char" 'char-value')
(list "double" double-value)
(list "float" float-value)
(list "int" int-value)
(list "long" long-value)
(list "short" short-value)
public static java.lang.String getArrayRep(com.sun.jdi.ArrayReference a, java.lang.String elements)
Syntax:
"Error message" (list "type name" uniqueID ['t|nil] length [element]*)Comments:
String
- a description of the array elementspublic static java.lang.String escapeString(java.lang.String str)
str
- String to be prefixed.public static java.lang.String getStringRep(com.sun.jdi.StringReference s)
Syntax:
"Error message" (list "java.lang.String" uniqueID ['t|nil] "string-value")Comments:
public static java.lang.String getObjectRep(com.sun.jdi.ObjectReference o)
getObjectRep(ObjectReference,boolean)
public static java.lang.String getObjectRep(com.sun.jdi.ObjectReference o, boolean detailed)
Syntax:
"Error Message"
(list "null")
Non-detailed
(list "type of object" uniqueID ['t|nil])
Detailed
(list "type of object" uniqueID ['t|nil] fields-values
)
Comments:
public static java.lang.String getObjectMonitorsRep(com.sun.jdi.ObjectReference o)
Syntax:
(list uniqueID "type of object" ['t|nil]Comments:owning-thread
(list [waiting-thread
]*))
public static java.lang.String getThreadGroupRep(com.sun.jdi.ThreadGroupReference t)
Syntax:
(list "ThreadGroup" uniqueID "name of threadgroup" (list [child thread
]*) (list [child threadgroup
]*))
public static java.lang.String getThreadRep(com.sun.jdi.ThreadReference t)
getThreadRep(ThreadReference, boolean)
public static java.lang.String getThreadRep(com.sun.jdi.ThreadReference t, boolean detailed)
Syntax:
Non-detailed
(list "Thread" uniqueID "name of thread" status currentState)
Detailed
(list "Thread" uniqueID "name of thread" status currentState
(list [stack-frame
]*)
owned-monitors-string
current-contended-monitor-string)
Comments:
"Error Message"
(list [owned monitor
]*)
"Error Message"
nil
current contended monitor
(list "Thread" 53 "Thread 1, continuous" "suspended by debugger" "waiting on monitor" (list (list 0 "test.Test" "Test.java" 45)) (list) (list "java.lang.String" 55)) (list "Thread" 54 "Thread 2" "suspended by debugger" "waiting on monitor" (list (list 0 "java.lang.Thread" "Thread.java" -1) (list 1 "test.Test" "Test.java" 47)) (list (list "java.lang.String" 55) (list "java.lang.Integer" 61)) (list))
detailed
- True if a more detailed representation is desired:
includes the stackframe as well as information about the monitors.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |