F - 由该对象转发的文件对象的种类
public class ForwardingJavaFileObject<F extends JavaFileObject> extends ForwardingFileObject<F> implements JavaFileObject
JavaFileObject.KindfileObject| Modifier | Constructor and Description |
|---|---|
protected |
ForwardingJavaFileObject(F fileObject)
创建一个新的ForwardingJavaFileObject实例。
|
| Modifier and Type | Method and Description |
|---|---|
Modifier |
getAccessLevel()
提供关于由该文件对象表示的类的访问级别的提示。
|
JavaFileObject.Kind |
getKind()
获取此文件对象的种类。
|
NestingKind |
getNestingKind()
提供关于由该文件对象表示的类的嵌套级别的提示。
|
boolean |
isNameCompatible(String simpleName, JavaFileObject.Kind kind)
检查此文件对象是否与指定的简单名称和种类兼容。
|
delete, getCharContent, getLastModified, getName, openInputStream, openOutputStream, openReader, openWriter, toUriclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, getCharContent, getLastModified, getName, openInputStream, openOutputStream, openReader, openWriter, toUriprotected ForwardingJavaFileObject(F fileObject)
fileObject - 委托给这个文件对象
public JavaFileObject.Kind getKind()
JavaFileObject复制
getKind在界面
JavaFileObject
public boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
JavaFileObject复制
isNameCompatible在接口
JavaFileObject
simpleName - 类的简单名称
kind - 一种
true如果这个文件对象是兼容的;
否则为假
public NestingKind getNestingKind()
JavaFileObject复制
NestingKind.MEMBER ,意思是NestingKind.LOCAL或NestingKind.ANONYMOUS 。
如果嵌套级别未知或此文件对象不表示类文件,则此方法返回null 。
getNestingKind在界面
JavaFileObject
null如果嵌套类型不知道
public Modifier getAccessLevel()
JavaFileObject
null 。
getAccessLevel在接口
JavaFileObject
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.