java.lang.Object | +--jdepend.framework.AbstractParserKnown Direct Subclasses:
static boolean |
Constructs an AbstractParser instance with the default package filter. |
AbstractParser(PackageFilter filter) Constructs an AbstractParser instance with the specified package filter. |
void | addParseListener(ParserListener listener) Registers the specified parser listener. |
void | debug(java.lang.String message) |
void | onParsedJavaClass(JavaClass jClass) Informs registered parser listeners that the specified JavaClass was parsed. |
parse(java.io.InputStream is) Parses the specified input stream and returns a representative JavaClass instance. | |
void | setFilter(PackageFilter filter) |
public static boolean DEBUG
public AbstractParser()
AbstractParser
instance
with the default package filter.
public AbstractParser(PackageFilter filter)
AbstractParser
instance
with the specified package filter.
public void addParseListener(ParserListener listener)
protected void debug(java.lang.String message)
protected PackageFilter getFilter()
protected void onParsedJavaClass(JavaClass jClass)
JavaClass
was parsed.
public JavaClass parse(java.io.InputStream is)
JavaClass
instance.
Registered parser listeners are informed that the
resulting JavaClass
was parsed.
java.io.IOException
- If the input stream could not be parsed.protected void setFilter(PackageFilter filter)
AbstractParser
class is the base class for classes capable of parsing files to create aJavaClass
instance.