public abstract class RegexTranslator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegexTranslator.Range
A Range represents a range of consecutive Unicode codepoints
|
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
protected IntHashSet |
captures |
protected boolean |
caseBlind |
protected char |
curChar |
protected int |
currentCapture |
protected boolean |
eos |
protected boolean |
expandComplementBlockNames |
protected boolean |
ignoreWhitespace |
protected boolean |
inCharClassExpr |
protected boolean |
isXPath |
protected boolean |
isXPath30 |
protected int |
length |
static int |
NONE |
static String |
NOT_ALLOWED_CLASS |
protected int |
pos |
protected CharSequence |
regExp |
protected FastStringBuffer |
result |
static int |
SOME |
static String |
SURROGATES1_CLASS |
static String |
SURROGATES2_CLASS |
protected int |
xmlVersion |
Constructor and Description |
---|
RegexTranslator() |
Modifier and Type | Method and Description |
---|---|
protected int |
absorbSurrogatePair() |
protected void |
advance() |
protected void |
copyCurChar() |
protected void |
expect(char c) |
protected static String |
highSurrogateRanges(List ranges) |
protected static boolean |
isAsciiAlnum(char c) |
protected static boolean |
isBlock(String name) |
protected static boolean |
isJavaMetaChar(int c) |
protected static String |
lowSurrogateRanges(List ranges) |
protected RegexSyntaxException |
makeException(String key) |
protected RegexSyntaxException |
makeException(String key,
String arg) |
protected CharSequence |
parseQuantExact() |
protected void |
recede() |
protected static void |
sortRangeList(List ranges) |
protected abstract boolean |
translateAtom() |
protected void |
translateBranch() |
protected void |
translateQuantifier() |
protected void |
translateQuantity() |
protected void |
translateRegExp() |
protected void |
translateTop() |
protected CharSequence regExp
protected int xmlVersion
protected boolean isXPath
protected boolean isXPath30
protected boolean ignoreWhitespace
protected boolean inCharClassExpr
protected boolean caseBlind
protected boolean expandComplementBlockNames
protected int pos
protected int length
protected char curChar
protected boolean eos
protected int currentCapture
protected IntHashSet captures
protected final FastStringBuffer result
public static final int NONE
public static final int SOME
public static final int ALL
public static final String SURROGATES1_CLASS
public static final String SURROGATES2_CLASS
public static final String NOT_ALLOWED_CLASS
protected void translateTop() throws RegexSyntaxException
RegexSyntaxException
protected void translateRegExp() throws RegexSyntaxException
RegexSyntaxException
protected void translateBranch() throws RegexSyntaxException
RegexSyntaxException
protected abstract boolean translateAtom() throws RegexSyntaxException
RegexSyntaxException
protected void translateQuantifier() throws RegexSyntaxException
RegexSyntaxException
protected void translateQuantity() throws RegexSyntaxException
RegexSyntaxException
protected CharSequence parseQuantExact() throws RegexSyntaxException
RegexSyntaxException
protected void copyCurChar()
protected void advance()
protected int absorbSurrogatePair() throws RegexSyntaxException
RegexSyntaxException
protected void recede()
protected void expect(char c) throws RegexSyntaxException
RegexSyntaxException
protected RegexSyntaxException makeException(String key)
protected RegexSyntaxException makeException(String key, String arg)
protected static boolean isJavaMetaChar(int c)
protected static void sortRangeList(List ranges)
protected static boolean isBlock(String name)
protected static boolean isAsciiAlnum(char c)