1 22 23 package org.aspectj.debugger.request; 24 25 import org.aspectj.debugger.base.*; 26 27 import com.sun.jdi.*; 28 import java.math.*; 29 30 38 39 public abstract class ExpressionGettingRequest extends Request { 40 41 private Object valueRep; 42 private Evaluator eval; 43 44 public ExpressionGettingRequest(Debugger debugger, Object valueRep) { 45 super(debugger); 46 this.valueRep = valueRep; 47 this.eval = new Evaluator((AJDebugger) debugger); 48 } 49 50 protected Value getValue() throws NoVMException, DebuggerException { 51 return eval.getValue(valueRep, dbg().getDefaultFrame()); 52 } 53 54 public String getValueString() { 55 return valueRep + ""; 56 } 57 58 protected Evaluator eval() { 59 return eval; 60 } 61 } 62 | Popular Tags |