jdk/src/linux/doc/man/ja/javap.1
author jjg
Tue, 11 Mar 2008 13:14:55 -0700
changeset 168 25697c18650b
parent 2 90ce3da70b43
child 2692 345bc8d65b19
permissions -rw-r--r--
6307187: clean up code for -Xlint:options Summary: introduce common code for handling one-of and any-of options Reviewed-by: mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
'\" t
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2000-2006 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
.\" This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
.\" under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
.\" published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
.\" This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
.\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
.\" version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
.\" accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
.\" You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
.\" 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
.\" Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
.\" CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
.\" have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
'\"macro stdmacro
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.TH javap 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
javap \- Java クラスファイル逆アセンブラ
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
クラスファイルを逆アセンブルします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.\"  This document was created by saving an HTML file as text
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.\"  from the JavaSoft web site:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.\" http://java.sun.com/products/jdk/1.2/docs/tooldocs/tools.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.\"  and adding appropriate troff macros.  Because the JavaSoft web site 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.\"  man pages can change without notice, it may be helpful to diff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.\"  files to identify changes other than new functionality. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
.B  javap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
[
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.B options
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.IR class .\|.\|.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.SH "機能説明"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.IX "Java class file disassembler" "" "Java class file disassembler \(em \fLjavap\fP"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.IX "javap" "" "\fLjavap\fP \(em Java class file disassembler"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
.B javap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
コマンドは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
Java クラスファイルを逆アセンブルします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
出力内容はオプションで指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
オプションを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
つも指定しないと、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
.B javap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
は渡されたクラスの
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.BR package、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
.BR protected、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
および 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.B public
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
フィールドとメソッドを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.B javap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
コマンドの出力先は
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
.B stdout
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
です。たとえば、以下のクラス宣言をコンパイルします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
import java.awt.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
import java.applet.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
public class DocFooter extends Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
		String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
		String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
		public void init() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
			resize(500,100);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
			date = getParameter("LAST_UPDATED");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
			email = getParameter("EMAIL");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
		}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
		public void paint(Graphics g) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
			g.drawString(date + " by ",100, 15);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
			g.drawString(email,290,15);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
		}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
\f1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
この場合、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.B javap DocFooter
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
を実行すると以下の出力が得られます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.RS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
Compiled from DocFooter.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
public class DocFooter extends java.applet.Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
	java.lang.String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
	java.lang.String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
	public void init();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
	public void paint(java.awt.Graphics);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
	public DocFooter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
\f1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
\f3javap \-c DocFooter\fP を実行すると以下の出力が得られます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
Compiled from DocFooter.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
public class DocFooter extends java.applet.Applet {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    java.lang.String date;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    java.lang.String email;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
    public DocFooter();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    public void init();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    public void paint(java.awt.Graphics);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
Method DocFooter()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
   0 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
   1 invokespecial #1 <Method java.applet.Applet()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
   4 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
Method void init()
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
   0 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
   1 sipush 500
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
   4 bipush 100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
   6 invokevirtual #2 <Method void resize(int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
   9 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
  10 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
  11 ldc #3 <String "LAST_UPDATED">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
  13 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
  16 putfield #5 <Field java.lang.String date>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  19 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
  20 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
  21 ldc #6 <String "EMAIL">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  23 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
  26 putfield #7 <Field java.lang.String email>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
  29 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
Method void paint(java.awt.Graphics)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
   0 aload_1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
   1 new #8 <Class java.lang.StringBuffer>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
   4 dup
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
   5 invokespecial #9 <Method java.lang.StringBuffer()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
   8 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
   9 getfield #5 <Field java.lang.String date>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  12 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
  15 ldc #11 <String " by ">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
  17 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
  20 invokevirtual #12 <Method java.lang.String toString()>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
  23 bipush 100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
  25 bipush 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
  27 invokevirtual #13 <Method void drawString(java.lang.String, int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
  30 aload_1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
  31 aload_0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  32 getfield #7 <Field java.lang.String email>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
  35 sipush 290
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
  38 bipush 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
  40 invokevirtual #13 <Method void drawString(java.lang.String, int, int)>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
  43 return
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.SH "オプション"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
\-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
\f3javap\fP のヘルプメッセージを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
\-l 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
行番号と局所変数テーブルを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
\-b 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
JDK 1.1 の \f3javap\fP との下位互換性を保証します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
\-public 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
public クラスおよびメンバだけを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
\-protected 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
protected および public のクラスとメンバだけを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
\-package 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
package、protected、および public のクラスとメンバだけを表示します。これはデフォルトの設定です。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
\-private 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
すべてのクラスとメンバを表示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
\-Jflag 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
ランタイムシステムに直接 \f2flag\fP を渡します。使用例を次に示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
javap \-J\-version
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
javap \-J\-Djava.security.manager \-J\-Djava.security.policy=MyPolicy MyClassName
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
\-s 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
内部の型シグニチャーを出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
\-c 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
クラスの各メソッドのために逆アセンブルされるコード、すなわち Java バイトコードから成る命令を表示します。これらは
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
http://java.sun.com/docs/books/vmspec/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
「\f2Java Virtual Machine Specification\fP」にドキュメント化されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
\-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
メソッドのスタックサイズ、および \f2locals\fP と \f2args\fP の数を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
\-classpath path 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
\f3javap\fP がクラスを探すために使用するパスを指定します。デフォルトまたは CLASSPATH 環境変数設定を上書きします。ディレクトリはコロンで分割します。したがって、\f2path\fP の一般形式は次のようになります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
   .:<your_path>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
次に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.:/home/avh/classes:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
\-bootclasspath path 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
ブートストラップクラスをロードするパスを指定します。ブートストラップクラスは、デフォルトでは \f2jre/lib/rt.jar\fP および他のいくつかの JAR ファイル にある、コア Java プラットフォームを実装するクラスです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
\-extdirs dirs 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
インストールされた拡張機能を検索する場所をオーバーライドします。拡張機能は、デフォルトでは \f2java.ext.dirs\fP にあります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.SH "環境変数"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.B CLASSPATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
ユーザ定義クラスへのパスをシステムに通知するために使用します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
複数のディレクトリを指定する場合はコロンで区切ります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
以下に例を示します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.sp 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.RS 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
.B .:/home/avh/classes:/usr/local/java/classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.SH "関連項目"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
javac、java、jdb、javah、javadoc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330