クラスElementKindVisitorPreview<R,P>
java.lang.Object
javax.lang.model.util.AbstractElementVisitor6<R,P>
javax.lang.model.util.SimpleElementVisitor6<R,P>
javax.lang.model.util.ElementKindVisitor6<R,P>
javax.lang.model.util.ElementKindVisitor7<R,P>
javax.lang.model.util.ElementKindVisitor8<R,P>
javax.lang.model.util.ElementKindVisitor9<R,P>
javax.lang.model.util.ElementKindVisitor14<R,P>
javax.lang.model.util.ElementKindVisitorPreview<R,P>
- 型パラメータ:
R
- このビジターのメソッドの戻り型。 結果を返すことを必要としないビジターのVoid
を使用する。P
- このビジターのメソッドに追加するパラメータの型。 追加のパラメータを必要としないビジターのVoid
を使用する。
- すべての実装されたインタフェース:
ElementVisitor<R,
P>
@SupportedSourceVersion(RELEASE_23) public class ElementKindVisitorPreview<R,P> extends ElementKindVisitor14<R,P>
ElementKindVisitorPreview
は、Javaプラットフォームのリフレクティブ・プレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
「プレビュー」ソース・バージョンに適したデフォルトの動作を持つ、kindに基づくプログラム要素のビジター。 複数の種類を持つelements
Xyz
の場合、このクラスのvisitXyz
メソッドは、最初の引数の種類に対応するvisitXyzAsKind
メソッドに委譲されます。 visitXyzAsKind
メソッドは、defaultAction
をコールし、引数をdefaultAction
の対応するパラメータに渡します。 - APIのノート:
- このクラスのメソッドは、一般規約に従ってオーバーライドできます。
- 導入されたバージョン:
- 23
- 関連項目:
-
フィールドのサマリー
クラスjavax.lang.model.util.SimpleElementVisitor6で宣言されたフィールド
DEFAULT_VALUE
-
コンストラクタのサマリー
コンストラクタ修飾子コンストラクタ説明protected
具象サブクラスのコンストラクタです。デフォルト値にnull
を使用します。protected
ElementKindVisitorPreview
(R defaultValue) 具象サブクラスのコンストラクタです。デフォルト値に引数を使用します。 -
メソッドのサマリー
クラスjavax.lang.model.util.ElementKindVisitor14で宣言されたメソッド
visitRecordComponent, visitTypeAsRecord, visitVariableAsBindingVariable
クラスjavax.lang.model.util.ElementKindVisitor9で宣言されたメソッド
visitModule
クラスjavax.lang.model.util.ElementKindVisitor7で宣言されたメソッド
visitVariableAsResourceVariable
クラスjavax.lang.model.util.ElementKindVisitor6で宣言されたメソッド
visitExecutable, visitExecutableAsConstructor, visitExecutableAsInstanceInit, visitExecutableAsMethod, visitExecutableAsStaticInit, visitPackage, visitType, visitTypeAsAnnotationType, visitTypeAsClass, visitTypeAsEnum, visitTypeAsInterface, visitTypeParameter, visitVariable, visitVariableAsEnumConstant, visitVariableAsExceptionParameter, visitVariableAsField, visitVariableAsLocalVariable, visitVariableAsParameter
クラスjavax.lang.model.util.SimpleElementVisitor6で宣言されたメソッド
defaultAction
クラスjavax.lang.model.util.AbstractElementVisitor6で宣言されたメソッド
visit, visit, visitUnknown
-
コンストラクタの詳細
-
ElementKindVisitorPreview
protected ElementKindVisitorPreview()具象サブクラスのコンストラクタです。デフォルト値にnull
を使用します。 -
ElementKindVisitorPreview
protected ElementKindVisitorPreview(R defaultValue) 具象サブクラスのコンストラクタです。デフォルト値に引数を使用します。- パラメータ:
defaultValue
- 割り当てる値SimpleElementVisitor6.DEFAULT_VALUE
-