Klasse AssistCompilationUnit

java.lang.Object
org.eclipse.core.runtime.PlatformObject
Alle implementierten Schnittstellen:
IBufferChangedListener, ICodeAssist, ICompilationUnit, IJavaElement, IOpenable, IParent, ISourceManipulation, ISourceReference, ITypeRoot, IWorkingCopy, ICompilationUnit, IDependent, SuffixConstants, org.eclipse.core.runtime.IAdaptable

public class AssistCompilationUnit extends CompilationUnit
  • Konstruktordetails

  • Methodendetails

    • getElementInfo

      public Object getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
      Beschreibung aus Klasse kopiert: JavaElement
      Returns the info for this handle. If this element is not already open, it and all of its parents are opened. Does not return null. NOTE: BinaryType infos are NOT rooted under JavaElementInfo.
      Setzt außer Kraft:
      getElementInfo in Klasse JavaElement
      Löst aus:
      JavaModelException - if the element is not present or not accessible
    • getImportContainer

      public ImportContainer getImportContainer()
      Beschreibung aus Schnittstelle kopiert: ICompilationUnit
      Returns the import container for this compilation unit. This is a handle-only method. The import container may or may not exist. The import container can used to access the imports.
      Angegeben von:
      getImportContainer in Schnittstelle ICompilationUnit
      Setzt außer Kraft:
      getImportContainer in Klasse CompilationUnit
      Gibt zurück:
      a handle onto the corresponding import container. The import contain may or may not exist.
      Siehe auch:
    • getPackageDeclaration

      public PackageDeclaration getPackageDeclaration(String pkg)
      Beschreibung aus Schnittstelle kopiert: ICompilationUnit
      Returns the first package declaration in this compilation unit with the given package name (there normally is at most one package declaration). This is a handle-only method. The package declaration may or may not exist.
      Angegeben von:
      getPackageDeclaration in Schnittstelle ICompilationUnit
      Setzt außer Kraft:
      getPackageDeclaration in Klasse CompilationUnit
      Parameter:
      pkg - the name of the package declaration as defined by JLS2 7.4. (For example, "java.lang")
      Gibt zurück:
      the first package declaration in this compilation unit with the given package name
      Siehe auch:
    • getType

      public IType getType(String typeName)
      Beschreibung aus Schnittstelle kopiert: ICompilationUnit
      Returns the top-level type declared in this compilation unit with the given simple type name. The type name has to be a valid compilation unit name. This is a handle-only method. The type may or may not exist.
      Angegeben von:
      getType in Schnittstelle ICompilationUnit
      Setzt außer Kraft:
      getType in Klasse CompilationUnit
      Parameter:
      typeName - the simple name of the requested type in the compilation unit
      Gibt zurück:
      a handle onto the corresponding type. The type may or may not exist.
      Siehe auch:
    • hasChildren

      public boolean hasChildren() throws JavaModelException
      Beschreibung aus Schnittstelle kopiert: IParent
      Returns whether this element has one or more immediate children. This is a convenience method, and may be more efficient than testing whether getChildren is an empty array.
      Angegeben von:
      hasChildren in Schnittstelle IParent
      Setzt außer Kraft:
      hasChildren in Klasse JavaElement
      Gibt zurück:
      true if the immediate children of this element, false otherwise
      Löst aus:
      JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource
      Siehe auch: