edu.neu.ccs.parser
Interface Parser

All Known Implementing Classes:
BaseParser

public interface Parser

Interface to be implemented by classes of objects that can parse String data and evaluate the contents of that data to an Object with state defined by the data contained in the String. This interface is similar to the StringableFilter interface, but represents the beginning of the parsing process rather than the intermediate stages of the parsing process. The parser interface is completely general in that its method returns Objects, but is restricted to delivering its output based on String input data.

Since:
1.0
Version:
2.2

Method Summary
 Object parse(String data)
          Parses the given data and returns the Object it represents, given this parsing scheme.
 

Method Detail

parse

public Object parse(String data)
             throws ParseException
Parses the given data and returns the Object it represents, given this parsing scheme.

Parameters:
data - the String data to be parsed
Throws:
ParseException - if the data is malformed