jdepend.framework
public abstract class AbstractParser extends Object
AbstractParser class is the base
class for classes capable of parsing files to
create a JavaClass instance.
| Field Summary | |
|---|---|
| static boolean | DEBUG |
| Constructor Summary | |
|---|---|
| AbstractParser()
Constructs an AbstractParser instance
with the default package filter. | |
| AbstractParser(PackageFilter filter)
Constructs an AbstractParser instance
with the specified package filter.
| |
| Method Summary | |
|---|---|
| void | addParseListener(ParserListener listener)
Registers the specified parser listener.
|
| protected void | debug(String message) |
| protected PackageFilter | getFilter() |
| protected void | onParsedJavaClass(JavaClass jClass)
Informs registered parser listeners that the
specified JavaClass was parsed.
|
| abstract JavaClass | parse(InputStream is)
Parses the specified input stream and returns
a representative JavaClass instance.
|
| protected void | setFilter(PackageFilter filter) |
AbstractParser instance
with the default package filter.AbstractParser instance
with the specified package filter.
Parameters: filter Package filter.
Parameters: listener Parser listener.
JavaClass was parsed.
Parameters: jClass Parsed Java class.
JavaClass instance.
Registered parser listeners are informed that the
resulting JavaClass was parsed.
Parameters: is Input stream to parse.
Returns: Java class.
Throws: IOException If the input stream could not be parsed.