|
|||||||||
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
Constructor Summary | |
Rep()
|
Method Summary | |
(package private) static LispForm |
getArrayRep(com.sun.jdi.ArrayReference a,
ObjectStore store,
int index,
int length)
Returns information about an array |
(package private) static LispForm |
getFieldRep(com.sun.jdi.Field f)
Returns a representation of a field. |
(package private) static LispForm |
getFieldValueMapRep(java.util.Map map,
ObjectStore s)
Returns a list of (field, value) pairs. |
(package private) static LispForm |
getFieldValueRep(com.sun.jdi.Field f,
com.sun.jdi.Value v,
ObjectStore s)
Returns a representation of a (field, value) pair. |
(package private) static LispForm |
getLocalVariableRep(com.sun.jdi.LocalVariable lv)
Returns a representation of a local variable on a stack frame |
(package private) static LispForm |
getLocalVariableValueMapRep(java.util.Map map,
ObjectStore s)
Returns a list of (local variable, value) pairs. |
(package private) static LispForm |
getLocalVariableValueRep(com.sun.jdi.LocalVariable lv,
com.sun.jdi.Value v,
ObjectStore s)
Returns a representation of a (local variable, value) pair. |
(package private) static LispForm |
getLocationRep(com.sun.jdi.Location loc)
Returns a representation of a Location |
(package private) static LispForm |
getMethodRep(com.sun.jdi.Method m)
Returns a representation of a method |
(package private) static LispForm |
getObjectMonitorsRep(com.sun.jdi.ObjectReference o,
ObjectStore store)
Returns information about monitors of an object. |
(package private) static LispForm |
getObjectRep(com.sun.jdi.ObjectReference o,
ObjectStore store)
Returns a non-detailed representation of an object. |
(package private) static LispForm |
getObjectRep(com.sun.jdi.ObjectReference o,
ObjectStore store,
boolean detailed)
Returns a canonical representation of an object. |
(package private) static LispForm |
getStackFrameRep(com.sun.jdi.StackFrame s,
int index)
Returns a canonical representation of a given StackFrame. |
(package private) static LispForm |
getStringRep(com.sun.jdi.StringReference s,
ObjectStore store)
Returns the value of a string |
(package private) static LispForm |
getThreadGroupRep(com.sun.jdi.ThreadGroupReference t,
ObjectStore store)
Returns a canonical representation of a given ThreadGroupReference. |
(package private) static LispForm |
getThreadRep(com.sun.jdi.ThreadReference t,
ObjectStore store)
Returns a non-detailed thread representation. |
(package private) static LispForm |
getThreadRep(com.sun.jdi.ThreadReference t,
ObjectStore store,
boolean detailed)
Returns a canonical representation of a given ThreadReference. |
(package private) static LispForm |
getValueRep(com.sun.jdi.Value value,
ObjectStore store)
Returns a representation of a 'value', that can be primitive or an object reference, or void. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Rep()
Method Detail |
static LispForm getLocationRep(com.sun.jdi.Location loc)
Syntax:
(list "type-name" "sourcefile" lineNumber) (list "type-name" nil lineNumber)Comments:
static LispForm getMethodRep(com.sun.jdi.Method m)
Syntax:
(list "name of method" return-type-name (list [argument-type-name]*) ["final"] ["static"] ["native"] ["constructor"] ["abstract"] ["synchronized"] ["static_initializer"])
static LispForm getLocalVariableRep(com.sun.jdi.LocalVariable lv)
Syntax:
(list "name of variable" "type of variable")
static LispForm getLocalVariableValueRep(com.sun.jdi.LocalVariable lv, com.sun.jdi.Value v, ObjectStore s)
Syntax:
(local-variable
.value
)
static LispForm getLocalVariableValueMapRep(java.util.Map map, ObjectStore s)
Syntax:
(list [(local variable, value) pair
]*)
static LispForm getFieldRep(com.sun.jdi.Field f)
Syntax:
(list "name of field" "type of field" ["transient"] ["volatile"] ["final"] ["static"])
static LispForm getFieldValueRep(com.sun.jdi.Field f, com.sun.jdi.Value v, ObjectStore s)
Syntax:
(field
.value
)
static LispForm getFieldValueMapRep(java.util.Map map, ObjectStore s)
Syntax:
(list [(field, value) pair
]*)
static LispForm getValueRep(com.sun.jdi.Value value, ObjectStore store)
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)
static LispForm getArrayRep(com.sun.jdi.ArrayReference a, ObjectStore store, int index, int length)
Syntax:
"Error message" (list "type name" uniqueID ['t|nil] length [element]*)Comments:
index
- if -1, represents the begin of index from where
elements are to be sentlength
- Number of elements to be sentstatic LispForm getStringRep(com.sun.jdi.StringReference s, ObjectStore store)
Syntax:
"Error message" (list "java.lang.String" uniqueID ['t|nil] "string-value")Comments:
static LispForm getObjectRep(com.sun.jdi.ObjectReference o, ObjectStore store)
getObjectRep(ObjectReference,ObjectStore,boolean)
static LispForm getObjectRep(com.sun.jdi.ObjectReference o, ObjectStore store, 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:
static LispForm getObjectMonitorsRep(com.sun.jdi.ObjectReference o, ObjectStore store)
Syntax:
(list uniqueID "type of object" ['t|nil]Comments:owning-thread
(list [waiting-thread
]*))
static LispForm getThreadGroupRep(com.sun.jdi.ThreadGroupReference t, ObjectStore store)
Syntax:
(list "ThreadGroup" uniqueID "name of threadgroup" (list [child thread
]*) (list [child threadgroup
]*))
static LispForm getThreadRep(com.sun.jdi.ThreadReference t, ObjectStore store)
getThreadRep(ThreadReference, ObjectStore, boolean)
static LispForm getThreadRep(com.sun.jdi.ThreadReference t, ObjectStore store, 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.static LispForm getStackFrameRep(com.sun.jdi.StackFrame s, int index)
Syntax:
(list "StackFrame" index "Information not available") (list "StackFrame" index "type name" "source name" lineNumber)Comments:
index
- Gives the index of this particular stack frame for
the thread. This basically goes into the string returned as a
convenience.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |