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