com.aptana.ide.debug.internal.core.model
Class JSDebugVariable

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.debug.core.model.DebugElement
          extended by com.aptana.ide.debug.internal.core.model.JSDebugElement
              extended by com.aptana.ide.debug.internal.core.model.JSDebugVariable
All Implemented Interfaces:
IJSVariable, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IValueModification, org.eclipse.debug.core.model.IVariable

public class JSDebugVariable
extends JSDebugElement
implements IJSVariable

Author:
Max Stepanov

Field Summary
protected  int flags
          flags
protected static int FLAGS_ARGUMENT
          FLAGS_ARGUMENT
protected static int FLAGS_CONST
          FLAGS_CONST
protected static int FLAGS_EXCEPTION
          FLAGS_EXCEPTION
protected static int FLAGS_LOCAL
          FLAGS_LOCAL
protected static int FLAGS_MODIFIABLE
          FLAGS_MODIFIABLE
protected static int FLAGS_TOPLEVEL
          FLAGS_TOPLEVEL
 
Constructor Summary
JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target, java.lang.String qualifier, java.lang.String name, int flags)
          JSDebugVariable
JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target, java.lang.String qualifier, java.lang.String name, org.eclipse.debug.core.model.IValue value)
          JSDebugVariable
JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target, java.lang.String qualifier, java.lang.String name, org.eclipse.debug.core.model.IValue value, int flags)
          JSDebugVariable
 
Method Summary
 java.lang.String getFullName()
          Returns full variable name
 java.lang.String getName()
           
protected  java.lang.String getQualifier()
          getQualifier
 java.lang.String getReferenceTypeName()
           
 org.eclipse.debug.core.model.IValue getValue()
           
 boolean hasValueChanged()
           
 boolean isArgument()
          isArgument
 boolean isConst()
          isConst
 boolean isException()
          isException
 boolean isLocal()
          isLocal
 boolean isTopLevel()
          isTopLevel
 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.aptana.ide.debug.internal.core.model.JSDebugElement
getModelIdentifier, throwDebugException, throwDebugException, throwDebugException, throwNotImplemented
 
Methods inherited from class org.eclipse.debug.core.model.DebugElement
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, getDebugTarget, getLaunch, notSupported, requestFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

FLAGS_MODIFIABLE

protected static final int FLAGS_MODIFIABLE
FLAGS_MODIFIABLE

See Also:
Constant Field Values

FLAGS_LOCAL

protected static final int FLAGS_LOCAL
FLAGS_LOCAL

See Also:
Constant Field Values

FLAGS_ARGUMENT

protected static final int FLAGS_ARGUMENT
FLAGS_ARGUMENT

See Also:
Constant Field Values

FLAGS_EXCEPTION

protected static final int FLAGS_EXCEPTION
FLAGS_EXCEPTION

See Also:
Constant Field Values

FLAGS_CONST

protected static final int FLAGS_CONST
FLAGS_CONST

See Also:
Constant Field Values

FLAGS_TOPLEVEL

protected static final int FLAGS_TOPLEVEL
FLAGS_TOPLEVEL

See Also:
Constant Field Values

flags

protected int flags
flags

Constructor Detail

JSDebugVariable

public JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target,
                       java.lang.String qualifier,
                       java.lang.String name,
                       org.eclipse.debug.core.model.IValue value)
JSDebugVariable

Parameters:
target -
qualifier -
name -
value -

JSDebugVariable

public JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target,
                       java.lang.String qualifier,
                       java.lang.String name,
                       int flags)
JSDebugVariable

Parameters:
target -
qualifier -
name -
flags -

JSDebugVariable

public JSDebugVariable(org.eclipse.debug.core.model.IDebugTarget target,
                       java.lang.String qualifier,
                       java.lang.String name,
                       org.eclipse.debug.core.model.IValue value,
                       int flags)
JSDebugVariable

Parameters:
target -
qualifier -
name -
value -
flags -
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
See Also:
IVariable.getValue()

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
See Also:
IVariable.getName()

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
See Also:
IVariable.getReferenceTypeName()

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
See Also:
IVariable.hasValueChanged()

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
See Also:
IValueModification.setValue(java.lang.String)

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
See Also:
IValueModification.setValue(org.eclipse.debug.core.model.IValue)

supportsValueModification

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

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
See Also:
IValueModification.verifyValue(java.lang.String)

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
See Also:
IValueModification.verifyValue(org.eclipse.debug.core.model.IValue)

getQualifier

protected java.lang.String getQualifier()
getQualifier

Returns:
String

isLocal

public boolean isLocal()
                throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSVariable
isLocal

Specified by:
isLocal in interface IJSVariable
Returns:
boolean
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSVariable.isLocal()

isException

public boolean isException()
                    throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSVariable
isException

Specified by:
isException in interface IJSVariable
Returns:
boolean
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSVariable.isException()

isArgument

public boolean isArgument()
                   throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSVariable
isArgument

Specified by:
isArgument in interface IJSVariable
Returns:
boolean
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSVariable.isArgument()

isConst

public boolean isConst()
                throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSVariable
isConst

Specified by:
isConst in interface IJSVariable
Returns:
boolean
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSVariable.isConst()

isTopLevel

public boolean isTopLevel()
                   throws org.eclipse.debug.core.DebugException
Description copied from interface: IJSVariable
isTopLevel

Specified by:
isTopLevel in interface IJSVariable
Returns:
boolean
Throws:
org.eclipse.debug.core.DebugException
See Also:
IJSVariable.isTopLevel()

getFullName

public java.lang.String getFullName()
Description copied from interface: IJSVariable
Returns full variable name

Specified by:
getFullName in interface IJSVariable
Returns:
See Also:
IJSVariable.getFullName()