Interface IDebuggerVariable


public interface IDebuggerVariable
A variable managed by a debugger. Variables are generally provided by IDebuggerThreadStackFrame.
  • Field Details

  • Method Details

    • getName

      String getName()
      Get the variable name.
      Returns:
      variable name
    • getAlternateName

      String getAlternateName()
      Retrieve the alternate variable name.
      Returns:
      alternate name, or null
    • getFlags

      int getFlags()
      Get the variable bit flags. Refer to the FLAG_xxx constants in this class.
      Returns:
      variable flags
    • canEditValue

      boolean canEditValue()
      Indicate if the value can be changed. Use setTypedValue(ITypedValue) to modify the value.
      Returns:
      true if the value can be changed
    • getTypedValue

      ITypedValue getTypedValue()
      Retrieve the variable value.
      Returns:
      the value, null on error
    • setTypedValue

      boolean setTypedValue(ITypedValue value)
      Set the variable value. If the operation is not be permitted or supported, the return value should be false.
      Parameters:
      value - a value whose type must be consistent with the object provided by getTypedValue()
      Returns:
      true if the value was changed
    • canEditType

      boolean canEditType()
      Indicate if the type can be changed (for variables that have unknown type). Use setTypeHint(String) to modify the type.
      Returns:
      true if the type can be changed
    • setTypeHint

      boolean setTypeHint(String typeHint)
      Set the type hint for this variable.
      Parameters:
      typeHint - type hint
      Returns:
      true if the type hint was accepted
    • format

      String format()
      Return a complete, human-readable representation of the variable.
      Returns:
      formatted variable