Module jdk.compiler

Interface UnionTypeTree

所有超级接口:
Tree

public interface UnionTypeTree extends Tree
用于多捕获变量声明中的联合类型表达式的树节点。
自版本:
1.7
  • Nested Class Summary

    Nested classes/interfaces declared in interface com.sun.source.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends Tree>
    返回替代类型表达式。

    Methods declared in interface com.sun.source.tree.Tree

    accept, getKind
  • Method Details

    • getTypeAlternatives

      List<? extends Tree> getTypeAlternatives()
      返回替代类型表达式。
      返回:
      替代类型表达式