public abstract class StringParser extends Object
Constructor and Description |
---|
StringParser() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
parse(String arg)
Parses the specified argument into an Object of the appropriate type.
|
void |
setUp()
Performs any initialization not handled by this StringParser's
constructor.
|
void |
tearDown()
Performs any cleanup necessary for this StringParser.
|
public void setUp() throws Exception
Exception
- if an initialization error occurs that should prevent
the Option containing this StringParser from being registered.public void tearDown()
public abstract Object parse(String arg) throws ParseException
arg
- the argument to convert to an Object of class appropriate to
the StringParser subclass.ParseException
- if the specified argument cannot be parsed.Copyright © 2016. All rights reserved.