Package net.sf.saxon.regex
Class SurrogateRegexTranslator.Complement
- java.lang.Object
-
- net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
-
- net.sf.saxon.regex.SurrogateRegexTranslator.Complement
-
- Enclosing class:
- SurrogateRegexTranslator
public static class SurrogateRegexTranslator.Complement extends SurrogateRegexTranslator.CharClass
Character class representing the complement of another character class, that is, all characters that the other class doesn't match.
-
-
Constructor Summary
Constructors Constructor Description Complement(SurrogateRegexTranslator.CharClass cc)Create a character class representing the complement of another character class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNonBmpRanges(java.util.List ranges)Add to a supplied List, ranges of non-BMP characters that are matched by this character class.voidoutputBmp(FastStringBuffer buf)Output a representation of the subset of this character class that's within the BMP, to a supplied buffervoidoutputComplementBmp(FastStringBuffer buf)Output a representation of the complement of the subset of this character class that's within the BMP, to a supplied buffer-
Methods inherited from class net.sf.saxon.regex.SurrogateRegexTranslator.CharClass
getContainsBmp, getContainsNonBmp, getSingleChar, output
-
-
-
-
Constructor Detail
-
Complement
public Complement(SurrogateRegexTranslator.CharClass cc)
Create a character class representing the complement of another character class- Parameters:
cc- the character class of which this is the complement
-
-
Method Detail
-
outputBmp
public void outputBmp(FastStringBuffer buf)
Description copied from class:SurrogateRegexTranslator.CharClassOutput a representation of the subset of this character class that's within the BMP, to a supplied buffer- Specified by:
outputBmpin classSurrogateRegexTranslator.CharClass- Parameters:
buf- the supplied buffer
-
outputComplementBmp
public void outputComplementBmp(FastStringBuffer buf)
Description copied from class:SurrogateRegexTranslator.CharClassOutput a representation of the complement of the subset of this character class that's within the BMP, to a supplied buffer- Specified by:
outputComplementBmpin classSurrogateRegexTranslator.CharClass- Parameters:
buf- the supplied buffer
-
addNonBmpRanges
public void addNonBmpRanges(java.util.List ranges)
Description copied from class:SurrogateRegexTranslator.CharClassAdd to a supplied List, ranges of non-BMP characters that are matched by this character class. Default implementation does nothing.- Overrides:
addNonBmpRangesin classSurrogateRegexTranslator.CharClass- Parameters:
ranges- a List to which this method will add zero or more Range objects denoting ranges of non-BMP characters
-
-