jdk/src/linux/doc/man/ja/apt.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
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
.\" Copyright 2004-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
.\" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
.TH apt 1 "2006 年 9 月 4 日" "Java SE 6" "ユーザーコマンド"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.SH "名前"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
apt \- 注釈処理ツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
.\"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.SH "形式"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.BI [\-classpath " classpath"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.BI [\-sourcepath " sourcepath"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.BI [\-d " directory"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
.BI [\-s " directory"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.BI [\-factorypath " path"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.BI [\-factory " class"]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
.B [\-print]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.B [\-nocompile]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.B [\-Akey[=val] ...]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
.BI [javac option]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.BI sourcefiles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.BI [@files]
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.SH "パラメータ" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
オプションは任意の順序で使用できます。特定のオプションに適用される
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
パラメータについては、後述の「オプション」を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
.I sourcefiles
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
処理される 0 個以上のソースファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.I @files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
ソースファイルまたはその他のオプションをリストする 1 個以上のファイル。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.SH "機能説明"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
注釈処理ツール
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
には、プログラム注釈を処理するための一連の
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
新しいリフレクション API とインフラストラクチャサポートが含まれています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
のリフレクション API では、プログラム構造のビューが、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
ビルド時のソースベースの読み取り専用として用意されています。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
これらのリフレクション API は、総称型の追加後に、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
Java(TM) プログラミング言語の型システムを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
わかりやすくモデル化できるように設計されました。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
はじめに、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
は注釈プロセッサを実行します。この注釈プロセッサでは、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
新規のソースコードおよびその他のファイルを生成します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
次に、オリジナルのソースファイルと生成したソースファイルの両方をコンパイルし、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
開発を容易にします。ツールと対話するためのリフレクション API と
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
その他の API は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
.B com.sun.mirror 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
のサブパッケージです。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
によるツールの操作方法と開発手順についての詳細は、
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
http://java.sun.com/javase/6/docs/technotes/guides/apt/GettingStarted.html
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
の「Getting Started with apt」を参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
注: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
\f2apt\fP\f2 の機能\fPは標準の注釈処理インフラストラクチャに組み込まれました。この標準のインフラストラクチャは、今では \f2javac\fP ツール [
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
\f2Solaris と Linux\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html] [
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
\f2Windows\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html] の一部となり、すべての Java コンパイラで使用できるように標準化されています。この新しいインフラストラクチャは、Java プラットフォームの一部となった言語モデルと注釈処理 API に依存しています。新しい注釈プロセッサの開発は、この新しい API と \f2javac\fP ツールに基づいて行うことをお勧めします。
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
.SH "オプション"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
.SS apt 固有のオプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.BI \-s " dir"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
プロセッサが生成するソースファイルが配置されるディレクトリルートを
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
指定します。ファイルはパッケージのネームスペースに従って、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
サブディレクトリに配置されます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
.BI \-nocompile
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
ソースファイルをクラスファイルにコンパイルしません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
.BI \-print
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
指定した型のテキスト表現を出力します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
注釈処理やコンパイルは実行しません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
.BI \-A[key[=val]]
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
注釈プロセッサに渡されるオプション。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.B apt 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
は、これらのオプションを直接解釈しませんが、個別のプロセッサ
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
によって使用可能になります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
.BI \-factorypath " path" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
注釈プロセッサファクトリを検索する場所を指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
このオプションを使用する場合、ファクトリの検索に
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
クラスパスは使用されません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
.BI \-factory " classname"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
使用する注釈プロセッサファクトリの名前。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
デフォルトの検出処理はバイパスされます。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.SS javac と共有されるオプション
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.BI \-d " dir"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
プロセッサおよび 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
.B javac 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
が生成したクラスファイルを配置する場所を指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.if t .TP 20
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
.if n .TP 15
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.BI \-cp " path " \fLまたは\fP \fL\-classpath " path"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
ユーザクラスファイルおよび注釈プロセッサファクトリを検索する場所を
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
指定します。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.B \-factorypath 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
を指定した場合、ファクトリの検索にクラスパスは使用されません。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
javac のオプションについては、
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
.BR javac(1) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
のマニュアルページを参照してください。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
.SH 注意事項
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
\f2apt\fP の機能は、\f2javac\fP が提供するようになった標準の注釈処理インフラストラクチャに組み込まれました。\f2apt\fP とその関連 API のサポートは、JDK の将来のリリースで打ち切られる可能性があります。
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.SH "関連項目"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
javac: [
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
\f2Solaris と Linux\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
[ \f2Windows\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
java: [
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
\f2Solaris\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html] [
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
\f2Linux\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
http://java.sun.com/javase/6/docs/technotes/tools/linux/java.html] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
[ \f2Windows\fP の場合: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html] 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180