Package org.sentrysoftware.jawk.jrt
Class ConditionPair
java.lang.Object
org.sentrysoftware.jawk.jrt.ConditionPair
Tracks whether we are within a range defined by a pair of condition:
- startCondition
- endCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
update
(boolean startMatches, boolean endMatches) Update the status of the condition pair according to whether the begin and end conditions match or not
-
Constructor Details
-
ConditionPair
public ConditionPair()Constructor for ConditionPair.
-
-
Method Details
-
update
public boolean update(boolean startMatches, boolean endMatches) Update the status of the condition pair according to whether the begin and end conditions match or not- Parameters:
startMatches
- True if the start condition is true, which means we're entering the rangeendMatches
- True if the end condition is true, which means we're leaving the range- Returns:
- wether we're within the range
-