|
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.Pattern
public final class Pattern
Pattern implements a compiler for regular expressions as defined by the J2SE specification. The regular expression syntax is largely similar to the syntax defined by Perl 5 but has both omissions and extensions. A formal and complete definition of the regular expression syntax is not provided by the J2SE speTBD (TODO)
Field Summary | |
---|---|
static int |
CANON_EQ
|
static int |
CASE_INSENSITIVE
|
static java.lang.Class |
CLASS_INSTANCE
|
static int |
COMMENTS
|
static int |
DOTALL
|
static int |
LITERAL
|
static int |
MULTILINE
|
static int |
UNICODE_CASE
|
static int |
UNIX_LINES
|
Method Summary | |
---|---|
static Pattern |
compile(java.lang.String pattern)
|
static Pattern |
compile(java.lang.String regex,
int flags)
Return a compiled pattern corresponding to the input regular expression string. |
int |
flags()
Return the mask of flags used to compile the pattern |
Matcher |
matcher(java.lang.String cs)
Create a matcher for this pattern and a given input character sequence |
static boolean |
matches(java.lang.String regex,
java.lang.String input)
|
java.lang.String |
pattern()
Returns the pattern string passed to the compile method |
static java.lang.String |
quote(java.lang.String s)
|
java.lang.String[] |
split(java.lang.String input)
|
java.lang.String[] |
split(java.lang.String input,
int limit)
Split an input string using the pattern as a token separator. |
java.lang.String |
toString()
Return a textual representation of the pattern. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
public static final int UNIX_LINES
public static final int CASE_INSENSITIVE
public static final int COMMENTS
public static final int MULTILINE
public static final int LITERAL
public static final int DOTALL
public static final int UNICODE_CASE
public static final int CANON_EQ
Method Detail |
---|
public Matcher matcher(java.lang.String cs)
cs
- The input character sequence
public java.lang.String[] split(java.lang.String input, int limit)
input
- Input sequence to tokenizelimit
- If positive, the maximum number of tokens to return. If negative, an indefinite number of tokens are
returned. If zero, an indefinite number of tokens are returned but trailing empty tokens are excluded.
public java.lang.String[] split(java.lang.String input)
public java.lang.String pattern()
public java.lang.String toString()
toString
in class java.lang.Object
public int flags()
public static Pattern compile(java.lang.String regex, int flags) throws PatternSyntaxException
flags
is a mask of the following flags:
UNIX_LINES
(0x0001)
CASE_INSENSITIVE
(0x0002)
UNICODE_CASE
(0x0040)
CASE_INSENSITIVE
flag. If CASE_INSENSITIVE
is not set, then this flag has no effect.
COMMENTS
(0x0004)
MULTILINE
(0x0008)
DOTALL
(0x0020)
CANON_EQ
(0x0080)
regex
- A regular expression string.flags
- A set of flags to control the compilation of the pattern.
PatternSyntaxException
- If the input regular expression does not match the required
grammar.public static Pattern compile(java.lang.String pattern)
public static boolean matches(java.lang.String regex, java.lang.String input)
public static java.lang.String quote(java.lang.String s)
|
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 |