public class InverseCharacterClass extends java.lang.Object implements CharacterClass
| Constructor and Description |
|---|
InverseCharacterClass(CharacterClass complement)
Create the complement of a character class, that is, a character class containing exactly
those characters that are not included in the supplied character class
|
| Modifier and Type | Method and Description |
|---|---|
CharacterClass |
getComplement()
Get the character class of which this class is the complement
|
IntSet |
getIntSet()
Get the set of matching characters if available.
|
boolean |
isDisjoint(CharacterClass other)
Ask whether this character class is known to be disjoint with another character class
(that is, the two classes have no characters in common).
|
boolean |
test(int value) |
public InverseCharacterClass(CharacterClass complement)
complement - the class of which this one is the complementpublic CharacterClass getComplement()
public boolean test(int value)
test in interface java.util.function.IntPredicatepublic boolean isDisjoint(CharacterClass other)
CharacterClassisDisjoint in interface CharacterClassother - the other character classpublic IntSet getIntSet()
CharacterClassgetIntSet in interface CharacterClassCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.