JFlex

Class CharClassInterval


public class CharClassInterval
extends java.lang.Object

Stores an interval of characters together with the character class A character belongs to an interval, if its Unicode value is greater than or equal to the Unicode value of start and smaller than or euqal to the Unicode value of end. All characters of the interval must belong to the same character class.

Constructor Summary

CharClassInterval(int start, int end, int charClass)
Creates a new CharClassInterval from start to end that belongs to character class charClass.

Method Summary

String
toString()
returns string representation of this class interval

Constructor Details

CharClassInterval

public CharClassInterval(int start,
                         int end,
                         int charClass)
Creates a new CharClassInterval from start to end that belongs to character class charClass.
Parameters:
start - The first character of the interval
end - The last character of the interval
charClass - The code of the class all characters of this interval belong to.

Method Details

toString

public String toString()
returns string representation of this class interval