public class SingletonCharacterClass extends java.lang.Object implements CharacterClass
Constructor and Description |
---|
SingletonCharacterClass(int codepoint) |
Modifier and Type | Method and Description |
---|---|
int |
getCodepoint() |
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 |
matches(int value)
Ask whether a given value matches this predicate
|
public boolean matches(int value)
IntPredicate
matches
in interface IntPredicate
value
- the value to be testedpublic boolean isDisjoint(CharacterClass other)
CharacterClass
isDisjoint
in interface CharacterClass
other
- the other character classpublic int getCodepoint()
public IntSet getIntSet()
CharacterClass
getIntSet
in interface CharacterClass
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.