|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjdepend.framework.AbstractParser
The 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(java.lang.String message)
|
protected PackageFilter |
getFilter()
|
protected void |
onParsedJavaClass(JavaClass jClass)
Informs registered parser listeners that the specified JavaClass was parsed. |
abstract JavaClass |
parse(java.io.InputStream is)
Parses the specified input stream and returns a representative JavaClass instance. |
protected void |
setFilter(PackageFilter filter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
| Constructor Detail |
public AbstractParser()
AbstractParser instance
with the default package filter.
public AbstractParser(PackageFilter filter)
AbstractParser instance
with the specified package filter.
filter - Package filter.| Method Detail |
public void addParseListener(ParserListener listener)
listener - Parser listener.
public abstract JavaClass parse(java.io.InputStream is)
throws java.io.IOException
JavaClass instance.
Registered parser listeners are informed that the
resulting JavaClass was parsed.
is - Input stream to parse.
java.io.IOException - If the input stream could not be parsed.protected void onParsedJavaClass(JavaClass jClass)
JavaClass was parsed.
jClass - Parsed Java class.protected PackageFilter getFilter()
protected void setFilter(PackageFilter filter)
protected void debug(java.lang.String message)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||