org.eclipse.jdt.internal.core
Class PackageDeclaration
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.jdt.internal.core.JavaElement
org.eclipse.jdt.internal.core.SourceRefElement
org.eclipse.jdt.internal.core.PackageDeclaration
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, IAnnotatable, IJavaElement, IPackageDeclaration, ISourceReference
- Direct Known Subclasses:
- AssistPackageDeclaration
public class PackageDeclaration
- extends SourceRefElement
- implements IPackageDeclaration
- See Also:
IPackageDeclaration
Fields inherited from class org.eclipse.jdt.internal.core.JavaElement |
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LOCALVARIABLE, JEM_METHOD, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_TYPE, JEM_TYPE_PARAMETER |
Fields inherited from interface org.eclipse.jdt.core.IJavaElement |
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
Method Summary |
boolean |
equals(java.lang.Object o)
Returns true if this handle represents the same Java element
as the given handle. |
java.lang.String |
getElementName()
Returns the name of this element. |
int |
getElementType()
Returns this element's kind encoded as an integer. |
IJavaElement |
getPrimaryElement(boolean checkOwner)
|
Methods inherited from class org.eclipse.jdt.internal.core.SourceRefElement |
copy, delete, findNode, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleFromMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource |
Methods inherited from class org.eclipse.jdt.internal.core.JavaElement |
close, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceMapper, hashCode, isAncestorOf, isReadOnly, newJavaModelException, newNotPresentException, readableName, resolved, toDebugString, toString, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jdt.core.IJavaElement |
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
equals
public boolean equals(java.lang.Object o)
- Description copied from class:
JavaElement
- Returns true if this handle represents the same Java element
as the given handle. By default, two handles represent the same
element if they are identical or if they represent the same type
of element, have equal names, parents, and occurrence counts.
If a subclass has other requirements for equality, this method
must be overridden.
- Overrides:
equals
in class SourceRefElement
- See Also:
Object.equals(java.lang.Object)
getElementName
public java.lang.String getElementName()
- Description copied from interface:
IJavaElement
- Returns the name of this element. This is a handle-only method.
- Specified by:
getElementName
in interface IJavaElement
- Specified by:
getElementName
in interface IPackageDeclaration
- Overrides:
getElementName
in class JavaElement
- Returns:
- the element name
- See Also:
IAdaptable
getElementType
public int getElementType()
- Description copied from interface:
IJavaElement
- Returns this element's kind encoded as an integer.
This is a handle-only method.
- Specified by:
getElementType
in interface IJavaElement
- Returns:
- the kind of element; one of the constants declared in
IJavaElement
- See Also:
IJavaElement
getPrimaryElement
public IJavaElement getPrimaryElement(boolean checkOwner)
- Overrides:
getPrimaryElement
in class JavaElement