org.aspectj.org.eclipse.jdt.internal.core
Class ImportContainer
java.lang.Object
PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.ImportContainer
- All Implemented Interfaces:
- IImportContainer, IJavaElement, IParent, ISourceReference
public class ImportContainer
- extends SourceRefElement
- implements IImportContainer
- See Also:
IImportContainer
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
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, NO_ELEMENTS, NO_INFO, parent |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
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 |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
closing, copy, createElementInfo, delete, findNode, generateInfos, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getResource, getSource, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, toStringName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getElementInfo, getElementInfo, getElementName, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, isReadOnly, newJavaModelException, newNotPresentException, openWhenClosed, resolved, tabString, toDebugString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors, unresolved |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown |
ImportContainer
protected ImportContainer(CompilationUnit parent)
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)
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
getHandleFromMemento
public IJavaElement getHandleFromMemento(java.lang.String token,
MementoTokenizer memento,
WorkingCopyOwner workingCopyOwner)
- Overrides:
getHandleFromMemento in class SourceRefElement
getHandleMementoDelimiter
protected char getHandleMementoDelimiter()
- Description copied from class:
JavaElement
- Returns the
char that marks the start of this handles
contribution to a memento.
- Specified by:
getHandleMementoDelimiter in class JavaElement
- See Also:
JavaElement.getHandleMemento()
getImport
public IImportDeclaration getImport(java.lang.String importName)
- Description copied from interface:
IImportContainer
- Returns the first import declaration in this import container with the given name.
This is a handle-only method. The import declaration may or may not exist.
- Specified by:
getImport in interface IImportContainer
- Parameters:
importName - the given name
- Returns:
- the first import declaration in this import container with the given name
- See Also:
IImportContainer
getPrimaryElement
public IJavaElement getPrimaryElement(boolean checkOwner)
- Overrides:
getPrimaryElement in class JavaElement
getSourceRange
public ISourceRange getSourceRange()
throws JavaModelException
- Description copied from interface:
ISourceReference
- Returns the source range associated with this element.
For class files, this returns the range of the entire compilation unit
associated with the class file (if there is one).
- Specified by:
getSourceRange in interface ISourceReference- Overrides:
getSourceRange in class SourceRefElement
- Returns:
- the source range, or
null if this element has no
associated source code
- Throws:
JavaModelException - if an exception occurs while accessing its corresponding resource- See Also:
ISourceReference
readableName
public java.lang.String readableName()
- Overrides:
readableName in class JavaElement
toString
protected void toString(int tab,
java.lang.StringBuffer buffer)
- Description copied from class:
JavaElement
- Debugging purposes
- Overrides:
toString in class JavaElement
toStringInfo
protected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
- Debugging purposes
- Overrides:
toStringInfo in class JavaElement
showResolvedInfo - TODO