|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.regexp.RECompiler.RERange
class RECompiler.RERange
Local, nested class for maintaining character ranges for character classes.
Field Summary | |
---|---|
(package private) int[] |
maxRange
|
(package private) int[] |
minRange
|
(package private) int |
num
|
(package private) int |
size
|
Constructor Summary | |
---|---|
RECompiler.RERange()
|
Method Summary | |
---|---|
(package private) void |
delete(int index)
Deletes the range at a given index from the range lists |
(package private) void |
include(char minmax,
boolean include)
Includes a range with the same min and max |
(package private) void |
include(int min,
int max,
boolean include)
Includes (or excludes) the range from min to max, inclusive. |
(package private) void |
merge(int min,
int max)
Merges a range into the range list, coalescing ranges if possible. |
(package private) void |
remove(int min,
int max)
Removes a range by deleting or shrinking all other ranges |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int size
int[] minRange
int[] maxRange
int num
Constructor Detail |
---|
RECompiler.RERange()
Method Detail |
---|
void delete(int index)
index
- Index of range to delete from minRange and maxRange arrays.void merge(int min, int max)
min
- Minimum end of rangemax
- Maximum end of rangevoid remove(int min, int max)
min
- Minimum end of rangemax
- Maximum end of rangevoid include(int min, int max, boolean include)
min
- Minimum end of rangemax
- Maximum end of rangeinclude
- True if range should be included. False otherwise.void include(char minmax, boolean include)
minmax
- Minimum and maximum end of range (inclusive)include
- True if range should be included. False otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |