public class Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVE_PATH_DELIMITER |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String ARCHIVE_PATH_DELIMITER
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 paths.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 classjava.io.IOException