Package editor.debugger
Class DebuggerExpression
- java.lang.Object
-
- editor.debugger.DebuggerExpression
-
public class DebuggerExpression extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDebuggerExpression.RuntimeState
-
Field Summary
Fields Modifier and Type Field Description private int_iContextLocationprivate java.util.WeakHashMap<Debugger,DebuggerExpression.RuntimeState>_runtimeStateMapprivate java.lang.String_strClassContextprivate java.lang.String_strContextElementClassprivate java.lang.String_strText
-
Constructor Summary
Constructors Constructor Description DebuggerExpression(java.lang.String expr, java.lang.String strClassContext, java.lang.String strContextElementClass, int iContextLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.jdi.ValueboxIfPrimitive(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.Value value)private com.sun.jdi.ValueconvertToWrapper(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.PrimitiveValue value, java.lang.String wrapperTypeName)com.sun.jdi.Valueevaluate(Debugger debugger)private com.sun.jdi.ValuefindThisObjectFromCtx(com.sun.jdi.ThreadReference suspendedThread)private DebuggerExpression.RuntimeStategetRuntimeState(Debugger debugger)private com.sun.jdi.ArrayReferencemakeExternalsSymbolsForLocals(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.VirtualMachine vm, Debugger debugger)private com.sun.jdi.Valueunbox(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.ObjectReference value, java.lang.String wrapperTypeName, java.lang.String strMethod)com.sun.jdi.ValueunboxIfBoxed(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.Value value)
-
-
-
Field Detail
-
_strText
private java.lang.String _strText
-
_strClassContext
private java.lang.String _strClassContext
-
_strContextElementClass
private java.lang.String _strContextElementClass
-
_iContextLocation
private int _iContextLocation
-
_runtimeStateMap
private java.util.WeakHashMap<Debugger,DebuggerExpression.RuntimeState> _runtimeStateMap
-
-
Method Detail
-
evaluate
public com.sun.jdi.Value evaluate(Debugger debugger) throws com.sun.jdi.InvocationException
- Throws:
com.sun.jdi.InvocationException
-
getRuntimeState
private DebuggerExpression.RuntimeState getRuntimeState(Debugger debugger)
-
findThisObjectFromCtx
private com.sun.jdi.Value findThisObjectFromCtx(com.sun.jdi.ThreadReference suspendedThread)
-
makeExternalsSymbolsForLocals
private com.sun.jdi.ArrayReference makeExternalsSymbolsForLocals(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.VirtualMachine vm, Debugger debugger)
-
boxIfPrimitive
public com.sun.jdi.Value boxIfPrimitive(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.Value value)
-
unboxIfBoxed
public com.sun.jdi.Value unboxIfBoxed(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.Value value)
-
convertToWrapper
private com.sun.jdi.Value convertToWrapper(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.PrimitiveValue value, java.lang.String wrapperTypeName)
-
unbox
private com.sun.jdi.Value unbox(DebuggerExpression.RuntimeState runtimeState, com.sun.jdi.ThreadReference suspendedThread, com.sun.jdi.ObjectReference value, java.lang.String wrapperTypeName, java.lang.String strMethod)
-
-