1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.debug.core.cdi.model;
14
import org.eclipse.cdt.debug.core.cdi.CDIException;
17
* An expression is a snippet of code that can be evaluated to
22
public interface ICDIExpression extends ICDIObject {
26
* Returns the expression snippet of code.
28
* @return the expression
30
String getExpressionText();
33
* Returns true if the variable Object are the same,
34
* For example event if the name is the same because of
35
* casting this may return false;
36
* @return true if the same
38
boolean equals(ICDIExpression expr);
41
* Returns the value of this expression.
43
* @param ICDIStackFrame frame context
44
* @return the value of this expression
45
* @throws CDIException if this method fails. Reasons include:
47
ICDIValue getValue(ICDIStackFrame context) throws CDIException;
50
* Remove the expression from the manager list.
53
* @return ICDIArgument
54
* @throws CDIException
56
void dispose() throws CDIException;