Package jdepend.framework
Class ClassFileParser
- java.lang.Object
-
- jdepend.framework.AbstractParser
-
- jdepend.framework.ClassFileParser
-
public class ClassFileParser extends AbstractParser
TheClassFileParserclass is responsible for parsing a Java class file to create aJavaClassinstance.- Author:
- Mike Clark, Clarkware Consulting, Inc.
-
-
Field Summary
Fields Modifier and Type Field Description static intACC_ABSTRACTstatic intACC_INTERFACEstatic charCLASS_DESCRIPTORstatic intCONSTANT_CLASSstatic intCONSTANT_DOUBLEstatic intCONSTANT_FIELDstatic intCONSTANT_FLOATstatic intCONSTANT_INTEGERstatic intCONSTANT_INTERFACEMETHODstatic intCONSTANT_LONGstatic intCONSTANT_METHODstatic intCONSTANT_NAMEANDTYPEstatic intCONSTANT_STRINGstatic intCONSTANT_UNICODEstatic intCONSTANT_UTF8static intJAVA_MAGIC-
Fields inherited from class jdepend.framework.AbstractParser
DEBUG
-
-
Constructor Summary
Constructors Constructor Description ClassFileParser()ClassFileParser(PackageFilter filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Test main.JavaClassparse(java.io.File classFile)Registered parser listeners are informed that the resultingJavaClasswas parsed.JavaClassparse(java.io.InputStream is)Registered parser listeners are informed that the resultingJavaClasswas parsed.java.lang.StringtoString()Returns a string representation of this object.-
Methods inherited from class jdepend.framework.AbstractParser
addParseListener, debug, getFilter, onParsedJavaClass, setFilter
-
-
-
-
Field Detail
-
JAVA_MAGIC
public static final int JAVA_MAGIC
- See Also:
- Constant Field Values
-
CONSTANT_UTF8
public static final int CONSTANT_UTF8
- See Also:
- Constant Field Values
-
CONSTANT_UNICODE
public static final int CONSTANT_UNICODE
- See Also:
- Constant Field Values
-
CONSTANT_INTEGER
public static final int CONSTANT_INTEGER
- See Also:
- Constant Field Values
-
CONSTANT_FLOAT
public static final int CONSTANT_FLOAT
- See Also:
- Constant Field Values
-
CONSTANT_LONG
public static final int CONSTANT_LONG
- See Also:
- Constant Field Values
-
CONSTANT_DOUBLE
public static final int CONSTANT_DOUBLE
- See Also:
- Constant Field Values
-
CONSTANT_CLASS
public static final int CONSTANT_CLASS
- See Also:
- Constant Field Values
-
CONSTANT_STRING
public static final int CONSTANT_STRING
- See Also:
- Constant Field Values
-
CONSTANT_FIELD
public static final int CONSTANT_FIELD
- See Also:
- Constant Field Values
-
CONSTANT_METHOD
public static final int CONSTANT_METHOD
- See Also:
- Constant Field Values
-
CONSTANT_INTERFACEMETHOD
public static final int CONSTANT_INTERFACEMETHOD
- See Also:
- Constant Field Values
-
CONSTANT_NAMEANDTYPE
public static final int CONSTANT_NAMEANDTYPE
- See Also:
- Constant Field Values
-
CLASS_DESCRIPTOR
public static final char CLASS_DESCRIPTOR
- See Also:
- Constant Field Values
-
ACC_INTERFACE
public static final int ACC_INTERFACE
- See Also:
- Constant Field Values
-
ACC_ABSTRACT
public static final int ACC_ABSTRACT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassFileParser
public ClassFileParser()
-
ClassFileParser
public ClassFileParser(PackageFilter filter)
-
-
Method Detail
-
parse
public JavaClass parse(java.io.File classFile) throws java.io.IOException
Registered parser listeners are informed that the resultingJavaClasswas parsed.- Throws:
java.io.IOException
-
parse
public JavaClass parse(java.io.InputStream is) throws java.io.IOException
Description copied from class:AbstractParserRegistered parser listeners are informed that the resultingJavaClasswas parsed.- Specified by:
parsein classAbstractParser- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
Returns a string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation.
-
main
public static void main(java.lang.String[] args)
Test main.
-
-