Class EclipseJavaElement

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EclipseJavaElement​(org.eclipse.jdt.core.IJavaElement javaElement)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean exists()
      A Java element exists if its corresponding resource exists and contains information for this element.
      AJavaProject getJavaProject()
      Returns the Java project containing this element.
      java.nio.file.Path getPath()
      Returns the absolute location of this element in the file system.
      AResource getResource()
      Returns the corresponding resource.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EclipseJavaElement

        protected EclipseJavaElement​(org.eclipse.jdt.core.IJavaElement javaElement)
    • Method Detail

      • getResource

        public AResource getResource()
        Description copied from interface: AJavaElement
        Returns the corresponding resource. If this element represents some part smaller than a file, the enclosing file resource is returned.
        Specified by:
        getResource in interface AJavaElement
        Returns:
        the corresponding resource
      • exists

        public boolean exists()
        Description copied from interface: AJavaElement
        A Java element exists if its corresponding resource exists and contains information for this element.
        Specified by:
        exists in interface AJavaElement
        Returns:
        whether this element exists
      • getJavaProject

        public AJavaProject getJavaProject()
        Description copied from interface: AJavaElement
        Returns the Java project containing this element.
        Specified by:
        getJavaProject in interface AJavaElement
        Returns:
        the containing Java project; may be null if this element is not contained in a project
      • getPath

        public java.nio.file.Path getPath()
        Description copied from interface: AJavaElement
        Returns the absolute location of this element in the file system.
        Specified by:
        getPath in interface AJavaElement
        Returns:
        this element's location