org.apache.regexp
Class RECompiler.RERange
java.lang.Object
org.apache.regexp.RECompiler.RERange
- RECompiler
(package private) class RECompiler.RERange
extends java.lang.Object
Local, nested class for maintaining character ranges for character classes.
(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
|
maxRange
(package private) int[] maxRange
minRange
(package private) int[] minRange
num
(package private) int num
size
(package private) int size
delete
(package private) void delete(int index)
Deletes the range at a given index from the range lists
index
- Index of range to delete from minRange and maxRange arrays.
include
(package private) void include(char minmax,
boolean include)
Includes a range with the same min and max
minmax
- Minimum and maximum end of range (inclusive)include
- True if range should be included. False otherwise.
include
(package private) void include(int min,
int max,
boolean include)
Includes (or excludes) the range from min to max, inclusive.
min
- Minimum end of rangemax
- Maximum end of rangeinclude
- True if range should be included. False otherwise.
merge
(package private) void merge(int min,
int max)
Merges a range into the range list, coalescing ranges if possible.
min
- Minimum end of rangemax
- Maximum end of range
remove
(package private) void remove(int min,
int max)
Removes a range by deleting or shrinking all other ranges
min
- Minimum end of rangemax
- Maximum end of range
Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.