|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclassycle.Parser
public class Parser
Utility methods for parsing class files and creating directed graphs. The nodes of the graph are classes. The initial vertex of an edge is the class which uses the class specified by the terminal vertex.
Method Summary | |
---|---|
static AtomicVertex[] |
readClassFiles(java.lang.String[] classFiles)
Reads and parses class files and creates a direct graph. |
static AtomicVertex[] |
readClassFiles(java.lang.String[] classFiles,
StringPattern pattern,
StringPattern reflectionPattern,
boolean mergeInnerClasses)
Reads the specified class files and creates a directed graph where each vertex represents a class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static AtomicVertex[] readClassFiles(java.lang.String[] classFiles) throws java.io.IOException
TrueStringPattern
(),
null, false);
java.io.IOException
public static AtomicVertex[] readClassFiles(java.lang.String[] classFiles, StringPattern pattern, StringPattern reflectionPattern, boolean mergeInnerClasses) throws java.io.IOException
.zip
, .jar
,
.war
, or .ear
containing class file
classFiles
- Array of file names.pattern
- Pattern fully qualified class names have to match in order
to be added to the graph. Otherwise they count as
'external'.reflectionPattern
- Pattern ordinary string constants of a class
file have to fullfill in order to be handled as
class references. In addition they have to be
syntactically valid fully qualified class names. If
null ordinary string constants will not be
checked.mergeInnerClasses
- If true
merge inner classes with its outer class
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |