Interface IDebuggerVariable
public interface IDebuggerVariable
A variable managed by a debugger. Variables are generally provided by
IDebuggerThreadStackFrame.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicate if the type can be changed (for variables that have unknown type).booleanIndicate if the value can be changed.format()Return a complete, human-readable representation of the variable.intgetFlags()Get the variable bit flags.getName()Get the variable name.Retrieve the variable value.booleansetTypedValue(ITypedValue value) Set the variable value.booleansetTypeHint(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_xxxconstants 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:
-