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

インタフェースTypeParameterTree

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

    public interface TypeParameterTree
    extends Tree
    型パラメータのツリー・ノードです。 たとえば、
       name
    
       name extends bounds
    
       annotations name
     
    導入されたバージョン:
    1.6
    Java™言語仕様:
    セクション4.4
    • メソッドの詳細

      • getName

        Name getName()
        型パラメータの名前を返します。
        戻り値:
        名前
      • getBounds

        List<? extends Tree> getBounds()
        型パラメータの境界を返します。
        戻り値:
        境界
      • getAnnotations

        List<? extends AnnotationTree> getAnnotations()
        型パラメータ宣言の注釈を返します。 注釈には、この位置に表示されるElementType.TYPE_PARAMETERまたはElementType.TYPE_USEのターゲット・メタ注釈が必要です。
        戻り値:
        型パラメータ宣言の注釈
        導入されたバージョン:
        1.8