Class EclipseJavaElement
- java.lang.Object
-
- org.faktorips.devtools.abstraction.AWrapper<org.eclipse.jdt.core.IJavaElement>
-
- org.faktorips.devtools.abstraction.eclipse.internal.EclipseJavaElement
-
- All Implemented Interfaces:
AAbstraction,AJavaElement
- Direct Known Subclasses:
EclipseJavaProject,EclipsePackageFragmentRoot
public class EclipseJavaElement extends AWrapper<org.eclipse.jdt.core.IJavaElement> implements AJavaElement
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEclipseJavaElement(org.eclipse.jdt.core.IJavaElement javaElement)
-
Method Summary
All Methods Instance Methods Concrete 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 class org.faktorips.devtools.abstraction.AWrapper
equals, hashCode, toString, unwrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.faktorips.devtools.abstraction.AAbstraction
unwrap
-
-
-
-
Method Detail
-
getResource
public AResource getResource()
Description copied from interface:AJavaElementReturns the corresponding resource. If this element represents some part smaller than a file, the enclosing file resource is returned.- Specified by:
getResourcein interfaceAJavaElement- Returns:
- the corresponding resource
-
exists
public boolean exists()
Description copied from interface:AJavaElementA Java element exists if its corresponding resource exists and contains information for this element.- Specified by:
existsin interfaceAJavaElement- Returns:
- whether this element exists
-
getJavaProject
public AJavaProject getJavaProject()
Description copied from interface:AJavaElementReturns the Java project containing this element.- Specified by:
getJavaProjectin interfaceAJavaElement- Returns:
- the containing Java project; may be
nullif this element is not contained in a project
-
getPath
public java.nio.file.Path getPath()
Description copied from interface:AJavaElementReturns the absolute location of this element in the file system.- Specified by:
getPathin interfaceAJavaElement- Returns:
- this element's location
-
-