Class AssistPackageDeclaration

All Implemented Interfaces:
IAnnotatable, IJavaElement, IPackageDeclaration, ISourceReference, org.eclipse.core.runtime.IAdaptable

public class AssistPackageDeclaration extends PackageDeclaration
  • Constructor Details

  • Method Details

    • getElementInfo

      public Object getElementInfo(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException
      Description copied from class: 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.
      Overrides:
      getElementInfo in class JavaElement
      Throws:
      JavaModelException - if the element is not present or not accessible
    • getAnnotation

      public IAnnotation getAnnotation(String name)
      Description copied from interface: IAnnotatable
      Returns the annotation with the given name declared on this element. This is a handle-only method. The annotation may or may not exist.
      Specified by:
      getAnnotation in interface IAnnotatable
      Overrides:
      getAnnotation in class SourceRefElement
      Parameters:
      name - the given simple name
      Returns:
      the annotation with the given name declared on this element