Package org.apache.regexp
Class RECompiler.RERange
- java.lang.Object
-
- org.apache.regexp.RECompiler.RERange
-
- Enclosing class:
- RECompiler
class RECompiler.RERange extends java.lang.ObjectLocal, nested class for maintaining character ranges for character classes.
-
-
Constructor Summary
Constructors Constructor Description RERange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddelete(int index)Deletes the range at a given index from the range lists(package private) voidinclude(char minmax, boolean include)Includes a range with the same min and max(package private) voidinclude(int min, int max, boolean include)Includes (or excludes) the range from min to max, inclusive.(package private) voidmerge(int min, int max)Merges a range into the range list, coalescing ranges if possible.(package private) voidremove(int min, int max)Removes a range by deleting or shrinking all other ranges
-
-
-
Method Detail
-
delete
void delete(int index)
Deletes the range at a given index from the range lists- Parameters:
index- Index of range to delete from minRange and maxRange arrays.
-
merge
void merge(int min, int max)Merges a range into the range list, coalescing ranges if possible.- Parameters:
min- Minimum end of rangemax- Maximum end of range
-
remove
void remove(int min, int max)Removes a range by deleting or shrinking all other ranges- Parameters:
min- Minimum end of rangemax- Maximum end of range
-
include
void include(int min, int max, boolean include)Includes (or excludes) the range from min to max, inclusive.- Parameters:
min- Minimum end of rangemax- Maximum end of rangeinclude- True if range should be included. False otherwise.
-
include
void include(char minmax, boolean include)Includes a range with the same min and max- Parameters:
minmax- Minimum and maximum end of range (inclusive)include- True if range should be included. False otherwise.
-
-