Module jdk.compiler

Interface UsesTree

所有超级接口:
DirectiveTree, Tree

public interface UsesTree extends DirectiveTree
模块声明中'uses'指令的树节点。例如:
    uses service-name;
 
自JDK版本:
9
  • Nested Class Summary

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

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回服务类型的名称。

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

    accept, getKind
  • Method Details

    • getServiceName

      ExpressionTree getServiceName()
      返回服务类型的名称。
      返回:
      服务类型的名称