| |
|
| java.lang.Object org.apache.xerces.impl.xpath.regex.RegexParser
All known Subclasses: org.apache.xerces.impl.xpath.regex.ParserForXMLSchema,
RegexParser | class RegexParser (Code) | | A Regular Expression Parser.
version: $Id: RegexParser.java 469061 2006-10-30 04:16:15Z mrglavas $ |
Inner Class :static class ReferencePosition | |
S_INBRACKETS | final protected static int S_INBRACKETS(Code) | | |
S_INXBRACKETS | final protected static int S_INXBRACKETS(Code) | | |
S_NORMAL | final protected static int S_NORMAL(Code) | | |
T_BACKSOLIDUS | final static int T_BACKSOLIDUS(Code) | | |
T_CARET | final static int T_CARET(Code) | | |
T_CHAR | final static int T_CHAR(Code) | | |
T_COMMENT | final static int T_COMMENT(Code) | | |
T_CONDITION | final static int T_CONDITION(Code) | | |
T_DOLLAR | final static int T_DOLLAR(Code) | | |
T_DOT | final static int T_DOT(Code) | | |
T_EOF | final static int T_EOF(Code) | | |
T_INDEPENDENT | final static int T_INDEPENDENT(Code) | | |
T_LBRACKET | final static int T_LBRACKET(Code) | | |
T_LOOKAHEAD | final static int T_LOOKAHEAD(Code) | | |
T_LOOKBEHIND | final static int T_LOOKBEHIND(Code) | | |
T_LPAREN | final static int T_LPAREN(Code) | | |
T_LPAREN2 | final static int T_LPAREN2(Code) | | |
T_MODIFIERS | final static int T_MODIFIERS(Code) | | |
T_NEGATIVELOOKAHEAD | final static int T_NEGATIVELOOKAHEAD(Code) | | |
T_NEGATIVELOOKBEHIND | final static int T_NEGATIVELOOKBEHIND(Code) | | |
T_OR | final static int T_OR(Code) | | |
T_PLUS | final static int T_PLUS(Code) | | |
T_POSIX_CHARCLASS_START | final static int T_POSIX_CHARCLASS_START(Code) | | |
T_QUESTION | final static int T_QUESTION(Code) | | |
T_RPAREN | final static int T_RPAREN(Code) | | |
T_SET_OPERATIONS | final static int T_SET_OPERATIONS(Code) | | |
T_STAR | final static int T_STAR(Code) | | |
T_XMLSCHEMA_CC_SUBTRACTION | final static int T_XMLSCHEMA_CC_SUBTRACTION(Code) | | |
hasBackReferences | boolean hasBackReferences(Code) | | |
parennumber | int parennumber(Code) | | |
RegexParser | public RegexParser()(Code) | | |
checkQuestion | boolean checkQuestion(int off)(Code) | | |
getTokenForShorthand | Token getTokenForShorthand(int ch)(Code) | | |
parseAtom | Token parseAtom() throws ParseException(Code) | | atom ::= char | '.' | char-class | '(' regex ')' | '(?:' regex ')' | '\' [0-9]
| '\w' | '\W' | '\d' | '\D' | '\s' | '\S' | category-block
| '(?>' regex ')'
char ::= '\\' | '\' [efnrt] | bmp-code | character-1
|
parseCharacterClass | protected RangeToken parseCharacterClass(boolean useNrange) throws ParseException(Code) | | char-class ::= '[' ( '^'? range ','?)+ ']'
range ::= '\d' | '\w' | '\s' | category-block | range-char
| range-char '-' range-char
range-char ::= '\[' | '\]' | '\\' | '\' [,-efnrtv] | bmp-code | character-2
bmp-code ::= '\' 'u' [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]
|
parseFactor | Token parseFactor() throws ParseException(Code) | | factor ::= ('^' | '$' | '\A' | '\Z' | '\z' | '\b' | '\B' | '\<' | '\>'
| atom (('*' | '+' | '?' | minmax ) '?'? )?)
| '(?=' regex ')' | '(?!' regex ')' | '(?<=' regex ')' | '(?<!' regex ')'
| '(?#' [^)]* ')'
minmax ::= '{' min (',' max?)? '}'
min ::= [0-9]+
max ::= [0-9]+
|
parseRegex | Token parseRegex() throws ParseException(Code) | | regex ::= term (`|` term)*
term ::= factor+
factor ::= ('^' | '$' | '\A' | '\Z' | '\z' | '\b' | '\B' | '\<' | '\>'
| atom (('*' | '+' | '?' | minmax ) '?'? )?)
| '(?=' regex ')' | '(?!' regex ')' | '(?<=' regex ')' | '(?<!' regex ')'
atom ::= char | '.' | range | '(' regex ')' | '(?:' regex ')' | '\' [0-9]
| '\w' | '\W' | '\d' | '\D' | '\s' | '\S' | category-block
|
processCIinCharacterClass | int processCIinCharacterClass(RangeToken tok, int c)(Code) | | |
setContext | final protected void setContext(int con)(Code) | | |
|
|
|