|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.debug.DebugWatchData
public class DebugWatchData
Class for keeping track of watched fields and variables.
| Field Summary | |
|---|---|
static String |
NO_TYPE
String to display if the type is not in scope. |
static String |
NO_VALUE
String to display if the value is not in scope. |
static String |
NOT_LOADED
String to display if the type is not loaded. |
| Constructor Summary | |
|---|---|
DebugWatchData(String name)
Object to keep track of a watched field or variable. |
|
| Method Summary | |
|---|---|
String |
getName()
Returns the name of this field or variable. |
String |
getType()
Returns the type of this field or variable in the current context. |
String |
getValue()
Returns the most recently determined value for this field or variable. |
void |
hideValueAndType()
Hides the value for this watch (when no thread is suspended). |
boolean |
isChanged()
Returns whether this value has changed since the last call to setValue. |
void |
setName(String name)
Sets a new name for this field or variable. |
void |
setNoType()
Called to indicate that this watch has no type in the current scope. |
void |
setNoValue()
Called to indicate that this watch has no value in the current scope. |
void |
setType(String type)
Sets the most recently determined type of this field or variable. |
void |
setTypeNotLoaded()
Called to indicate that this watch's type has not been loaded. |
void |
setValue(Object value)
Sets the most recently determined value for this field or variable. |
String |
toString()
Returns a legible representation of the type, name, and value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NO_VALUE
public static final String NO_TYPE
public static final String NOT_LOADED
| Constructor Detail |
|---|
public DebugWatchData(String name)
name - Name of the field or variable to watch| Method Detail |
|---|
public String getName()
public String getValue()
public String getType()
public void setName(String name)
name - Name of the field or variablepublic void setValue(Object value)
value - Value of the field or variablepublic void hideValueAndType()
public void setNoValue()
public void setType(String type)
type - Type of the field or variablepublic void setNoType()
public void setTypeNotLoaded()
public boolean isChanged()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||