|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bluemarsh.jswat.breakpoint.ValueCondition
Class ValueCondition implements a breakpoint conditional that is satisfied when a field or local variable is equal to a particular value.
Field Summary | |
protected java.lang.String |
valueString
Original value to compare against, as a String. |
protected java.lang.String |
variableName
Name of the variable to examine. |
Constructor Summary | |
ValueCondition(java.lang.String expr)
Constructs a ValueCondition that is satisfied when the given expression is satisfied. |
|
ValueCondition(java.lang.String expr,
java.lang.String value)
Constructs a ValueCondition that is satisfied when the named variable equals the given value. |
Method Summary | |
ConditionUI |
getUIAdapter()
Returns the user interface widget for customizing this condition. |
java.lang.String |
getValueString()
Retrieves the value this condition tests for. |
java.lang.String |
getVariableName()
Retrieves the variable name of this condition. |
boolean |
isSatisfied(com.sun.jdi.event.Event event)
Returns true if this condition is satisfied. |
void |
setValueString(java.lang.String value)
Sets the value this condition tests for. |
void |
setVariableName(java.lang.String name)
Sets the variable name of this condition. |
java.lang.String |
toString()
Returns a string representation of this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String variableName
protected java.lang.String valueString
Constructor Detail |
public ValueCondition(java.lang.String expr, java.lang.String value)
expr
- variable name expression (e.g. "this.counter").value
- value to compare against.public ValueCondition(java.lang.String expr)
variable = value
where 'variable' is the name of a variable and 'value' is
string, character, boolean, or number.expr
- variable name, equals sign, and value. The
expression may contain escaped equals signs,
which will be ignored.IllegalArugmentException
- if expression lacks the equals sign (=).Method Detail |
public java.lang.String getValueString()
public java.lang.String getVariableName()
public ConditionUI getUIAdapter()
getUIAdapter
in interface Condition
public boolean isSatisfied(com.sun.jdi.event.Event event) throws java.lang.Exception
isSatisfied
in interface Condition
event
- JDI Event that brought us here.public void setValueString(java.lang.String value)
value
- new value to test for.public void setVariableName(java.lang.String name)
name
- new name of variable to test.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |