モジュール jdk.compiler
パッケージ com.sun.source.tree

インタフェースDeconstructionPatternTree

すべてのスーパー・インタフェース:
PatternTree, Tree

public interface DeconstructionPatternTree extends PatternTree
DeconstructionPatternTreeは、Javaプラットフォームのリフレクティブ・プレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
解体パターン・ツリー。
導入されたバージョン:
19
  • ネストされたクラスのサマリー

    インタフェース com.sun.source.tree.Treeで宣言されたネストされたクラス/インタフェース

    Tree.Kind
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    構造化解除された型を返します。
    List<? extends PatternTree>
    ネストされたパターンを返します。
    バインディング変数を返します。

    インタフェース com.sun.source.tree.Treeで宣言されたメソッド

    accept, getKind
  • メソッドの詳細

    • getDeconstructor

      ExpressionTree getDeconstructor()
      構造化解除された型を返します。
      戻り値:
      解体タイプ
    • getNestedPatterns

      List<? extends PatternTree> getNestedPatterns()
      ネストされたパターンを返します。
      戻り値:
      ネストされたパターン。
    • getVariable

      VariableTree getVariable()
      バインディング変数を返します。
      戻り値:
      バインディング変数