Interface AJavaElement

    • Method Detail

      • getResource

        AResource getResource()
        Returns the corresponding resource. If this element represents some part smaller than a file, the enclosing file resource is returned.
        Returns:
        the corresponding resource
      • exists

        boolean exists()
        A Java element exists if its corresponding resource exists and contains information for this element.
        Returns:
        whether this element exists
      • getJavaProject

        @CheckForNull
        AJavaProject getJavaProject()
        Returns the Java project containing this element.
        Returns:
        the containing Java project; may be null if this element is not contained in a project
      • getPath

        java.nio.file.Path getPath()
        Returns the absolute location of this element in the file system.
        Returns:
        this element's location