abbot.script.parsers
Interface Parser
- All Known Implementing Classes:
- ColorParser, FileParser, TreePathParser
public interface Parser
This interface provides a method for converting a String
into some
destination class type. This interface was designed as an extensible
method of converting String
s into arbitrary target classes when
parsing scripted arguments to methods. When a script is run and a method is
resolved, the String
arguments are converted to the classes
required for the method invocation. Built-in conversions are provided for
ComponentReference
s and all the basic types, including
arrays.
- See Also:
ColorParser
,
FileParser
,
TreePathParser
parse
Object parse(String string)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on