Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xpath.regex

pack-priv Class RegexParser

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.xpath.regex.ParserForXMLSchema
Imports
java.util.ArrayList, .Locale, .MissingResourceException, .ResourceBundle, jdk.xml.internal.SecuritySupport

A Regular Expression Parser.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
pack-priv boolean
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
pack-priv ArrayList<RegexParser.ReferencePosition>
pack-priv String
pack-priv int
pack-priv ResourceBundle
protected static final int
protected static final int
protected static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
protected static final void
protected static final void
addCaseInsensitiveCharRange(RangeToken tok, int start, int end)

pack-priv boolean
checkQuestion(int off)

pack-priv int
pack-priv final ParseException
ex(String key, int loc)

pack-priv Token
private static final int
hexChar(int ch)

protected final boolean
isSet(int flag)

pack-priv final void
next()

pack-priv Token
parse(String regex, int options)

pack-priv Token
parseAtom()

atom ::= char | '.' | char-class | '(' regex ')' | '(?:' regex ')' | '\' [0-9] | '\w' | '\W' | '\d' | '\D' | '\s' | '\S' | category-block | '(?>' regex ')' char ::= '\\' | '\' [efnrt] | bmp-code | character-1

protected RangeToken
parseCharacterClass(boolean useNrange)

char-class ::= '[' ( '^'?

pack-priv Token
parseFactor()

factor ::= ('^' | '$' | '\A' | '\Z' | '\z' | '\b' | '\B' | '\<' | '\>' | atom (('*' | '+' | '?' | minmax ) '?'?

pack-priv Token
parseRegex()

regex ::= term (`|` term)* term ::= factor+ factor ::= ('^' | '$' | '\A' | '\Z' | '\z' | '\b' | '\B' | '\<' | '\>' | atom (('*' | '+' | '?' | minmax ) '?'?

protected RangeToken
parseSetOperations()

'(?[' ...

pack-priv Token
parseTerm()

term ::= factor+

pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
protected RangeToken
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv int
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv Token
pack-priv final int
read()

protected final void
setContext(int con)

public void
setLocale(Locale locale)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chardataback to summary
pack-priv int chardata
contextback to summary
pack-priv int context
hasBackReferencesback to summary
pack-priv boolean hasBackReferences
nexttokenback to summary
pack-priv int nexttoken
offsetback to summary
pack-priv int offset
optionsback to summary
pack-priv int options
parennumberback to summary
pack-priv int parennumber
parenOpenedback to summary
pack-priv int parenOpened
referencesback to summary
pack-priv ArrayList<RegexParser.ReferencePosition> references
regexback to summary
pack-priv String regex
regexlenback to summary
pack-priv int regexlen
resourcesback to summary
pack-priv ResourceBundle resources
S_INBRACKETSback to summary
protected static final int S_INBRACKETS
S_INXBRACKETSback to summary
protected static final int S_INXBRACKETS
S_NORMALback to summary
protected static final int S_NORMAL
T_BACKSOLIDUSback to summary
pack-priv static final int T_BACKSOLIDUS
T_CARETback to summary
pack-priv static final int T_CARET
T_CHARback to summary
pack-priv static final int T_CHAR
T_COMMENTback to summary
pack-priv static final int T_COMMENT
T_CONDITIONback to summary
pack-priv static final int T_CONDITION
T_DOLLARback to summary
pack-priv static final int T_DOLLAR
T_DOTback to summary
pack-priv static final int T_DOT
T_EOFback to summary
pack-priv static final int T_EOF
T_INDEPENDENTback to summary
pack-priv static final int T_INDEPENDENT
T_LBRACKETback to summary
pack-priv static final int T_LBRACKET
T_LOOKAHEADback to summary
pack-priv static final int T_LOOKAHEAD
T_LOOKBEHINDback to summary
pack-priv static final int T_LOOKBEHIND
T_LPARENback to summary
pack-priv static final int T_LPAREN
T_LPAREN2back to summary
pack-priv static final int T_LPAREN2
T_MODIFIERSback to summary
pack-priv static final int T_MODIFIERS
T_NEGATIVELOOKAHEADback to summary
pack-priv static final int T_NEGATIVELOOKAHEAD
T_NEGATIVELOOKBEHINDback to summary
pack-priv static final int T_NEGATIVELOOKBEHIND
T_ORback to summary
pack-priv static final int T_OR
T_PLUSback to summary
pack-priv static final int T_PLUS
T_POSIX_CHARCLASS_STARTback to summary
pack-priv static final int T_POSIX_CHARCLASS_START
T_QUESTIONback to summary
pack-priv static final int T_QUESTION
T_RPARENback to summary
pack-priv static final int T_RPAREN
T_SET_OPERATIONSback to summary
pack-priv static final int T_SET_OPERATIONS
T_STARback to summary
pack-priv static final int T_STAR
T_XMLSCHEMA_CC_SUBTRACTIONback to summary
pack-priv static final int T_XMLSCHEMA_CC_SUBTRACTION

Constructor Detail

RegexParserback to summary
public RegexParser()
RegexParserback to summary
public RegexParser(Locale locale)

Method Detail

addCaseInsensitiveCharback to summary
protected static final void addCaseInsensitiveChar(RangeToken tok, int c)
addCaseInsensitiveCharRangeback to summary
protected static final void addCaseInsensitiveCharRange(RangeToken tok, int start, int end)
checkQuestionback to summary
pack-priv boolean checkQuestion(int off)
decodeEscapedback to summary
pack-priv int decodeEscaped() throws ParseException
exback to summary
pack-priv final ParseException ex(String key, int loc)
getTokenForShorthandback to summary
pack-priv Token getTokenForShorthand(int ch)
hexCharback to summary
private static final int hexChar(int ch)
isSetback to summary
protected final boolean isSet(int flag)
nextback to summary
pack-priv final void next()
Annotations
@SuppressWarnings:fallthrough
parseback to summary
pack-priv Token parse(String regex, int options) throws ParseException
parseAtomback to summary
pack-priv Token parseAtom() throws ParseException

atom ::= char | '.' | char-class | '(' regex ')' | '(?:' regex ')' | '\' [0-9] | '\w' | '\W' | '\d' | '\D' | '\s' | '\S' | category-block | '(?>' regex ')' char ::= '\\' | '\' [efnrt] | bmp-code | character-1

parseCharacterClassback to summary
protected RangeToken parseCharacterClass(boolean useNrange) throws ParseException

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]

parseFactorback to summary
pack-priv Token parseFactor() throws ParseException

factor ::= ('^' | '$' | '\A' | '\Z' | '\z' | '\b' | '\B' | '\<' | '\>' | atom (('*' | '+' | '?' | minmax ) '?'? )?) | '(?=' regex ')' | '(?!' regex ')' | '(?<=' regex ')' | '(?<!' regex ')' | '(?#' [^)]* ')' minmax ::= '{' min (',' max?)? '}' min ::= [0-9]+ max ::= [0-9]+

parseRegexback to summary
pack-priv Token parseRegex() throws ParseException

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

parseSetOperationsback to summary
protected RangeToken parseSetOperations() throws ParseException

'(?[' ... ']' (('-' | '+' | '&') '[' ... ']')? ')'

parseTermback to summary
pack-priv Token parseTerm() throws ParseException

term ::= factor+

processBackreferenceback to summary
pack-priv Token processBackreference() throws ParseException
processBacksolidus_Aback to summary
pack-priv Token processBacksolidus_A() throws ParseException
processBacksolidus_bback to summary
pack-priv Token processBacksolidus_b() throws ParseException
processBacksolidus_Bback to summary
pack-priv Token processBacksolidus_B() throws ParseException
processBacksolidus_cback to summary
pack-priv Token processBacksolidus_c() throws ParseException
processBacksolidus_Cback to summary
pack-priv Token processBacksolidus_C() throws ParseException
processBacksolidus_gback to summary
pack-priv Token processBacksolidus_g() throws ParseException
processBacksolidus_gtback to summary
pack-priv Token processBacksolidus_gt() throws ParseException
processBacksolidus_iback to summary
pack-priv Token processBacksolidus_i() throws ParseException
processBacksolidus_Iback to summary
pack-priv Token processBacksolidus_I() throws ParseException
processBacksolidus_ltback to summary
pack-priv Token processBacksolidus_lt() throws ParseException
processBacksolidus_pPback to summary
protected RangeToken processBacksolidus_pP(int c) throws ParseException
processBacksolidus_Xback to summary
pack-priv Token processBacksolidus_X() throws ParseException
processBacksolidus_Zback to summary
pack-priv Token processBacksolidus_Z() throws ParseException
processBacksolidus_zback to summary
pack-priv Token processBacksolidus_z() throws ParseException
processCaretback to summary
pack-priv Token processCaret() throws ParseException
processCIinCharacterClassback to summary
pack-priv int processCIinCharacterClass(RangeToken tok, int c)
processConditionback to summary
pack-priv Token processCondition() throws ParseException
processDollarback to summary
pack-priv Token processDollar() throws ParseException
processIndependentback to summary
pack-priv Token processIndependent() throws ParseException
processLookaheadback to summary
pack-priv Token processLookahead() throws ParseException
processLookbehindback to summary
pack-priv Token processLookbehind() throws ParseException
processModifiersback to summary
pack-priv Token processModifiers() throws ParseException
processNegativelookaheadback to summary
pack-priv Token processNegativelookahead() throws ParseException
processNegativelookbehindback to summary
pack-priv Token processNegativelookbehind() throws ParseException
processParenback to summary
pack-priv Token processParen() throws ParseException
processParen2back to summary
pack-priv Token processParen2() throws ParseException
processPlusback to summary
pack-priv Token processPlus(Token tok) throws ParseException
processQuestionback to summary
pack-priv Token processQuestion(Token tok) throws ParseException
processStarback to summary
pack-priv Token processStar(Token tok) throws ParseException
readback to summary
pack-priv final int read()
setContextback to summary
protected final void setContext(int con)
setLocaleback to summary
public void setLocale(Locale locale)
com.sun.org.apache.xerces.internal.impl.xpath.regex back to summary

pack-priv Class RegexParser.ReferencePosition

extends Object
Class Inheritance
  • java.lang.Object
  • com.sun.org.apache.xerces.internal.impl.xpath.regex.RegexParser.ReferencePosition

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
ReferencePosition(int n, int pos)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

positionback to summary
pack-priv int position
refNumberback to summary
pack-priv int refNumber

Constructor Detail

ReferencePositionback to summary
pack-priv ReferencePosition(int n, int pos)