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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRestrict g to nodes from the Application loaderstatic <T> Graph<T> pruneGraph(Graph<T> g, Predicate<T> f) static ProcessReturn a view of anIClassHierarchyas aGraph, with edges from classes to immediate subtypesstatic voidvalidateCommandLine(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 anIClassHierarchyas aGraph, with edges from classes to immediate subtypes
-