JML

java.util.regex
Class Pattern

java.lang.Object
  extended byjava.util.regex.Pattern
All Implemented Interfaces:
Serializable

public final class Pattern
extends Object
implements Serializable


Class Specifications

Specifications inherited from class Object
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this);

Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
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()
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
static Pattern compile(non_null String regex)
           
static Pattern compile(non_null String regex, int flags)
           
 int flags()
           
 Matcher matcher(non_null CharSequence input)
           
static boolean matches(non_null String regex, non_null CharSequence input)
           
 String pattern()
           
 String[] split(non_null CharSequence input)
           
 String[] split(non_null CharSequence input, int limit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNIX_LINES

public static final int UNIX_LINES

CASE_INSENSITIVE

public static final int CASE_INSENSITIVE

COMMENTS

public static final int COMMENTS

MULTILINE

public static final int MULTILINE

DOTALL

public static final int DOTALL

UNICODE_CASE

public static final int UNICODE_CASE

CANON_EQ

public static final int CANON_EQ
Constructor Detail

Pattern

public Pattern()
Method Detail

compile

public static Pattern compile(non_null String regex)
Specifications: pure non_null

compile

public static Pattern compile(non_null String regex,
                              int flags)
Specifications: pure non_null

pattern

public String pattern()
Specifications: pure non_null

matcher

public Matcher matcher(non_null CharSequence input)
Specifications: pure non_null

flags

public int flags()
Specifications: pure

matches

public static boolean matches(non_null String regex,
                              non_null CharSequence input)
Specifications: pure

split

public String[] split(non_null CharSequence input,
                      int limit)
Specifications: pure non_null

split

public String[] split(non_null CharSequence input)
Specifications: pure non_null

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.