Class PDFWalaIR
java.lang.Object
com.ibm.wala.examples.drivers.PDFWalaIR
This simple example application builds a WALA IR and fires off a PDF viewer to visualize a DOT
representation.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Usage: PDFWalaIR -appJar [jar file name] -sig [method signature] The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" The signature should be something like "java_cup.lexer.advance()V"static Process
static Process
static void
validateCommandLine
(String[] args) Validate that the command-line arguments obey the expected usage.
-
Field Details
-
PDF_FILE
- See Also:
-
-
Constructor Details
-
PDFWalaIR
public PDFWalaIR()
-
-
Method Details
-
main
Usage: PDFWalaIR -appJar [jar file name] -sig [method signature] The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" The signature should be something like "java_cup.lexer.advance()V"- Throws:
IOException
-
run
- Parameters:
args
- -appJar [jar file name] -sig [method signature] The "jar file name" should be something like "c:/temp/testdata/java_cup.jar" The signature should be something like "java_cup.lexer.advance()V"- Throws:
IOException
-
run
- Parameters:
appJar
- should be something like "c:/temp/testdata/java_cup.jar"methodSig
- should be something like "java_cup.lexer.advance()V"- Throws:
IOException
-
validateCommandLine
Validate that the command-line arguments obey the expected usage.Usage:
- args[0] : "-appJar"
- args[1] : something like "c:/temp/testdata/java_cup.jar"
- args[2] : "-sig"
- args[3] : a method signature like "java_cup.lexer.advance()V"
- Throws:
UnsupportedOperationException
- if command-line is malformed.
-