Java Doc for Matcher.java in  » Apache-Harmony-Java-SE » java-package » java » util » 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 » Apache Harmony Java SE » java package » java.util.regex 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.regex.Matcher

Matcher
final public class Matcher implements MatchResult(Code)
Note: main functionality of this class is hidden into nodes match methods.


Field Summary
static  intMODE_FIND
    
static  intMODE_MATCH
    

Constructor Summary
 Matcher(Pattern pat, CharSequence cs)
    

Method Summary
public  MatcherappendReplacement(StringBuffer sb, String replacement)
    
public  StringBufferappendTail(StringBuffer sb)
    
public  intend(int groupIndex)
    
public  intend()
    
public  booleanfind(int startIndex)
    
public  booleanfind()
     The find() method matches the pattern against the character sequence beginning at the character after the last match or at the beginning of the sequence if called immediately after reset().
public  Stringgroup(int groupIndex)
    
public  Stringgroup()
    
public  intgroupCount()
     Return the number of capturing groups in the pattern.
public  booleanhasAnchoringBounds()
    
public  booleanhasTransparentBounds()
    
public  booleanhitEnd()
    
public  booleanlookingAt()
     This method attempts to match the pattern against the character sequence starting at the beginning.
public  booleanmatches()
     This method is identical in function to the Pattern.matches() method.
public  Patternpattern()
     Return a reference to the pattern used by this Matcher.
public static  StringquoteReplacement(String string)
    
public  Matcherregion(int leftBound, int rightBound)
    
public  intregionEnd()
    
public  intregionStart()
    
public  StringreplaceAll(String replacement)
     Replace all occurrences of character sequences which match the pattern with the given replacement string.
public  StringreplaceFirst(String replacement)
     This is very similar to replaceAll except only the first occurrence of a sequence matching the pattern is replaced.
Parameters:
  replacement - A string to replace occurrences of character sequencesmatching the pattern.
public  booleanrequireEnd()
    
public  Matcherreset(CharSequence newSequence)
    
public  Matcherreset()
    
public  intstart(int groupIndex)
    
public  intstart()
    
public  MatchResulttoMatchResult()
    
public  MatcheruseAnchoringBounds(boolean value)
    
public  MatcherusePattern(Pattern pat)
    
public  MatcheruseTransparentBounds(boolean value)
    

Field Detail
MODE_FIND
static int MODE_FIND(Code)



MODE_MATCH
static int MODE_MATCH(Code)




Constructor Detail
Matcher
Matcher(Pattern pat, CharSequence cs)(Code)




Method Detail
appendReplacement
public Matcher appendReplacement(StringBuffer sb, String replacement)(Code)



appendTail
public StringBuffer appendTail(StringBuffer sb)(Code)
TODO: appendTail(StringBuffer) javadoc
Parameters:
  sb -



end
public int end(int groupIndex)(Code)



end
public int end()(Code)



find
public boolean find(int startIndex)(Code)



find
public boolean find()(Code)
The find() method matches the pattern against the character sequence beginning at the character after the last match or at the beginning of the sequence if called immediately after reset(). The method returns true if and only if a match is found. A boolean indicating if the pattern was matched.



group
public String group(int groupIndex)(Code)



group
public String group()(Code)



groupCount
public int groupCount()(Code)
Return the number of capturing groups in the pattern. The number of capturing groups in the pattern.



hasAnchoringBounds
public boolean hasAnchoringBounds()(Code)



hasTransparentBounds
public boolean hasTransparentBounds()(Code)



hitEnd
public boolean hitEnd()(Code)



lookingAt
public boolean lookingAt()(Code)
This method attempts to match the pattern against the character sequence starting at the beginning. If the pattern matches even a prefix of the input character sequence, lookingAt() will return true. Otherwise it will return false. A boolean indicating if the pattern matches a prefix of the inputcharacter sequence.



matches
public boolean matches()(Code)
This method is identical in function to the Pattern.matches() method. It returns true if and only if the regular expression pattern matches the entire input character sequence. A boolean indicating if the pattern matches the entire inputcharacter sequence.



pattern
public Pattern pattern()(Code)
Return a reference to the pattern used by this Matcher. A reference to the pattern used by this Matcher.



quoteReplacement
public static String quoteReplacement(String string)(Code)



region
public Matcher region(int leftBound, int rightBound)(Code)



regionEnd
public int regionEnd()(Code)



regionStart
public int regionStart()(Code)



replaceAll
public String replaceAll(String replacement)(Code)
Replace all occurrences of character sequences which match the pattern with the given replacement string. The replacement string may refer to capturing groups using the syntax "$".
Parameters:
  replacement - A string to replace occurrences of character sequencesmatching the pattern. A new string with replacements inserted



replaceFirst
public String replaceFirst(String replacement)(Code)
This is very similar to replaceAll except only the first occurrence of a sequence matching the pattern is replaced.
Parameters:
  replacement - A string to replace occurrences of character sequencesmatching the pattern. A new string with replacements inserted



requireEnd
public boolean requireEnd()(Code)



reset
public Matcher reset(CharSequence newSequence)(Code)



reset
public Matcher reset()(Code)



start
public int start(int groupIndex)(Code)



start
public int start()(Code)



toMatchResult
public MatchResult toMatchResult()(Code)



useAnchoringBounds
public Matcher useAnchoringBounds(boolean value)(Code)



usePattern
public Matcher usePattern(Pattern pat)(Code)



useTransparentBounds
public Matcher useTransparentBounds(boolean value)(Code)



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) 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.