public interface

IDebuggerVariable

com.pnfsoftware.jeb.core.units.code.debug.IDebuggerVariable

Class Overview

A variable managed by a debugger. Variables are generally provided by IDebuggerThreadStackFrame.

Summary

Constants
int FLAG_FINAL
int FLAG_PRIVATE
int FLAG_PROTECTED
int FLAG_PUBLIC
int FLAG_STATIC
Public Methods
abstract boolean canEditType()
Indicate if the type can be changed (for variables that have unknown type).
abstract boolean canEditValue()
Indicate if the value can be changed.
abstract String format()
Return a complete, human-readable representation of the variable.
abstract String getAlternateName()
abstract int getFlags()
Get the variable bit flags.
abstract String getName()
Get the variable name.
abstract ITypedValue getTypedValue()
Retrieve the variable value.
abstract boolean setTypeHint(String typeHint)
Set the type hint for this variable.
abstract boolean setTypedValue(ITypedValue value)
Set the variable value.

Constants

public static final int FLAG_FINAL

Constant Value: 16 (0x00000010)

public static final int FLAG_PRIVATE

Constant Value: 2 (0x00000002)

public static final int FLAG_PROTECTED

Constant Value: 4 (0x00000004)

public static final int FLAG_PUBLIC

Constant Value: 1 (0x00000001)

public static final int FLAG_STATIC

Constant Value: 8 (0x00000008)

Public Methods

public abstract boolean canEditType ()

Indicate if the type can be changed (for variables that have unknown type). Use setTypeHint(String) to modify the type.

public abstract boolean canEditValue ()

Indicate if the value can be changed. Use setTypedValue(ITypedValue) to modify the value.

public abstract String format ()

Return a complete, human-readable representation of the variable.

public abstract String getAlternateName ()

Returns
  • may be null

public abstract int getFlags ()

Get the variable bit flags. Refer to the FLAG_xxx constants in this class.

public abstract String getName ()

Get the variable name.

public abstract ITypedValue getTypedValue ()

Retrieve the variable value.

Returns
  • the value, null on error

public abstract boolean setTypeHint (String typeHint)

Set the type hint for this variable.

public abstract 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()