|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.string.java.Automatons
public class Automatons
Provides automatons for common Java types. All automatons are defined to accept the possible output of a toString method, so integer literals like -0 and float literals .45 are not accepted!
Constructor Summary | |
---|---|
Automatons()
|
Method Summary | |
---|---|
static Automaton |
fromType(String name)
Gets an automaton accepting values of the specified type converted to a string. |
Automaton |
getAutomaton(String name)
|
static Automaton |
getBoolean()
Gets an automaton accepting the possible return values of Boolean.toString(), which are the strings "true" and "false". |
static Automaton |
getFloat()
Gets an automaton accepting the possible return values of Float.toString() and Double.toString(). |
static Automaton |
getInteger()
Gets an automaton accepting the possible return values of Integer.toString(), Long.toString(), Byte.toString() and Short.toString(). |
static Automaton |
getNull()
Gets an automaton accepting only the string "null". |
static Automaton |
getUnsignedInteger()
Gets an automaton accepting the possible return values of Integer.toString() and Long.toString() for non-negative integers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Automatons()
Method Detail |
---|
public static Automaton fromType(String name)
name
- name of a primitive type or a wrapper type. For example, int or java.lang.Boolean.
public Automaton getAutomaton(String name)
getAutomaton
in interface AutomatonProvider
public static Automaton getBoolean()
public static Automaton getFloat()
public static Automaton getInteger()
public static Automaton getNull()
public static Automaton getUnsignedInteger()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |