com.pvx.ooadide.launchers.debug.model
Class PVXVariable

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by com.pvx.ooadide.launchers.debug.model.PVXDebugElement
              extended by com.pvx.ooadide.launchers.debug.model.PVXVariable
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IValueModification, org.eclipse.debug.core.model.IVariable
Direct Known Subclasses:
PvxArrayElementVariable, PVXArrayValue

public class PVXVariable
extends PVXDebugElement
implements org.eclipse.debug.core.model.IVariable

A variable in a PVX stack frame


Field Summary
static java.lang.String TYPE_NUMERIC
           
static java.lang.String TYPE_STRING
           
 
Constructor Summary
PVXVariable(PVXStackFrame frame, java.lang.String var)
          Constructs a variable contained in the given stack frame with the given name.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String getReferenceTypeName()
           
 org.eclipse.debug.core.model.IValue getValue()
           
 boolean hasValueChanged()
           
 boolean hasVariables()
           
 void setValue(org.eclipse.debug.core.model.IValue value)
           
 void setValue(java.lang.String expression)
           
 boolean supportsValueModification()
           
 boolean verifyValue(org.eclipse.debug.core.model.IValue value)
           
 boolean verifyValue(java.lang.String expression)
           
 
Methods inherited from class com.pvx.ooadide.launchers.debug.model.PVXDebugElement
getModelIdentifier, sendRequest
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, getDebugTarget, getLaunch
 
Methods inherited from class java.lang.Object
equals, 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.core.runtime.IAdaptable
getAdapter
 

Field Detail

TYPE_STRING

public static final java.lang.String TYPE_STRING
See Also:
Constant Field Values

TYPE_NUMERIC

public static final java.lang.String TYPE_NUMERIC
See Also:
Constant Field Values
Constructor Detail

PVXVariable

public PVXVariable(PVXStackFrame frame,
                   java.lang.String var)
Constructs a variable contained in the given stack frame with the given name.

Parameters:
frame - owning stack frame
name - variable name
Method Detail

getValue

public org.eclipse.debug.core.model.IValue getValue()
                                             throws org.eclipse.debug.core.DebugException
Specified by:
getValue in interface org.eclipse.debug.core.model.IVariable
Throws:
org.eclipse.debug.core.DebugException

getName

public java.lang.String getName()
                         throws org.eclipse.debug.core.DebugException
Specified by:
getName in interface org.eclipse.debug.core.model.IVariable
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
Throws:
org.eclipse.debug.core.DebugException

hasValueChanged

public boolean hasValueChanged()
                        throws org.eclipse.debug.core.DebugException
Specified by:
hasValueChanged in interface org.eclipse.debug.core.model.IVariable
Throws:
org.eclipse.debug.core.DebugException

setValue

public void setValue(java.lang.String expression)
              throws org.eclipse.debug.core.DebugException
Specified by:
setValue in interface org.eclipse.debug.core.model.IValueModification
Throws:
org.eclipse.debug.core.DebugException

setValue

public void setValue(org.eclipse.debug.core.model.IValue value)
              throws org.eclipse.debug.core.DebugException
Specified by:
setValue in interface org.eclipse.debug.core.model.IValueModification
Throws:
org.eclipse.debug.core.DebugException

supportsValueModification

public boolean supportsValueModification()
Specified by:
supportsValueModification in interface org.eclipse.debug.core.model.IValueModification

verifyValue

public boolean verifyValue(java.lang.String expression)
                    throws org.eclipse.debug.core.DebugException
Specified by:
verifyValue in interface org.eclipse.debug.core.model.IValueModification
Throws:
org.eclipse.debug.core.DebugException

verifyValue

public boolean verifyValue(org.eclipse.debug.core.model.IValue value)
                    throws org.eclipse.debug.core.DebugException
Specified by:
verifyValue in interface org.eclipse.debug.core.model.IValueModification
Throws:
org.eclipse.debug.core.DebugException

hasVariables

public boolean hasVariables()
                     throws org.eclipse.debug.core.DebugException
Throws:
org.eclipse.debug.core.DebugException