org.eclipse.cdt.debug.core.model
Interface ICastToType

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
All Known Subinterfaces:
ICastToArray, ICGlobalVariable, ICRegister, ICVariable
All Known Implementing Classes:
AbstractCVariable, CExpression, CGlobalVariable, CLocalVariable, CRegister, CVariable

public interface ICastToType
extends org.eclipse.core.runtime.IAdaptable

Provides the ability to cast a variable to the given type.


Method Summary
 boolean canCast()
          Returns whether this element can currently be casted.
 void cast(java.lang.String type)
          Performs the casting to the given type.
 java.lang.String getCurrentType()
          Returns the string presentation of the current type.
 boolean isCasted()
          Returns whether this element is casted.
 void restoreOriginal()
          Restores the original type.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

canCast

boolean canCast()
Returns whether this element can currently be casted.

Returns:
whether this element can currently be casted

getCurrentType

java.lang.String getCurrentType()
Returns the string presentation of the current type.

Returns:
the string presentation of the current type

cast

void cast(java.lang.String type)
          throws org.eclipse.debug.core.DebugException
Performs the casting to the given type.

Parameters:
type - a type to cast to.
Throws:
org.eclipse.debug.core.DebugException

restoreOriginal

void restoreOriginal()
                     throws org.eclipse.debug.core.DebugException
Restores the original type.

Throws:
org.eclipse.debug.core.DebugException

isCasted

boolean isCasted()
Returns whether this element is casted.

Returns:
whether this element is casted