org.eclipse.jdt.internal.compiler.apt.model
接口 IElementInfo

所有已知实现类:
ElementImpl, ErrorTypeElement, ExecutableElementImpl, PackageElementImpl, TypeElementImpl, TypeParameterElementImpl, VariableElementImpl

public interface IElementInfo

Additional information available for Elements that are implemented within the Eclipse APT framework.

从以下版本开始:
3.3
另请参见:
javax.lang.model.Element

方法摘要
 String getFileName()
          Get the project-relative path to the source file that contains this element.
 

方法详细信息

getFileName

String getFileName()
Get the project-relative path to the source file that contains this element. If the element is a PackageElement, the "source file" is package-info.java. If the element is not recognized or does not exist in the project for some reason, returns null.

返回:
the project-relative path, or null.


Copyright © 2013. All Rights Reserved.