com.sapportals.wcm.util.regex

Class Pattern

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

public class Pattern
extends Object

A compiled representation of a regular expression.
For documentation refer to the J2SE 1.4 Pattern class.

Copyright (c) SAP AG 2005


Field Summary
static int CANON_EQ
           
static int CASE_INSENSITIVE
           
static int COMMENTS
           
static int DOTALL
           
static int MULTILINE
           
static int UNICODE_CASE
           
static int UNIX_LINES
           
 
Constructor Summary
Pattern(String regex)
           
Pattern(String regex, int flags)
           
 
Method Summary
static Pattern compile(String regex)
           
static Pattern compile(String regex, int flags)
           
 int flags()
           
protected  Object getNativeMatcher(String input)
           
 Matcher matcher(CharSequence input)
           
 Matcher matcher(String input)
           
static boolean matches(String regex, CharSequence input)
           
 String pattern()
           
 String[] split(CharSequence input)
           
 String[] split(CharSequence input, int limit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANON_EQ

public static int CANON_EQ

CASE_INSENSITIVE

public static int CASE_INSENSITIVE

COMMENTS

public static int COMMENTS

DOTALL

public static int DOTALL

MULTILINE

public static int MULTILINE

UNICODE_CASE

public static int UNICODE_CASE

UNIX_LINES

public static int UNIX_LINES
Constructor Detail

Pattern

public Pattern(String regex)
        throws PatternSyntaxException
Throws:
PatternSyntaxException

Pattern

public Pattern(String regex,
               int flags)
        throws PatternSyntaxException
Throws:
PatternSyntaxException
Method Detail

compile

public static Pattern compile(String regex)
                       throws PatternSyntaxException
Throws:
PatternSyntaxException

compile

public static Pattern compile(String regex,
                              int flags)
                       throws PatternSyntaxException
Throws:
PatternSyntaxException

flags

public int flags()

matcher

public Matcher matcher(CharSequence input)

matcher

public Matcher matcher(String input)

matches

public static boolean matches(String regex,
                              CharSequence input)
                       throws PatternSyntaxException
Throws:
PatternSyntaxException

pattern

public String pattern()

split

public String[] split(CharSequence input)

split

public String[] split(CharSequence input,
                      int limit)

getNativeMatcher

protected Object getNativeMatcher(String input)
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