public ObjectReferenceImpl thisObject()

in core/src/main/java/com/jetbrains/sa/jdi/StackFrameImpl.java [111:129]


    public ObjectReferenceImpl thisObject() {
        validateStackFrame();
        MethodImpl currentMethod = location.method();
        if (currentMethod.isStatic() || currentMethod.isNative()) {
            return null;
        }
        if (thisObject == null) {
            StackValueCollection values = getLocals();
            if (Assert.ASSERTS_ENABLED) {
                Assert.that(values.size() > 0, "this is missing");
            }
            // 'this' at index 0.
            if (values.get(0).getType() == BasicType.getTConflict()) {
              return null;
            }
            thisObject = vm().objectMirror(values.oopHandleAt(0));
        }
        return thisObject;
    }