org.objectweb.fractal.adl

Interface Parser

Known Implementing Classes:
XMLParser

public interface Parser

An Abstract Syntax Tree (AST) parser.

Method Summary

Node
parse(InputStream is, String source)
Parses the given input stream and constructs the corresponding AST.

Method Details

parse

public Node parse(InputStream is,
                  String source)
            throws ParserException
Parses the given input stream and constructs the corresponding AST.

Parameters:
is - the input stream that must be parsed.
source - the source of this input stream (such as a file name).

Returns:
the AST corresponding to the given input stream content.

Throws:
ParserException - if an error occurs during parsing.