Reference documents
Http://blog.chinaunix.net/uid-692788-id-2681132.html
Http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javap.html
function Description: Java class file parser.
syntax:javap [ command Options ] class ...
Additional notes:
The javap command is used to parse the class file. Its output depends on the options used. Without an option,JAVAP outputs the public domain and method of the class passed to it. The JAVAP outputs it to the standard output device.
Command options:
-help The Help information for the output JAVAP .
- l output rows and local variable tables.
- b ensures backward compatibility with JDK 1.1 Javap .
-public displays only public classes and members.
-protected displays only the protected and public classes and members.
-package only displays packages,protected , and public classes and members. This is the default setting.
-private Displays all classes and members.
-j[flag] direct flag to the runtime system.
- s output internal type signature.
The unresolved code for each method in the- C Output class, which is the instruction that constitutes the Java bytecode.
-verbose The output stack size, the locals of each method, and the number of args .
-classpath[ Path ] Specifies the path that JAVAP uses to find the class. If this option is set, it overrides the default value or CLASSPATH environment variable. Directories are separated by colons.
-Bootclasspath Specifies the path used to load the bootstrap class. By default, the Bootstrap class is the class that implements the core Java platform, located in the Jrelibt.jar
and Jrelibi18n.jar .
-extdirs[dirs] overrides the location of the search installation mode extension. The default location for the extension is jrelibext.
JAVAP--Java class file parser