|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdepend.framework.AbstractParser
jdepend.framework.ClassFileParser
public class ClassFileParser
The 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
|
Fields inherited from class jdepend.framework.AbstractParser |
---|
DEBUG |
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(java.lang.String[] args)
Test main. |
JavaClass |
parse(java.io.File classFile)
Parses the specified Java class file and returns a representative JavaClass instance. |
JavaClass |
parse(java.io.InputStream is)
Parses the specified input stream and returns a representative JavaClass instance. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class jdepend.framework.AbstractParser |
---|
addParseListener, debug, getFilter, onParsedJavaClass, setFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int JAVA_MAGIC
public static final int CONSTANT_UTF8
public static final int CONSTANT_UNICODE
public static final int CONSTANT_INTEGER
public static final int CONSTANT_FLOAT
public static final int CONSTANT_LONG
public static final int CONSTANT_DOUBLE
public static final int CONSTANT_CLASS
public static final int CONSTANT_STRING
public static final int CONSTANT_FIELD
public static final int CONSTANT_METHOD
public static final int CONSTANT_INTERFACEMETHOD
public static final int CONSTANT_NAMEANDTYPE
public static final char CLASS_DESCRIPTOR
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
Constructor Detail |
---|
public ClassFileParser()
JavaClassFileParser
instance
with the default package filter.
public ClassFileParser(PackageFilter filter)
JavaClassFileParser
instance
with the specified package filter.
filter
- Package filter.Method Detail |
---|
public JavaClass parse(java.io.File classFile) throws java.io.IOException
JavaClass
instance.
Registered parser listeners are informed that the
resulting JavaClass
was parsed.
fileName
- Java class file name.
java.io.IOException
- If the file could not be parsed.public JavaClass parse(java.io.InputStream is) throws java.io.IOException
AbstractParser
JavaClass
instance.
Registered parser listeners are informed that the
resulting JavaClass
was parsed.
parse
in class AbstractParser
is
- Input stream to parse.
java.io.IOException
- If the input stream could not be parsed.public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |