Elements
Interface Elements
public interface Elements
Utility methods for operating on program elements.
Compatibility Note: Methods may be added to this interface in future releases of the platform.
- Since:
- 1.6
- See Also:
ProcessingEnvironment.getElementUtils()
Methods
getPackageElement
PackageElement getPackageElement(CharSequence name)
Returns a package given its fully qualified name.
- Parameters:
-
name
- fully qualified package name, or "" for an unnamed package - Returns:
- the named package, or
null
if it cannot be found