|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.util.regex.Matcher
Provides a matcher object for a given regular expression pattern.
| Constructor Summary | |
Matcher(Pattern pattern,
java.lang.String input)
|
|
| Method Summary | |
void |
appendReplacement(java.lang.StringBuffer sb,
java.lang.String replacement)
Implements a non-terminal append-and-replace step. |
void |
appendTail(java.lang.StringBuffer sb)
Implements a terminal append-and-replace step. |
int |
end()
Returns the end index of the previous match. |
int |
end(int group)
Returns the end index of the subsequence captured by the given group during the previous match operation. |
boolean |
find()
Attempts to find the next subsequence of the input sequence that matches the pattern. |
java.lang.String |
group()
Returns the input subsequence matched by the previous match. |
java.lang.String |
group(int group)
Returns the input subsequence captured by the given group during the previous match operation. |
int |
groupCount()
Returns the number of capturing groups in this matcher's pattern. |
boolean |
lookingAt()
Attempts to match the input sequence, starting at the beginning, against the pattern. |
boolean |
matches()
Attempts to match the entire input sequence against the pattern. |
Pattern |
pattern()
Returns the pattern that is interpreted by this matcher. |
java.lang.String |
replaceAll(java.lang.String replacement)
Replaces every subsequence of the input sequence that matches the pattern with the given replacement string. |
void |
reset()
Resets this matcher. |
void |
reset(CharSequence input)
Resets this matcher with a new input sequence. |
int |
start()
Returns the start index of the previous match. |
int |
start(int group)
Returns the start index of the subsequence captured by the given group during the previous match operation.} |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Matcher(Pattern pattern,
java.lang.String input)
| Method Detail |
public void appendReplacement(java.lang.StringBuffer sb,
java.lang.String replacement)
sb - TBD: Description of the incoming method parameterreplacement - TBD: Description of the incoming method parameterpublic void appendTail(java.lang.StringBuffer sb)
sb - TBD: Description of the incoming method parameterpublic int end()
public int end(int group)
group - TBD: Description of the incoming method parameterpublic boolean find()
public java.lang.String group()
public java.lang.String group(int group)
group - TBD: Description of the incoming method parameterpublic int groupCount()
public boolean lookingAt()
public boolean matches()
public Pattern pattern()
public java.lang.String replaceAll(java.lang.String replacement)
replacement - TBD: Description of the incoming method parameterpublic void reset()
public void reset(CharSequence input)
input - TBD: Description of the incoming method parameterpublic int start()
public int start(int group)
group - TBD: Description of the incoming method parameter
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||