|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
public abstract class CVariable
Represents a variable in the CDI model.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus |
---|
ERROR, OK, WARNING |
Method Summary | |
---|---|
boolean |
canCast()
Returns whether this element can currently be casted. |
boolean |
canCastToArray()
Returns whether this element can be currently casted to array. |
boolean |
canEnableDisable()
Returns whether this object supports enable/disable operations. |
void |
cast(java.lang.String type)
Performs the casting to the given type. |
void |
castToArray(int startIndex,
int length)
Performs the casting. |
void |
changeFormat(CVariableFormat format)
Sets the current format of this variable to format . |
void |
dispose()
|
boolean |
equals(java.lang.Object obj)
Compares the original internal variables. |
java.lang.String |
getCurrentType()
Returns the string presentation of the current type. |
java.lang.String |
getExpressionString()
Returns the text presentation of this variable as an expression. |
CVariableFormat |
getFormat()
Returns the current format of this variable. |
java.lang.String |
getName()
|
java.lang.String |
getReferenceTypeName()
|
ICType |
getType()
Returns the type of this variable. |
org.eclipse.debug.core.model.IValue |
getValue()
|
void |
handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
|
boolean |
hasValueChanged()
|
boolean |
isArgument()
Returns whether this variable is an argument. |
boolean |
isCasted()
Returns whether this element is casted. |
boolean |
isEnabled()
Returns whether this object is enabled. |
void |
restoreOriginal()
Restores the original type. |
void |
setEnabled(boolean enabled)
Enables/disables this object |
void |
setValue(org.eclipse.debug.core.model.IValue value)
|
void |
setValue(java.lang.String expression)
|
int |
sizeof()
|
boolean |
supportsFormatting()
Returns whether this variable supports formatting operations. |
boolean |
supportsValueModification()
|
boolean |
verifyValue(org.eclipse.debug.core.model.IValue value)
|
boolean |
verifyValue(java.lang.String expression)
|
Methods inherited from class org.eclipse.cdt.debug.internal.core.model.AbstractCVariable |
---|
getAdapter |
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.IDebugElement |
---|
getDebugTarget, getLaunch, getModelIdentifier |
Methods inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElement |
---|
getCurrentStateInfo, getState |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getLaunch, getModelIdentifier |
Method Detail |
---|
public ICType getType() throws org.eclipse.debug.core.DebugException
ICVariable
getType
in interface ICVariable
org.eclipse.debug.core.DebugException
public boolean isEnabled()
IEnableDisableTarget
isEnabled
in interface IEnableDisableTarget
true
if this obvject is enabled,
or false
otherwise.public void setEnabled(boolean enabled) throws org.eclipse.debug.core.DebugException
IEnableDisableTarget
setEnabled
in interface IEnableDisableTarget
enabled
- enablement flag value
org.eclipse.debug.core.DebugException
public boolean canEnableDisable()
IEnableDisableTarget
canEnableDisable
in interface IEnableDisableTarget
public boolean isArgument()
ICVariable
isArgument
in interface ICVariable
public org.eclipse.debug.core.model.IValue getValue() throws org.eclipse.debug.core.DebugException
getValue
in interface org.eclipse.debug.core.model.IVariable
org.eclipse.debug.core.DebugException
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IVariable
org.eclipse.debug.core.DebugException
public java.lang.String getReferenceTypeName() throws org.eclipse.debug.core.DebugException
getReferenceTypeName
in interface org.eclipse.debug.core.model.IVariable
org.eclipse.debug.core.DebugException
public boolean hasValueChanged() throws org.eclipse.debug.core.DebugException
hasValueChanged
in interface org.eclipse.debug.core.model.IVariable
org.eclipse.debug.core.DebugException
public boolean supportsFormatting()
IFormatSupport
supportsFormatting
in interface IFormatSupport
public CVariableFormat getFormat()
IFormatSupport
getFormat
in interface IFormatSupport
public void changeFormat(CVariableFormat format) throws org.eclipse.debug.core.DebugException
IFormatSupport
format
.
changeFormat
in interface IFormatSupport
format
- the new format type
org.eclipse.debug.core.DebugException
- if this method fails.public boolean canCastToArray()
ICastToArray
canCastToArray
in interface ICastToArray
public void castToArray(int startIndex, int length) throws org.eclipse.debug.core.DebugException
ICastToArray
castToArray
in interface ICastToArray
startIndex
- the index of the first element of the array. 0 means that
the original element is the first member of the array.length
- tha array size
org.eclipse.debug.core.DebugException
public void setValue(java.lang.String expression) throws org.eclipse.debug.core.DebugException
setValue
in interface org.eclipse.debug.core.model.IValueModification
org.eclipse.debug.core.DebugException
public void setValue(org.eclipse.debug.core.model.IValue value) throws org.eclipse.debug.core.DebugException
setValue
in interface org.eclipse.debug.core.model.IValueModification
org.eclipse.debug.core.DebugException
public boolean supportsValueModification()
supportsValueModification
in interface org.eclipse.debug.core.model.IValueModification
public boolean verifyValue(java.lang.String expression) throws org.eclipse.debug.core.DebugException
verifyValue
in interface org.eclipse.debug.core.model.IValueModification
org.eclipse.debug.core.DebugException
public boolean verifyValue(org.eclipse.debug.core.model.IValue value) throws org.eclipse.debug.core.DebugException
verifyValue
in interface org.eclipse.debug.core.model.IValueModification
org.eclipse.debug.core.DebugException
public boolean canCast()
ICastToType
canCast
in interface ICastToType
public java.lang.String getCurrentType()
ICastToType
getCurrentType
in interface ICastToType
public void cast(java.lang.String type) throws org.eclipse.debug.core.DebugException
ICastToType
cast
in interface ICastToType
type
- a type to cast to.
org.eclipse.debug.core.DebugException
public void restoreOriginal() throws org.eclipse.debug.core.DebugException
ICastToType
restoreOriginal
in interface ICastToType
org.eclipse.debug.core.DebugException
public boolean isCasted()
ICastToType
isCasted
in interface ICastToType
public void handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
handleDebugEvents
in interface org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener
public void dispose()
dispose
in class AbstractCVariable
public int sizeof()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getExpressionString() throws org.eclipse.debug.core.DebugException
ICVariable
getExpressionString
in interface ICVariable
org.eclipse.debug.core.DebugException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |