Java Doc for RESyntax.java in  » Template-Engine » JDynamiTe » gnu » regexp » 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 » Template Engine » JDynamiTe » gnu.regexp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.regexp.RESyntax

RESyntax
public class RESyntax (Code)
An RESyntax specifies the way a regular expression will be compiled. This class provides a number of predefined useful constants for emulating popular regular expression syntaxes. Additionally the user may construct his or her own syntax, using any combination of the syntax bit constants. The syntax is an optional argument to any of the matching methods on class RE.
author:
   Wes Biggs


Field Summary
final public static  intRE_BACKSLASH_ESCAPE_IN_LISTS
     Syntax bit.
final public static  intRE_BK_PLUS_QM
     Syntax bit.
final public static  intRE_CHAR_CLASSES
     Syntax bit.
final public static  intRE_CHAR_CLASS_ESCAPES
     Syntax bit.
final public static  intRE_CHAR_CLASS_ESC_IN_LISTS
     Syntax bit.
final public static  intRE_COMMENTS
     Syntax bit.
final public static  intRE_CONTEXT_INDEP_ANCHORS
     Syntax bit.
final public static  intRE_CONTEXT_INDEP_OPS
     Syntax bit.
final public static  intRE_CONTEXT_INVALID_OPS
     Syntax bit.
final public static  intRE_DOT_NEWLINE
     Syntax bit.
final public static  intRE_DOT_NOT_NULL
     Syntax bit.
final public static  intRE_HAT_LISTS_NOT_NEWLINE
     Syntax bit.
final public static  intRE_INTERVALS
     Syntax bit.
final public static  intRE_LIMITED_OPS
     Syntax bit.
final public static  intRE_LOOKAHEAD
     Syntax bit.
final public static  intRE_NEWLINE_ALT
     Syntax bit.
final public static  intRE_NO_BK_BRACES
     Syntax bit.
final public static  intRE_NO_BK_PARENS
     Syntax bit.
final public static  intRE_NO_BK_REFS
     Syntax bit.
final public static  intRE_NO_BK_VBAR
     Syntax bit.
final public static  intRE_NO_EMPTY_RANGES
     Syntax bit.
final public static  intRE_PURE_GROUPING
     Syntax bit.
final public static  intRE_STINGY_OPS
     Syntax bit.
final public static  intRE_STRING_ANCHORS
     Syntax bit.
final public static  RESyntaxRE_SYNTAX_AWK
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_ED
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_EGREP
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_EMACS
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_GREP
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_PERL4
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_PERL4_S
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_PERL5
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_PERL5_S
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_AWK
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_BASIC
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_EGREP
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_EXTENDED
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_MINIMAL_BASIC
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_POSIX_MINIMAL_EXTENDED
     Predefined syntax.
final public static  RESyntaxRE_SYNTAX_SED
     Predefined syntax.
final public static  intRE_UNMATCHED_RIGHT_PAREN_ORD
     Syntax bit.

Constructor Summary
public  RESyntax()
     Construct a new syntax object with all bits turned off.
public  RESyntax(RESyntax other)
     Construct a new syntax object with all bits set the same as the other syntax.

Method Summary
public  booleanget(int index)
     Check if a given bit is set in this syntax.
public  RESyntaxset(int index)
     Set a given bit in this syntax.

Field Detail
RE_BACKSLASH_ESCAPE_IN_LISTS
final public static int RE_BACKSLASH_ESCAPE_IN_LISTS(Code)
Syntax bit. Backslash is an escape character in lists.



RE_BK_PLUS_QM
final public static int RE_BK_PLUS_QM(Code)
Syntax bit. Use \? instead of ? and \+ instead of +.



RE_CHAR_CLASSES
final public static int RE_CHAR_CLASSES(Code)
Syntax bit. POSIX character classes ([:...:]) in lists are allowed.



RE_CHAR_CLASS_ESCAPES
final public static int RE_CHAR_CLASS_ESCAPES(Code)
Syntax bit. Allow character class escapes (\d, \D, \s, \S, \w, \W).



RE_CHAR_CLASS_ESC_IN_LISTS
final public static int RE_CHAR_CLASS_ESC_IN_LISTS(Code)
Syntax bit. Allow character class escapes within lists, as in Perl5.



RE_COMMENTS
final public static int RE_COMMENTS(Code)
Syntax bit. Allow embedded comments, (#comment), as in Perl5.



RE_CONTEXT_INDEP_ANCHORS
final public static int RE_CONTEXT_INDEP_ANCHORS(Code)
Syntax bit. ^ and $ are special everywhere. Not implemented.



RE_CONTEXT_INDEP_OPS
final public static int RE_CONTEXT_INDEP_OPS(Code)
Syntax bit. Repetition operators are only special in valid positions. Not implemented.



RE_CONTEXT_INVALID_OPS
final public static int RE_CONTEXT_INVALID_OPS(Code)
Syntax bit. Repetition and alternation operators are invalid at start and end of pattern and other places. Not implemented.



RE_DOT_NEWLINE
final public static int RE_DOT_NEWLINE(Code)
Syntax bit. Match-any-character operator (.) matches a newline.



RE_DOT_NOT_NULL
final public static int RE_DOT_NOT_NULL(Code)
Syntax bit. Match-any-character operator (.) does not match a null.



RE_HAT_LISTS_NOT_NEWLINE
final public static int RE_HAT_LISTS_NOT_NEWLINE(Code)
Syntax bit. Not implemented.



RE_INTERVALS
final public static int RE_INTERVALS(Code)
Syntax bit. Intervals ({x}, {x,}, {x,y}) are allowed.



RE_LIMITED_OPS
final public static int RE_LIMITED_OPS(Code)
Syntax bit. No alternation (|), match one-or-more (+), or match zero-or-one (?) operators.



RE_LOOKAHEAD
final public static int RE_LOOKAHEAD(Code)
Syntax bit. Not implemented.



RE_NEWLINE_ALT
final public static int RE_NEWLINE_ALT(Code)
Syntax bit. Newline is an alternation operator.



RE_NO_BK_BRACES
final public static int RE_NO_BK_BRACES(Code)
Syntax bit. Intervals use { } instead of \{ \}



RE_NO_BK_PARENS
final public static int RE_NO_BK_PARENS(Code)
Syntax bit. Grouping uses ( ) instead of \( \).



RE_NO_BK_REFS
final public static int RE_NO_BK_REFS(Code)
Syntax bit. Backreferences not allowed.



RE_NO_BK_VBAR
final public static int RE_NO_BK_VBAR(Code)
Syntax bit. Alternation uses | instead of \|



RE_NO_EMPTY_RANGES
final public static int RE_NO_EMPTY_RANGES(Code)
Syntax bit. Not implemented.



RE_PURE_GROUPING
final public static int RE_PURE_GROUPING(Code)
Syntax bit. Allow use of (?:xxx) grouping (subexpression is not saved).



RE_STINGY_OPS
final public static int RE_STINGY_OPS(Code)
Syntax bit. Stingy matching is allowed (+?, *?, ??, {x,y}?).



RE_STRING_ANCHORS
final public static int RE_STRING_ANCHORS(Code)
Syntax bit. Allow beginning- and end-of-string anchors (\A, \Z).



RE_SYNTAX_AWK
final public static RESyntax RE_SYNTAX_AWK(Code)
Predefined syntax. Emulates regular expression support in the awk utility.



RE_SYNTAX_ED
final public static RESyntax RE_SYNTAX_ED(Code)
Predefined syntax. Emulates regular expression support in the ed utility.



RE_SYNTAX_EGREP
final public static RESyntax RE_SYNTAX_EGREP(Code)
Predefined syntax. Emulates regular expression support in the egrep utility.



RE_SYNTAX_EMACS
final public static RESyntax RE_SYNTAX_EMACS(Code)
Predefined syntax. Emulates regular expression support in the GNU Emacs editor.



RE_SYNTAX_GREP
final public static RESyntax RE_SYNTAX_GREP(Code)
Predefined syntax. Emulates regular expression support in the grep utility.



RE_SYNTAX_PERL4
final public static RESyntax RE_SYNTAX_PERL4(Code)
Predefined syntax. Emulates regular expression support in Larry Wall's perl, version 4,



RE_SYNTAX_PERL4_S
final public static RESyntax RE_SYNTAX_PERL4_S(Code)
Predefined syntax. Emulates regular expression support in Larry Wall's perl, version 4, using single line mode (/s modifier).



RE_SYNTAX_PERL5
final public static RESyntax RE_SYNTAX_PERL5(Code)
Predefined syntax. Emulates regular expression support in Larry Wall's perl, version 5.



RE_SYNTAX_PERL5_S
final public static RESyntax RE_SYNTAX_PERL5_S(Code)
Predefined syntax. Emulates regular expression support in Larry Wall's perl, version 5, using single line mode (/s modifier).



RE_SYNTAX_POSIX_AWK
final public static RESyntax RE_SYNTAX_POSIX_AWK(Code)
Predefined syntax. Emulates regular expression support in the POSIX awk specification.



RE_SYNTAX_POSIX_BASIC
final public static RESyntax RE_SYNTAX_POSIX_BASIC(Code)
Predefined syntax. Emulates POSIX basic regular expression support.



RE_SYNTAX_POSIX_EGREP
final public static RESyntax RE_SYNTAX_POSIX_EGREP(Code)
Predefined syntax. Emulates regular expression support in the POSIX egrep specification.



RE_SYNTAX_POSIX_EXTENDED
final public static RESyntax RE_SYNTAX_POSIX_EXTENDED(Code)
Predefined syntax. Emulates POSIX extended regular expression support.



RE_SYNTAX_POSIX_MINIMAL_BASIC
final public static RESyntax RE_SYNTAX_POSIX_MINIMAL_BASIC(Code)
Predefined syntax. Emulates POSIX basic minimal regular expressions.



RE_SYNTAX_POSIX_MINIMAL_EXTENDED
final public static RESyntax RE_SYNTAX_POSIX_MINIMAL_EXTENDED(Code)
Predefined syntax. Emulates POSIX extended minimal regular expressions.



RE_SYNTAX_SED
final public static RESyntax RE_SYNTAX_SED(Code)
Predefined syntax. Emulates regular expression support in the sed utility.



RE_UNMATCHED_RIGHT_PAREN_ORD
final public static int RE_UNMATCHED_RIGHT_PAREN_ORD(Code)
Syntax bit. An unmatched right parenthesis (')' or '\)', depending on RE_NO_BK_PARENS) will throw an exception when compiling.




Constructor Detail
RESyntax
public RESyntax()(Code)
Construct a new syntax object with all bits turned off. This is equivalent to RE_SYNTAX_EMACS.



RESyntax
public RESyntax(RESyntax other)(Code)
Construct a new syntax object with all bits set the same as the other syntax.




Method Detail
get
public boolean get(int index)(Code)
Check if a given bit is set in this syntax.



set
public RESyntax set(int index)(Code)
Set a given bit in this syntax. Returns a reference to this syntax for easy chaining.



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.