org.apache.regexp

Class RECompiler.RERange

class RECompiler.RERange extends Object

Local, nested class for maintaining character ranges for character classes.
Field Summary
int[]maxRange
int[]minRange
intnum
intsize
Method Summary
voiddelete(int index)
Deletes the range at a given index from the range lists
voidinclude(int min, int max, boolean include)
Includes (or excludes) the range from min to max, inclusive.
voidinclude(char minmax, boolean include)
Includes a range with the same min and max
voidmerge(int min, int max)
Merges a range into the range list, coalescing ranges if possible.
voidremove(int min, int max)
Removes a range by deleting or shrinking all other ranges

Field Detail

maxRange

int[] maxRange

minRange

int[] minRange

num

int num

size

int size

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.

include

void include(int min, int max, boolean include)
Includes (or excludes) the range from min to max, inclusive.

Parameters: min Minimum end of range max Maximum end of range include 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.

merge

void merge(int min, int max)
Merges a range into the range list, coalescing ranges if possible.

Parameters: min Minimum end of range max 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 range max Maximum end of range

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.