01: package abbot.script.parsers;
02:
03: /** This interface provides a method for converting a {@link String} into some
04: * destination class type. This interface was designed as an extensible
05: * method of converting {@link String}s into arbitrary target classes when
06: * parsing scripted arguments to methods. When a script is run and a method is
07: * resolved, the {@link String} arguments are converted to the classes
08: * required for the method invocation. Built-in conversions are provided for
09: * {@link abbot.script.ComponentReference}s and all the basic types, including
10: * arrays.<p>
11: * @see ColorParser
12: * @see FileParser
13: * @see TreePathParser
14: */
15: public interface Parser {
16: Object parse(String string) throws IllegalArgumentException;
17: }
|