|
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.Pattern
Provides a pattern object for matching strings.
| Field Summary | |
static int |
CANON_EQ
Enables canonical equivalence. |
static int |
CASE_INSENSITIVE
Enables case-insensitive matching. |
static int |
COMMENTS
Permits whitespace and comments in pattern. |
static int |
DOTALL
Enables dotall mode. |
static int |
MULTILINE
Enables multiline mode. |
static int |
UNICODE_CASE
Enables Unicode-aware case folding. |
static int |
UNIX_LINES
Enables Unix lines mode. |
| Constructor Summary | |
Pattern(java.lang.String pattern)
|
|
Pattern(java.lang.String pattern,
int flags)
|
|
| Method Summary | |
static Pattern |
compile(java.lang.String regex)
Compiles the given regular expression into a pattern. |
static Pattern |
compile(java.lang.String regex,
int flags)
Compiles the given regular expression into a pattern with the given flags. |
int |
flags()
Returns this pattern's match flags. |
protected RE |
getExpression()
|
Matcher |
matcher(CharSequence input)
Creates a matcher that will match the given input against this pattern. |
Matcher |
matcher(java.lang.String input)
Creates a matcher that will match the given input against this pattern. |
static boolean |
matches(java.lang.String regex,
CharSequence input)
Compiles the given regular expression and attempts to match the given input against it. |
java.lang.String |
pattern()
Returns the regular expression from which this pattern was compiled. |
java.lang.String[] |
split(CharSequence input)
Splits the given input sequence around matches of this pattern. |
java.lang.String[] |
split(CharSequence input,
int limit)
Splits the given input sequence around matches of this pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int CANON_EQ
public static int CASE_INSENSITIVE
public static int COMMENTS
public static int DOTALL
public static int MULTILINE
public static int UNICODE_CASE
public static int UNIX_LINES
| Constructor Detail |
public Pattern(java.lang.String pattern)
throws PatternSyntaxException
public Pattern(java.lang.String pattern,
int flags)
throws PatternSyntaxException
| Method Detail |
public static Pattern compile(java.lang.String regex)
throws PatternSyntaxException
regex - TBD: Description of the incoming method parameterPatternSyntaxException - Exception raised in failure situation
public static Pattern compile(java.lang.String regex,
int flags)
throws PatternSyntaxException
regex - TBD: Description of the incoming method parameterflags - TBD: Description of the incoming method parameterPatternSyntaxException - Exception raised in failure situationpublic int flags()
public Matcher matcher(CharSequence input)
input - TBD: Description of the incoming method parameterpublic Matcher matcher(java.lang.String input)
input - TBD: Description of the incoming method parameter
public static boolean matches(java.lang.String regex,
CharSequence input)
throws PatternSyntaxException
regex - TBD: Description of the incoming method parameterinput - TBD: Description of the incoming method parameterPatternSyntaxException - Exception raised in failure situationpublic java.lang.String pattern()
public java.lang.String[] split(CharSequence input)
input - TBD: Description of the incoming method parameter
public java.lang.String[] split(CharSequence input,
int limit)
input - TBD: Description of the incoming method parameterlimit - TBD: Description of the incoming method parameterprotected RE getExpression()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||