Interface AJavaElement
-
- All Superinterfaces:
AAbstraction
- All Known Subinterfaces:
AJavaProject,APackageFragmentRoot
- All Known Implementing Classes:
EclipseJavaElement,EclipseJavaProject,EclipsePackageFragmentRoot,PlainJavaJavaElement,PlainJavaJavaProject,PlainJavaPackageFragmentRoot
public interface AJavaElement extends AAbstraction
A Java element is the representation of a Java related resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()A Java element exists if its corresponding resource exists and contains information for this element.AJavaProjectgetJavaProject()Returns the Java project containing this element.java.nio.file.PathgetPath()Returns the absolute location of this element in the file system.AResourcegetResource()Returns the corresponding resource.-
Methods inherited from interface org.faktorips.devtools.abstraction.AAbstraction
unwrap
-
-
-
-
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
nullif 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
-
-