fr.umlv.tatoo.cc.lexer.charset
Class CharacterSet
java.lang.Object
fr.umlv.tatoo.cc.lexer.charset.CharacterSet
public class CharacterSet
- extends Object
- Author:
- jcervell
LEXICO
public static final Comparator<CharacterInterval> LEXICO
CharacterSet
public CharacterSet(List<CharacterInterval> intervalList,
boolean negate,
Encoding encoding)
CharacterSet
public CharacterSet(List<CharacterInterval> list)
- Parameters:
list
- a list of sorted intervals which must not overlap
union
public CharacterSet union(CharacterSet secondSet)
split
public Triplet split(CharacterSet secondSet)
- split(A,B) returns (A\B,A inter B,B\A) each is null if empty
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getList
public List<CharacterInterval> getList()