The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

javap (1)
  • >> javap (1) ( Solaris man: Команды и прикладные программы пользовательского уровня )
  • 
    NAME
         javap - Java class file disassembler
    
    SYNOPSIS
         javap [ -b ] [ -c ] [ -classpathpath ] [ -h ] [ -J flag ]
              [ -l ] [ -package ] [ -private ] [ -protected ]
              [ -public ] [ -s ] [ -verbose ] [ -verify ]
              [ -version ] class . . .
    
    DESCRIPTION
         The javap  command  disassembles  a  Java  class  file.  The
         options determine the output.  If no options are used, javap
         displays the public fields and methods of the classes passed
         to  it.   The  javap  command displays its output to stdout.
         For example, compile the following class declaration:
    
              import java.awt.*;
              import java.applet.*;
    
              public class DocFooter extends Applet {
                        String date;
                        String email;
    
                        public void init() {
                             resize(500,100);
    
                             date = getParameter("LAST_UPDATED");
                             email = getParameter("EMAIL");
                        }
    
                        public void paint(Graphics g) {
                             g.drawString(date + " by ",100, 15);
                             g.drawString(email,290,15);
                        }
              }
    
    
         The output from javap DocFooter yields:
    
              Compiled from DocFooter.java
              public class DocFooter extends java.applet.Applet {
                   java.lang.String date;
                   java.lang.String email;
                   public void init();
                   public void paint(java.awt.Graphics);
                   public DocFooter();
              }
    
    
    OPTIONS
         The following options are supported.
    
         -b             Ensures backward compatibility with javap  in
                        JDK 1.1.
    
         -c             Prints out disassembled code,  that  is,  the
                        instructions    that    comprise   the   Java
                        bytecodes, for each of  the  methods  in  the
                        class.
    
         -classpathpath Specifies the path  javap  uses  to  look  up
                        classes.    Overrides   the  default  or  the
                        CLASSPATH environment variable if it is  set.
                        Directories are separated by colons. Thus the
                        general format for path is:
    
                             .:<your_path>
    
                        For example:
    
                             .:/home/avh/classes:/usr/local/java/classes
    
    
         -h             Generates code that can  be  placed  to  a  C
                        header file.
    
         -J flag        Passes flag directly to runtime system.
    
         -l             Displays line and local variable tables.
    
         -package       Default; shows only package,  protected,  and
                        public classes and members.
    
         -private       Shows all classes and members.
    
         -protected     Shows only protected and public  classes  and
                        members.
    
         -public        Shows only public classes and members.
    
         -s             Displays internal type signatures.
    
         -verbose       Prints stack size, number of locals, and args
                        for methods.
    
         -verify        Runs the verifier.
    
         -version       Prints out the javap version string.
    
    ENVIRONMENT VARIABLES
         CLASSPATH      Used to provide the system  with  a  path  to
                        user-defined    classes.    Directories   are
                        separated by colons.  For example:
    
                             .:/home/avh/classes:/usr/local/java/classes
    
    ATTRIBUTES
         See attributes(5) for a description of the following  attri-
         butes:
    
         __________________________________
        | ATTRIBUTE TYPE|  ATTRIBUTE VALUE|
        |_______________|__________________|_
        | Availability  |  SUNWjvdev      |
        |_______________|_________________|
    
    SEE ALSO
         java(1),  javac(1),  javadoc(1),  javah(1),  jdb(1),  attri-
         butes(5)
    
    
    
    


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру