Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
ICDIObject
All Known Subinterfaces:
ICDIAggregateValue, ICDIArrayValue, ICDIBoolValue, ICDICharValue, ICDIDerivedValue, ICDIDoubleValue, ICDIEnumValue, ICDIFloatingPointValue, ICDIFloatValue, ICDIFunctionValue, ICDIIntegralValue, ICDIIntValue, ICDILongLongValue, ICDILongValue, ICDIPointerValue, ICDIReferenceValue, ICDIShortValue, ICDIStructValue, ICDIWCharValue

public interface ICDIValue
extends ICDIObject

Represents the value of a variable. A value representing a complex data structure contains variables.

Since:
Jul 9, 2002

Method Summary
 int getChildrenNumber()
          Return the number of children.
 ICDIType getType()
          Return the type of this value.
 String getTypeName()
          Returns a description of the type of data this value contains.
 String getValueString()
          Returns this value as a String.
 ICDIVariable[] getVariables()
          Returns the variables in this value.
 boolean hasChildren()
           
 
Methods inherited from interface org.eclipse.cdt.debug.core.cdi.model.ICDIObject
getTarget
 

Method Detail

getTypeName

String getTypeName()
                   throws CDIException
Returns a description of the type of data this value contains.

Returns:
the name of this value's data type
Throws:
CDIException - if this method fails. Reasons include:

getType

ICDIType getType()
                 throws CDIException
Return the type of this value.

Returns:
Throws:
CDIException

getValueString

String getValueString()
                      throws CDIException
Returns this value as a String.

Returns:
a String representation of this value
Throws:
CDIException - if this method fails. Reasons include:

getChildrenNumber

int getChildrenNumber()
                      throws CDIException
Return the number of children.

Returns:
int children count
Throws:
CDIException

hasChildren

boolean hasChildren()
                    throws CDIException
Returns:
true if value is a container like structure.
Throws:
CDIException

getVariables

ICDIVariable[] getVariables()
                            throws CDIException
Returns the variables in this value. An empty collection is returned if there are no variables.

Returns:
an array of variables
Throws:
CDIException - if this method fails. Reasons include:

Eclipse CDT
Pre-release 3.0

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