@Test public void testGetThisVariable() throws Exception { assertNotNull("Should not return null on test method.", VariableUtils.getThisVariable(getStackFrame())); assertNull("Should return null on main method.", VariableUtils.getThisVariable(getSecondLevelStackFrame())); }
public static Variable getThisVariable(StackFrame stackFrame) { ObjectReference thisObject = stackFrame.thisObject(); if (thisObject == null) { return null; } return new Variable("this", thisObject); }
VariableUtils { public static Variable getThisVariable(StackFrame stackFrame) { ObjectReference thisObject = stackFrame.thisObject(); if (thisObject == null) { return null; } return new Variable("this", thisObject); } }
VariableUtils { public static Variable getThisVariable(StackFrame stackFrame) { ObjectReference thisObject = stackFrame.thisObject(); if (thisObject == null) { return null; } return new Variable("this", thisObject); } private  VariableUtils(); }
VariableUtils { public static Variable getThisVariable(StackFrame stackFrame) { ObjectReference thisObject = stackFrame.thisObject(); if (thisObject == null) { return null; } return new Variable("this", thisObject); } private  VariableUtils(); static boolean hasChildren(Value value, boolean includeStatic); static List<Variable> listFieldVariables(ObjectReference obj, boolean includeStatic); static List<Variable> listFieldVariables(ObjectReference obj, int start, int count); static List<Variable> listLocalVariables(StackFrame stackFrame); static Variable getThisVariable(StackFrame stackFrame); static List<Variable> listStaticVariables(StackFrame stackFrame); static void applyFormatterOptions(Map<String, Object> defaultOptions, boolean hexInArgument); static String getEvaluateName(String name, String containerName, boolean isArrayElement); }
VariableUtils { public static Variable getThisVariable(StackFrame stackFrame) { ObjectReference thisObject = stackFrame.thisObject(); if (thisObject == null) { return null; } return new Variable("this", thisObject); } private  VariableUtils(); static boolean hasChildren(Value value, boolean includeStatic); static List<Variable> listFieldVariables(ObjectReference obj, boolean includeStatic); static List<Variable> listFieldVariables(ObjectReference obj, int start, int count); static List<Variable> listLocalVariables(StackFrame stackFrame); static Variable getThisVariable(StackFrame stackFrame); static List<Variable> listStaticVariables(StackFrame stackFrame); static void applyFormatterOptions(Map<String, Object> defaultOptions, boolean hexInArgument); static String getEvaluateName(String name, String containerName, boolean isArrayElement);  }