From d14df0d99dccd65ae9a3732dfa437f7d7296c97f Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Fri, 9 Aug 2002 19:22:09 +0000 Subject: [PATCH] Changed the expression evaluation methods. --- .../eclipse/cdt/debug/core/cdi/model/ICTarget.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICTarget.java index 1f4e0e4d07a..d35c1c9c1eb 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/cdi/model/ICTarget.java @@ -112,20 +112,23 @@ public interface ICTarget extends ICObject /** * Evaluates the expression specified by the given string. + * Returns the evaluation result as an ICValue. * * @param - expression string to be evaluated - * @return an expression object + * @return the result of the evaluation * @throws CDIException if this method fails. Reasons include: */ - ICExpression evaluateExpression( String expressionText ) throws CDIException; + ICValue evaluateExpressionToValue( String expressionText ) throws CDIException; /** - * Evaluates the given expression. + * Evaluates the expression specified by the given string. + * Returns the evaluation result as a String. * - * @param - expression to be evaluated + * @param - expression string to be evaluated + * @return the result of the evaluation * @throws CDIException if this method fails. Reasons include: */ - void evaluateExpression( ICExpression expression ) throws CDIException; + String evaluateExpressionToString( String expressionText ) throws CDIException; /** * Returns whether this target is terminated.