org.eclipse.cdt.debug.internal.core.model
Class CExpression
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.debug.internal.core.model.CDebugElement
org.eclipse.cdt.debug.internal.core.model.AbstractCVariable
org.eclipse.cdt.debug.internal.core.model.CVariable
org.eclipse.cdt.debug.internal.core.model.CLocalVariable
org.eclipse.cdt.debug.internal.core.model.CExpression
- All Implemented Interfaces:
- org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener, ICastToArray, ICastToType, ICDebugElement, ICDebugElementStatus, ICVariable, IEnableDisableTarget, IFormatSupport, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IExpression, org.eclipse.debug.core.model.IValueModification, org.eclipse.debug.core.model.IVariable
public class CExpression
- extends CLocalVariable
- implements org.eclipse.debug.core.model.IExpression
Represents an expression in the CDI model.
Constructor Summary |
CExpression(CStackFrame frame,
org.eclipse.cdt.debug.core.cdi.model.ICDIExpression cdiExpression,
org.eclipse.cdt.debug.core.cdi.model.ICDIVariableDescriptor varObject)
Constructor for CExpression. |
Methods inherited from class org.eclipse.cdt.debug.internal.core.model.CVariable |
canCast, canCastToArray, cast, castToArray, changeFormat, equals, getCurrentType, getFormat, getName, hasValueChanged, isArgument, isCasted, restoreOriginal, setEnabled, setValue, setValue, sizeof, supportsFormatting, supportsValueModification, verifyValue, verifyValue |
Methods inherited from class org.eclipse.cdt.debug.internal.core.model.CDebugElement |
createChangeEvent, createCreateEvent, createResumeEvent, createSuspendEvent, createTerminateEvent, fireChangeEvent, fireCreationEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getCDISession, getCDITarget, getCurrentStateInfo, getDebugTarget, getLaunch, getMessage, getModelIdentifier, getSeverity, getState, isOK, notSupported, requestFailed, requestFailed, targetRequestFailed, targetRequestFailed |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IExpression |
getDebugTarget |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
getLaunch, getModelIdentifier |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
CExpression
public CExpression(CStackFrame frame,
org.eclipse.cdt.debug.core.cdi.model.ICDIExpression cdiExpression,
org.eclipse.cdt.debug.core.cdi.model.ICDIVariableDescriptor varObject)
- Constructor for CExpression.
getExpressionText
public java.lang.String getExpressionText()
- Specified by:
getExpressionText
in interface org.eclipse.debug.core.model.IExpression
handleDebugEvents
public void handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
- Specified by:
handleDebugEvents
in interface org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener
- Overrides:
handleDebugEvents
in class CVariable
isEnabled
public boolean isEnabled()
- Description copied from interface:
IEnableDisableTarget
- Returns whether this object is enabled.
- Specified by:
isEnabled
in interface IEnableDisableTarget
- Overrides:
isEnabled
in class CVariable
- Returns:
true
if this obvject is enabled,
or false
otherwise.
canEnableDisable
public boolean canEnableDisable()
- Description copied from interface:
IEnableDisableTarget
- Returns whether this object supports enable/disable operations.
- Specified by:
canEnableDisable
in interface IEnableDisableTarget
- Overrides:
canEnableDisable
in class CVariable
- Returns:
- whether this object supports enable/disable operations
getValue
public org.eclipse.debug.core.model.IValue getValue()
- Specified by:
getValue
in interface org.eclipse.debug.core.model.IExpression
- Specified by:
getValue
in interface org.eclipse.debug.core.model.IVariable
- Overrides:
getValue
in class CVariable
getExpressionString
public java.lang.String getExpressionString()
throws org.eclipse.debug.core.DebugException
- Description copied from interface:
ICVariable
- Returns the text presentation of this variable as an expression.
- Specified by:
getExpressionString
in interface ICVariable
- Overrides:
getExpressionString
in class CVariable
- Returns:
- the text presentation of this variable as an expression
- Throws:
org.eclipse.debug.core.DebugException
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.debug.core.model.IExpression
- Overrides:
dispose
in class CVariable
getType
public ICType getType()
throws org.eclipse.debug.core.DebugException
- Description copied from interface:
ICVariable
- Returns the type of this variable.
- Specified by:
getType
in interface ICVariable
- Overrides:
getType
in class CVariable
- Returns:
- the type of this variable
- Throws:
org.eclipse.debug.core.DebugException
getReferenceTypeName
public java.lang.String getReferenceTypeName()
throws org.eclipse.debug.core.DebugException
- Specified by:
getReferenceTypeName
in interface org.eclipse.debug.core.model.IVariable
- Overrides:
getReferenceTypeName
in class CVariable
- Throws:
org.eclipse.debug.core.DebugException