JavaTM 2 Platform
Standard Ed. 6

類別 javax.lang.model.element.NestingKind
的使用

使用 NestingKind 的軟體套件
javax.lang.model.element 用於 Java 程式語言的模型元素的介面。 
javax.tools 為能夠從程序(例如,編譯器)中調用的工具提供介面。 
 

javax.lang.model.element 中 NestingKind 的使用
 

返回 NestingKind 的 javax.lang.model.element 中的方法
 NestingKind TypeElement.getNestingKind()
          返回此型別元素的巢狀種類別 (nesting kind)。
static NestingKind NestingKind.valueOf(String name)
          返回帶有指定名稱的該型別的列舉常數。
static NestingKind[] NestingKind.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

javax.tools 中 NestingKind 的使用
 

返回 NestingKind 的 javax.tools 中的方法
 NestingKind ForwardingJavaFileObject.getNestingKind()
           
 NestingKind JavaFileObject.getNestingKind()
          提供有關此檔案物件表示的類別的巢狀層次的提示。
 NestingKind SimpleJavaFileObject.getNestingKind()
          此實作返回 null。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。