Package net.sf.saxon.regex.charclass
Class IntSetCharacterClass
- java.lang.Object
- 
- net.sf.saxon.regex.charclass.IntSetCharacterClass
 
- 
- All Implemented Interfaces:
- java.util.function.IntPredicate,- CharacterClass,- IntPredicateProxy
 
 public class IntSetCharacterClass extends java.lang.Object implements CharacterClass A character class represents a set of characters for regex matching purposes. An IntSetCharacterClass is a character class represented by a set of integer codepoints
- 
- 
Constructor SummaryConstructors Constructor Description IntSetCharacterClass(IntSet intSet)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IntSetgetIntSet()Get the set of matching characters if available.booleanisDisjoint(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).booleantest(int value)Test whether a particular codepoint is a member of the character class- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.sf.saxon.z.IntPredicateProxyunion
 
- 
 
- 
- 
- 
Constructor Detail- 
IntSetCharacterClasspublic IntSetCharacterClass(IntSet intSet) 
 
- 
 - 
Method Detail- 
getIntSetpublic IntSet getIntSet() Description copied from interface:CharacterClassGet the set of matching characters if available. If not available, return null- Specified by:
- getIntSetin interface- CharacterClass
 
 - 
testpublic boolean test(int value) Description copied from interface:CharacterClassTest whether a particular codepoint is a member of the character class- Specified by:
- testin interface- CharacterClass
- Specified by:
- testin interface- java.util.function.IntPredicate
- Specified by:
- testin interface- IntPredicateProxy
- Parameters:
- value- the codepoint to be tested
- Returns:
- true if it matches
 
 - 
isDisjointpublic 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). If in doubt, return false.- Specified by:
- isDisjointin interface- CharacterClass
- Parameters:
- other- the other character class
- Returns:
- true if the character classes are known to be disjoint; false if there may be characters in common between the two classes
 
 
- 
 
-