|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.util.regex.Matcher
public final class Matcher
Note: main functionality of this class is hidden into nodes match methods.
Method Summary | |
---|---|
Matcher |
appendReplacement(java.lang.StringBuffer sb,
java.lang.String replacement)
|
java.lang.StringBuffer |
appendTail(java.lang.StringBuffer sb)
TODO: appendTail(StringBuffer) javadoc |
int |
end()
|
int |
end(int groupIndex)
|
boolean |
find()
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(). |
boolean |
find(int startIndex)
|
java.lang.String |
group()
|
java.lang.String |
group(int groupIndex)
|
int |
groupCount()
Return the number of capturing groups in the pattern. |
boolean |
hasAnchoringBounds()
|
boolean |
hasTransparentBounds()
|
boolean |
hitEnd()
|
boolean |
lookingAt()
This method attempts to match the pattern against the character sequence starting at the beginning. |
boolean |
matches()
This method is identical in function to the Pattern.matches() method. |
Pattern |
pattern()
Return a reference to the pattern used by this Matcher. |
static java.lang.String |
quoteReplacement(java.lang.String string)
|
Matcher |
region(int leftBound,
int rightBound)
|
int |
regionEnd()
|
int |
regionStart()
|
java.lang.String |
replaceAll(java.lang.String replacement)
Replace all occurrences of character sequences which match the pattern with the given replacement string. |
java.lang.String |
replaceFirst(java.lang.String replacement)
This is very similar to replaceAll except only the first occurrence of a sequence matching the pattern is replaced. |
boolean |
requireEnd()
|
Matcher |
reset()
|
Matcher |
reset(java.lang.String newSequence)
|
int |
start()
|
int |
start(int groupIndex)
|
MatchResult |
toMatchResult()
|
Matcher |
useAnchoringBounds(boolean value)
|
Matcher |
usePattern(Pattern pat)
|
Matcher |
useTransparentBounds(boolean value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Matcher appendReplacement(java.lang.StringBuffer sb, java.lang.String replacement)
public Matcher reset(java.lang.String newSequence)
public Matcher reset()
public Matcher region(int leftBound, int rightBound)
public java.lang.StringBuffer appendTail(java.lang.StringBuffer sb)
sb
-
public java.lang.String replaceFirst(java.lang.String replacement)
replacement
- A string to replace occurrences of character sequences matching the pattern.
public java.lang.String replaceAll(java.lang.String replacement)
replacement
- A string to replace occurrences of character sequences matching the pattern.
public Pattern pattern()
public java.lang.String group(int groupIndex)
group
in interface MatchResult
public java.lang.String group()
group
in interface MatchResult
public boolean find(int startIndex)
public boolean find()
public int start(int groupIndex)
start
in interface MatchResult
public int end(int groupIndex)
end
in interface MatchResult
public boolean matches()
public static java.lang.String quoteReplacement(java.lang.String string)
public boolean lookingAt()
public int start()
start
in interface MatchResult
public int groupCount()
groupCount
in interface MatchResult
public int end()
end
in interface MatchResult
public MatchResult toMatchResult()
public Matcher useAnchoringBounds(boolean value)
public boolean hasAnchoringBounds()
public Matcher useTransparentBounds(boolean value)
public boolean hasTransparentBounds()
public int regionStart()
public int regionEnd()
public boolean requireEnd()
public boolean hitEnd()
public Matcher usePattern(Pattern pat)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |