Interface IDebuggerVariable
public interface IDebuggerVariable
A variable managed by a debugger. Variables are generally provided by
IDebuggerThreadStackFrame
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicate if the type can be changed (for variables that have unknown type).boolean
Indicate if the value can be changed.format()
Return a complete, human-readable representation of the variable.int
getFlags()
Get the variable bit flags.getName()
Get the variable name.Retrieve the variable value.boolean
setTypedValue
(ITypedValue value) Set the variable value.boolean
setTypeHint
(String typeHint) Set the type hint for this variable.
-
Field Details
-
FLAG_PUBLIC
static final int FLAG_PUBLIC- See Also:
-
FLAG_PRIVATE
static final int FLAG_PRIVATE- See Also:
-
FLAG_PROTECTED
static final int FLAG_PROTECTED- See Also:
-
FLAG_STATIC
static final int FLAG_STATIC- See Also:
-
FLAG_FINAL
static final int FLAG_FINAL- See Also:
-
-
Method Details
-
getName
String getName()Get the variable name.- Returns:
-
getAlternateName
String getAlternateName()- Returns:
- may be null
-
getFlags
int getFlags()Get the variable bit flags. Refer to theFLAG_xxx
constants in this class.- Returns:
-
canEditValue
boolean canEditValue()Indicate if the value can be changed. UsesetTypedValue(ITypedValue)
to modify the value.- Returns:
-
getTypedValue
ITypedValue getTypedValue()Retrieve the variable value.- Returns:
- the value, null on error
-
setTypedValue
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 bygetTypedValue()
- Returns:
-
canEditType
boolean canEditType()Indicate if the type can be changed (for variables that have unknown type). UsesetTypeHint(String)
to modify the type.- Returns:
-
setTypeHint
Set the type hint for this variable.- Parameters:
typeHint
-- Returns:
-
format
String format()Return a complete, human-readable representation of the variable.- Returns:
-