jdepend.framework
public class ClassFileParser extends AbstractParser
ClassFileParser class is responsible
for parsing a Java class file to create a
JavaClass instance.
| Field Summary | |
|---|---|
| static int | ACC_ABSTRACT |
| static int | ACC_INTERFACE |
| static char | CLASS_DESCRIPTOR |
| static int | CONSTANT_CLASS |
| static int | CONSTANT_DOUBLE |
| static int | CONSTANT_FIELD |
| static int | CONSTANT_FLOAT |
| static int | CONSTANT_INTEGER |
| static int | CONSTANT_INTERFACEMETHOD |
| static int | CONSTANT_LONG |
| static int | CONSTANT_METHOD |
| static int | CONSTANT_NAMEANDTYPE |
| static int | CONSTANT_STRING |
| static int | CONSTANT_UNICODE |
| static int | CONSTANT_UTF8 |
| static int | JAVA_MAGIC |
| Constructor Summary | |
|---|---|
| ClassFileParser()
Constructs a JavaClassFileParser instance
with the default package filter. | |
| ClassFileParser(PackageFilter filter)
Constructs a JavaClassFileParser instance
with the specified package filter.
| |
| Method Summary | |
|---|---|
| static void | main(String[] args)
Test main. |
| JavaClass | parse(File classFile)
Parses the specified Java class file and returns
a representative JavaClass instance.
|
| JavaClass | parse(InputStream is) |
| String | toString()
Returns a string representation of this object.
|
JavaClassFileParser instance
with the default package filter.JavaClassFileParser instance
with the specified package filter.
Parameters: filter Package filter.
JavaClass instance.
Registered parser listeners are informed that the
resulting JavaClass was parsed.
Parameters: fileName Java class file name.
Returns: Parsed class.
Throws: IOException If the file could not be parsed.
Returns: String representation.