public class CharClassInterval
extends java.lang.Object
start
and smaller than or euqal to the Unicode
value of end
.
All characters of the interval must belong to the same character class.Modifier and Type | Field and Description |
---|---|
(package private) int |
charClass
The code of the class all characters of this interval belong to.
|
(package private) int |
end
The last character of the interval
|
(package private) int |
start
The first character of the interval
|
Constructor and Description |
---|
CharClassInterval(int start,
int end,
int charClass)
Creates a new CharClassInterval from
start to end
that belongs to character class charClass . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
returns string representation of this class interval
|
int start
int end
int charClass
public CharClassInterval(int start, int end, int charClass)
start
to end
that belongs to character class charClass
.start
- The first character of the intervalend
- The last character of the intervalcharClass
- The code of the class all characters of this interval belong to.