com.sapportals.wcm.util.regex

Class Matcher

java.lang.Object
  extended by com.sapportals.wcm.util.regex.Matcher

public class Matcher
extends Object

An engine that performs match operations on a character sequence by interpreting a Pattern.
For documentation refer to the J2SE 1.4 Matcher class.
Be aware of one difference: the matches() method corresponds to the J2SE 1.4 find() method whereas the matches_JDK() method corresponds to the J2SE 1.4 matches() method. The reason is compatibility with older versions of this class.

Copyright (c) SAP AG 2005


Constructor Summary
Matcher(Pattern pattern, Object matcher)
           
Matcher(Pattern pattern, String input)
           
 
Method Summary
 void appendReplacement(StringBuffer sb, String replacement)
           
 void appendTail(StringBuffer sb)
           
 int end()
           
 int end(int group)
           
 boolean find()
           
 boolean find(int start)
           
 String group()
           
 String group(int group)
           
 int groupCount()
           
 boolean lookingAt()
           
 boolean matches_JDK()
          Attempts to match the entire input sequence against the pattern.
 boolean matches()
          Attempts to find the next subsequence of the input sequence that matches the pattern.
 Pattern pattern()
           
 String replaceAll(String replacement)
           
 void reset()
           
 void reset(CharSequence input)
           
 int start()
           
 int start(int group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matcher

public Matcher(Pattern pattern,
               String input)

Matcher

public Matcher(Pattern pattern,
               Object matcher)
Method Detail

appendReplacement

public void appendReplacement(StringBuffer sb,
                              String replacement)

appendTail

public void appendTail(StringBuffer sb)

end

public int end()

end

public int end(int group)

find

public boolean find()

find

public boolean find(int start)

group

public String group()

group

public String group(int group)

groupCount

public int groupCount()

lookingAt

public boolean lookingAt()

matches

public boolean matches()
Attempts to find the next subsequence of the input sequence that matches the pattern.


matches_JDK

public boolean matches_JDK()
Attempts to match the entire input sequence against the pattern.


pattern

public Pattern pattern()

replaceAll

public String replaceAll(String replacement)

reset

public void reset()

reset

public void reset(CharSequence input)

start

public int start()

start

public int start(int group)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice