Class PDFTypeHierarchy
java.lang.Object
com.ibm.wala.examples.drivers.PDFTypeHierarchy
This simple example WALA application builds a TypeHierarchy and fires off ghostview to viz a DOT
representation.
- Author:
- sfink
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Restrict g to nodes from the Application loaderstatic <T> Graph
<T> pruneGraph
(Graph<T> g, Predicate<T> f) static Process
Return a view of anIClassHierarchy
as aGraph
, with edges from classes to immediate subtypesstatic void
validateCommandLine
(String[] args) Validate that the command-line arguments obey the expected usage.
-
Field Details
-
DOT_FILE
- See Also:
-
p
-
-
Constructor Details
-
PDFTypeHierarchy
public PDFTypeHierarchy()
-
-
Method Details
-
main
- Throws:
IOException
-
run
- Throws:
IOException
-
pruneGraph
-
pruneForAppLoader
-
validateCommandLine
Validate that the command-line arguments obey the expected usage.Usage: args[0] : "-classpath" args[1] : String, a ";"-delimited class path
- Throws:
UnsupportedOperationException
- if command-line is malformed.
-
typeHierarchy2Graph
Return a view of anIClassHierarchy
as aGraph
, with edges from classes to immediate subtypes
-