Class JavaStubifier
java.lang.Object
org.checkerframework.framework.stub.JavaStubifier
Process Java source files in a directory to produce, in-place, minimal stub files.
 
To process a file means to remove:
- everything that is private or package-private,
 - all comments, except for an initial copyright header,
 - all method bodies,
 - all field initializers,
 - all initializer blocks,
 - attributes to the 
Deprecatedannotation (to be Java 8 compatible). 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic PathdirnameToPath(String dir) Converts a directory name to a path.static voidProcesses each provided command-line argument; see class documentation for details. 
- 
Constructor Details
- 
JavaStubifier
public JavaStubifier() 
 - 
 - 
Method Details
- 
main
Processes each provided command-line argument; see class documentation for details.- Parameters:
 args- command-line arguments: directories to process
 - 
dirnameToPath
Converts a directory name to a path. It issues a warning and terminates the program if the argument does not exist or is not a directory.Unlike
Paths.get, it handles "." which means the current directory in Unix.- Parameters:
 dir- a directory name- Returns:
 - a path for the directory name
 
 
 -