|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.Openable
org.aspectj.org.eclipse.jdt.internal.core.CompilationUnit
org.aspectj.org.eclipse.jdt.internal.codeassist.impl.AssistCompilationUnit
public class AssistCompilationUnit
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.CompilationUnit |
|---|
name, owner |
| Fields inherited from class org.aspectj.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, NO_ELEMENTS, NO_INFO, parent |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.ICompilationUnit |
|---|
ENABLE_BINDINGS_RECOVERY, ENABLE_STATEMENTS_RECOVERY, FORCE_PROBLEM_DETECTION, IGNORE_METHOD_BODIES, NO_AST |
| Fields inherited from interface org.aspectj.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 |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent |
|---|
JAR_FILE_ENTRY_SEPARATOR |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants |
|---|
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA |
| Constructor Summary | |
|---|---|
AssistCompilationUnit(ICompilationUnit compilationUnit,
WorkingCopyOwner owner,
java.util.Map bindingCache,
java.util.Map infoCache)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getElementInfo(IProgressMonitor monitor)
Returns the info for this handle. |
IImportContainer |
getImportContainer()
Returns the import container for this compilation unit. |
IPackageDeclaration |
getPackageDeclaration(java.lang.String pkg)
Returns the first package declaration in this compilation unit with the given package name (there normally is at most one package declaration). |
IType |
getType(java.lang.String typeName)
Returns the top-level type declared in this compilation unit with the given simple type name. |
boolean |
hasChildren()
Returns whether this element has one or more immediate children. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Openable |
|---|
bufferChanged, closeBuffer, codeComplete, codeSelect, exists, findRecommendedLineSeparator, generateInfos, getBuffer, getBufferFactory, getBufferManager, getOpenable, getPackageFragmentRoot, getResource, hasUnsavedChanges, isOpen, isStructureKnown, open, resource, resourceExists |
| 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, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isReadOnly, isStructureKnown |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent |
|---|
getChildren |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable |
|---|
findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isOpen, open |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference |
|---|
exists |
| Constructor Detail |
|---|
public AssistCompilationUnit(ICompilationUnit compilationUnit,
WorkingCopyOwner owner,
java.util.Map bindingCache,
java.util.Map infoCache)
| Method Detail |
|---|
public java.lang.Object getElementInfo(IProgressMonitor monitor)
throws JavaModelException
JavaElement
getElementInfo in class JavaElementJavaModelException - if the element is not present or not accessiblepublic IImportContainer getImportContainer()
ICompilationUnit
getImportContainer in class CompilationUnitICompilationUnit.getImportContainer()public IPackageDeclaration getPackageDeclaration(java.lang.String pkg)
ICompilationUnit
getPackageDeclaration in class CompilationUnitpkg - the name of the package declaration as defined by JLS2 7.4. (For example, "java.lang")
ICompilationUnit.getPackageDeclaration(String)public IType getType(java.lang.String typeName)
ICompilationUnit
getType in class CompilationUnittypeName - the simple name of the requested type in the compilation unit
ICompilationUnit.getType(String)
public boolean hasChildren()
throws JavaModelException
IParentgetChildren is an empty array.
hasChildren in interface IParenthasChildren in class JavaElementJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceIParent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||