Java Doc for RegexParser.java in  » XML » xerces-2_9_1 » org » apache » xerces » impl » xpath » regex » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.impl.xpath.regex 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
final protected static  intS_INBRACKETS
    
final protected static  intS_INXBRACKETS
    
final protected static  intS_NORMAL
    
final static  intT_BACKSOLIDUS
    
final static  intT_CARET
    
final static  intT_CHAR
    
final static  intT_COMMENT
    
final static  intT_CONDITION
    
final static  intT_DOLLAR
    
final static  intT_DOT
    
final static  intT_EOF
    
final static  intT_INDEPENDENT
    
final static  intT_LBRACKET
    
final static  intT_LOOKAHEAD
    
final static  intT_LOOKBEHIND
    
final static  intT_LPAREN
    
final static  intT_LPAREN2
    
final static  intT_MODIFIERS
    
final static  intT_NEGATIVELOOKAHEAD
    
final static  intT_NEGATIVELOOKBEHIND
    
final static  intT_OR
    
final static  intT_PLUS
    
final static  intT_POSIX_CHARCLASS_START
    
final static  intT_QUESTION
    
final static  intT_RPAREN
    
final static  intT_SET_OPERATIONS
    
final static  intT_STAR
    
final static  intT_XMLSCHEMA_CC_SUBTRACTION
    
 intchardata
    
 intcontext
    
 booleanhasBackReferences
    
 intnexttoken
    
 intoffset
    
 intoptions
    
 intparennumber
    
 Vectorreferences
    
 Stringregex
    
 intregexlen
    
 ResourceBundleresources
    

Constructor Summary
public  RegexParser()
    
public  RegexParser(Locale locale)
    

Method Summary
 booleancheckQuestion(int off)
    
 intdecodeEscaped()
    
final  ParseExceptionex(String key, int loc)
    
 TokengetTokenForShorthand(int ch)
    
final  voidnext()
    
synchronized  Tokenparse(String regex, int options)
    
 TokenparseAtom()
    
protected  RangeTokenparseCharacterClass(boolean useNrange)
    
 TokenparseFactor()
    
 TokenparseRegex()
    
protected  RangeTokenparseSetOperations()
     '(?[' ...
 TokenparseTerm()
    
 TokenprocessBackreference()
    
 TokenprocessBacksolidus_A()
    
 TokenprocessBacksolidus_B()
    
 TokenprocessBacksolidus_C()
    
 TokenprocessBacksolidus_I()
    
 TokenprocessBacksolidus_X()
    
 TokenprocessBacksolidus_Z()
    
 TokenprocessBacksolidus_b()
    
 TokenprocessBacksolidus_c()
    
 TokenprocessBacksolidus_g()
    
 TokenprocessBacksolidus_gt()
    
 TokenprocessBacksolidus_i()
    
 TokenprocessBacksolidus_lt()
    
protected  RangeTokenprocessBacksolidus_pP(int c)
    
 TokenprocessBacksolidus_z()
    
 intprocessCIinCharacterClass(RangeToken tok, int c)
    
 TokenprocessCaret()
    
 TokenprocessCondition()
    
 TokenprocessDollar()
    
 TokenprocessIndependent()
    
 TokenprocessLookahead()
    
 TokenprocessLookbehind()
    
 TokenprocessModifiers()
    
 TokenprocessNegativelookahead()
    
 TokenprocessNegativelookbehind()
    
 TokenprocessParen()
    
 TokenprocessParen2()
    
 TokenprocessPlus(Token tok)
    
 TokenprocessQuestion(Token tok)
    
 TokenprocessStar(Token tok)
    
final  intread()
    
final protected  voidsetContext(int con)
    
public  voidsetLocale(Locale locale)
    

Field Detail
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)



chardata
int chardata(Code)



context
int context(Code)



hasBackReferences
boolean hasBackReferences(Code)



nexttoken
int nexttoken(Code)



offset
int offset(Code)



options
int options(Code)



parennumber
int parennumber(Code)



references
Vector references(Code)



regex
String regex(Code)



regexlen
int regexlen(Code)



resources
ResourceBundle resources(Code)




Constructor Detail
RegexParser
public RegexParser()(Code)



RegexParser
public RegexParser(Locale locale)(Code)




Method Detail
checkQuestion
boolean checkQuestion(int off)(Code)



decodeEscaped
int decodeEscaped() throws ParseException(Code)



ex
final ParseException ex(String key, int loc)(Code)



getTokenForShorthand
Token getTokenForShorthand(int ch)(Code)



next
final void next()(Code)



parse
synchronized Token parse(String regex, int options) throws ParseException(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



parseSetOperations
protected RangeToken parseSetOperations() throws ParseException(Code)
'(?[' ... ']' (('-' | '+' | '&') '[' ... ']')? ')'



parseTerm
Token parseTerm() throws ParseException(Code)
term ::= factor+



processBackreference
Token processBackreference() throws ParseException(Code)



processBacksolidus_A
Token processBacksolidus_A() throws ParseException(Code)



processBacksolidus_B
Token processBacksolidus_B() throws ParseException(Code)



processBacksolidus_C
Token processBacksolidus_C() throws ParseException(Code)



processBacksolidus_I
Token processBacksolidus_I() throws ParseException(Code)



processBacksolidus_X
Token processBacksolidus_X() throws ParseException(Code)



processBacksolidus_Z
Token processBacksolidus_Z() throws ParseException(Code)



processBacksolidus_b
Token processBacksolidus_b() throws ParseException(Code)



processBacksolidus_c
Token processBacksolidus_c() throws ParseException(Code)



processBacksolidus_g
Token processBacksolidus_g() throws ParseException(Code)



processBacksolidus_gt
Token processBacksolidus_gt() throws ParseException(Code)



processBacksolidus_i
Token processBacksolidus_i() throws ParseException(Code)



processBacksolidus_lt
Token processBacksolidus_lt() throws ParseException(Code)



processBacksolidus_pP
protected RangeToken processBacksolidus_pP(int c) throws ParseException(Code)



processBacksolidus_z
Token processBacksolidus_z() throws ParseException(Code)



processCIinCharacterClass
int processCIinCharacterClass(RangeToken tok, int c)(Code)



processCaret
Token processCaret() throws ParseException(Code)



processCondition
Token processCondition() throws ParseException(Code)



processDollar
Token processDollar() throws ParseException(Code)



processIndependent
Token processIndependent() throws ParseException(Code)



processLookahead
Token processLookahead() throws ParseException(Code)



processLookbehind
Token processLookbehind() throws ParseException(Code)



processModifiers
Token processModifiers() throws ParseException(Code)



processNegativelookahead
Token processNegativelookahead() throws ParseException(Code)



processNegativelookbehind
Token processNegativelookbehind() throws ParseException(Code)



processParen
Token processParen() throws ParseException(Code)



processParen2
Token processParen2() throws ParseException(Code)



processPlus
Token processPlus(Token tok) throws ParseException(Code)



processQuestion
Token processQuestion(Token tok) throws ParseException(Code)



processStar
Token processStar(Token tok) throws ParseException(Code)



read
final int read()(Code)



setContext
final protected void setContext(int con)(Code)



setLocale
public void setLocale(Locale locale)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.