1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

2004-10-28 Alain Magloire

Add getType() method.
	* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExpression.java
	* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIValue.java
This commit is contained in:
Alain Magloire 2004-10-28 17:09:02 +00:00
parent dc0936d60d
commit 2dfb046061
3 changed files with 26 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-28 Alain Magloire
Add getType() method.
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIExpression.java
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIValue.java
2004-10-26 Alain Magloire
Remove ICDIMemoryManager for ICDIMemoryBlockManagement
* cdi/org/eclipse/cdt/debug/core/cdi/ICDISession.java

View file

@ -12,6 +12,7 @@
package org.eclipse.cdt.debug.core.cdi.model;
import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
/**
* An expression is a snippet of code that can be evaluated to
@ -46,4 +47,12 @@ public interface ICDIExpression extends ICDIObject {
*/
ICDIValue getValue(ICDIStackFrame context) throws CDIException;
/**
* Return the type of this expression
*
* @param context frame context
* @return
* @throws CDIException
*/
ICDIType getType(ICDIStackFrame context) throws CDIException;
}

View file

@ -12,6 +12,7 @@
package org.eclipse.cdt.debug.core.cdi.model;
import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
/**
*
@ -28,7 +29,15 @@ public interface ICDIValue extends ICDIObject {
* @throws CDIException if this method fails. Reasons include:
*/
String getTypeName() throws CDIException;
/**
* Return the type of this value.
*
* @return
* @throws CDIException
*/
ICDIType getType() throws CDIException;
/**
* Returns this value as a <code>String</code>.
*
@ -55,5 +64,6 @@ public interface ICDIValue extends ICDIObject {
* @return an array of variables
* @throws CDIException if this method fails. Reasons include:
*/
ICDIVariable[] getVariables() throws CDIException;
ICDIVariable[] getVariables() throws CDIException;
}