Example usage for Java org.eclipse.jdt.core IPackageDeclaration fields, constructors, methods, implement or subclass
The text is from its open source code.
IJavaElement | getAncestor(int ancestorType) Returns this Java element or the first ancestor of this element that has the given type. |
String | getElementName() Returns the name of the package the statement refers to. |
IJavaElement | getParent() Returns the element directly containing this element, or null if this element has no parent. |