Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.debug.core.cdi.model
Interface ICDIExpression

All Superinterfaces:
ICDIObject

public interface ICDIExpression
extends ICDIObject

An expression is a snippet of code that can be evaluated to produce a value.

Since:
Jul 9, 2002

Method Summary
 void dispose()
          Remove the expression from the manager list.
 boolean equals(ICDIExpression expr)
          Returns true if the variable Object are the same, For example event if the name is the same because of casting this may return false;
 String getExpressionText()
          Returns the expression snippet of code.
 ICDIValue getValue(ICDIStackFrame context)
          Returns the value of this expression.
 
Methods inherited from interface org.eclipse.cdt.debug.core.cdi.model.ICDIObject
getTarget
 

Method Detail

getExpressionText

String getExpressionText()
Returns the expression snippet of code.

Returns:
the expression

equals

boolean equals(ICDIExpression expr)
Returns true if the variable Object are the same, For example event if the name is the same because of casting this may return false;

Returns:
true if the same

getValue

ICDIValue getValue(ICDIStackFrame context)
                   throws CDIException
Returns the value of this expression.

Parameters:
ICDIStackFrame - frame context
Returns:
the value of this expression
Throws:
CDIException - if this method fails. Reasons include:

dispose

void dispose()
             throws CDIException
Remove the expression from the manager list.

Parameters:
var -
Throws:
CDIException

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.