|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.runtime.Strings
public class Strings
Runtime system.
| Method Summary | |
|---|---|
static String |
analyze(String s,
String regexp)
Instructs the string analyzer to verify that the string is in the regular language specified by the regular expression. |
static String |
analyze(String s,
URL url)
Instructs the string analyzer to verify that the string is in the regular language specified by a serialized Automaton located by a URL. |
static void |
bind(String id,
String regexp)
Binds a regular language to an identifier. |
static void |
bind(String id,
URL url)
Binds a regular language to an identifier. |
static String |
cast(String s,
String regexp)
Casts string to regular language specified by regular expression. |
static String |
cast(String s,
URL url)
Casts string to regular language specified by serialized Automaton located by URL. |
static boolean |
check(String s,
String regexp)
Checks that the given string is in the regular language specified by the given regular expression. |
static boolean |
check(String s,
URL url)
Checks that the given string is in regular language specified by the given serialized Automaton located by URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String analyze(String s,
String regexp)
throws IllegalArgumentException
s - stringregexp - regular expression written in the full syntax of
dk.brics.automaton.RegExp.
IllegalArgumentException - if the regular expression uses an unbound identifier
public static String analyze(String s,
URL url)
Automaton located by a URL.
s - stringurl - URL of serialized automaton
IOException - if unserialization errors occurred
public static void bind(String id,
String regexp)
throws IllegalArgumentException
id - identifierregexp - regular expression written in the full syntax of
dk.brics.automaton.RegExp.
IllegalArgumentException - if the identifier already has been bound
or the regular expression uses an unbound identifier
public static void bind(String id,
URL url)
throws IOException,
IllegalArgumentException
id - identifierurl - URL of serialized automaton
IOException - if unserialization errors occurred
IllegalArgumentException - if the identifier already has been bound
or the regular expression uses an unbound identifier
public static String cast(String s,
String regexp)
throws IllegalArgumentException
s - stringregexp - regular expression written in the full syntax of
dk.brics.automaton.RegExp.
ClassCastException - if the string is not in the given regular language
IllegalArgumentException - if the regular expression uses an unbound identifier
public static String cast(String s,
URL url)
throws IOException
Automaton located by URL.
s - stringurl - URL of serialized automaton
IOException - if unserialization errors occurred
ClassCastException - if the string is not in the given regular language
public static boolean check(String s,
String regexp)
throws IllegalArgumentException
s - stringregexp - regular expression written in the full syntax of
dk.brics.automaton.RegExp.
IllegalArgumentException - if the regular expression uses an unbound identifier
public static boolean check(String s,
URL url)
throws IOException
Automaton located by URL.
s - stringurl - URL of serialized automaton
IOException - if unserialization errors occurred
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||