Package jflex.core.unicode
Class CharClassInterval
- java.lang.Object
-
- jflex.core.unicode.CharClassInterval
-
public class CharClassInterval extends Object
Stores an interval of characters together with the character classA character belongs to an interval, if its Unicode value is greater than or equal to the Unicode value of
start
and smaller than or equal to the Unicode value ofend
.All characters of the interval must belong to the same character class.
- Version:
- JFlex 1.8.2
- Author:
- Gerwin Klein
-
-
Constructor Summary
Constructors Constructor Description CharClassInterval(int start, int end, int charClass)
Creates a new CharClassInterval fromstart</code> to <CODE>end
that belongs to character classcharClass
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int codePoint)
Determines wether the specified code point is in this interval.String
toString()
-
-
-
Constructor Detail
-
CharClassInterval
public CharClassInterval(int start, int end, int charClass)
Creates a new CharClassInterval fromstart</code> to <CODE>end
that belongs to character classcharClass
.- Parameters:
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.
-
-