Eclipse CDT
Pre-release 3.0

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

All Superinterfaces:
ICDIObject, ICDIRegisterDescriptor, ICDIVariableDescriptor

public interface ICDIRegister
extends ICDIRegisterDescriptor

A register is a special kind of variable that is contained in a register group. Each register has a name and a value.

Since:
Jul 9, 2002

Method Summary
 void dispose()
          Remove the variable from the manager list.
 boolean equals(ICDIRegister reg)
           
 ICDIValue getValue(ICDIStackFrame context)
          Returns the value of this variable.
 boolean isEditable()
          Returns true if the value of this variable could be changed.
 void setValue(ICDIValue value)
          Sets the value of this variable to the given value.
 void setValue(String expression)
          Attempts to set the value of this variable to the value of the given expression.
 
Methods inherited from interface org.eclipse.cdt.debug.core.cdi.model.ICDIVariableDescriptor
equals, getName, getQualifiedName, getType, getTypeName, getVariableDescriptorAsArray, getVariableDescriptorAsType, sizeof
 
Methods inherited from interface org.eclipse.cdt.debug.core.cdi.model.ICDIObject
getTarget
 

Method Detail

isEditable

boolean isEditable()
                   throws CDIException
Returns true if the value of this variable could be changed.

Returns:
true if the value of this variable could be changed
Throws:
CDIException - if this method fails. Reasons include:

getValue

ICDIValue getValue(ICDIStackFrame context)
                   throws CDIException
Returns the value of this variable.

Parameters:
context -
Returns:
the value of this variable
Throws:
CDIException - if this method fails. Reasons include:

setValue

void setValue(String expression)
              throws CDIException
Attempts to set the value of this variable to the value of the given expression.

Parameters:
expression - - an expression to generate a new value
Throws:
CDIException - if this method fails. Reasons include:

setValue

void setValue(ICDIValue value)
              throws CDIException
Sets the value of this variable to the given value.

Parameters:
value - - a new value
Throws:
CDIException - if this method fails. Reasons include:

dispose

void dispose()
             throws CDIException
Remove the variable from the manager list.

Parameters:
var -
Throws:
CDIException

equals

boolean equals(ICDIRegister reg)

Eclipse CDT
Pre-release 3.0

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