org.eclipse.xtext.common.types.util.jdt
Class JavaElementFinder
java.lang.Object
org.eclipse.xtext.common.types.util.jdt.JavaElementFinder
- All Implemented Interfaces:
- IJavaElementFinder
public class JavaElementFinder
- extends java.lang.Object
- implements IJavaElementFinder
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaElementFinder
public JavaElementFinder()
findElementFor
public org.eclipse.jdt.core.IJavaElement findElementFor(JvmIdentifiableElement element)
- Description copied from interface:
IJavaElementFinder
- Find the
IJavaElement
for the element
. If it cannot be located,
tries to find the IJavaElement
for the container of element
. Returns
null
if no suitable result can be found. If the given element
is null
,
the result will be null
.
- Specified by:
findElementFor
in interface IJavaElementFinder
- Parameters:
element
- the identifiable. May be null
.
- Returns:
- the found
IJavaElement
or null
.
findExactElementFor
public org.eclipse.jdt.core.IJavaElement findExactElementFor(JvmIdentifiableElement element)
- Description copied from interface:
IJavaElementFinder
- Find the
IJavaElement
for the element
.
Returns null
if no suitable result can be found. If the given element
is null
,
the result will be null
.
- Specified by:
findExactElementFor
in interface IJavaElementFinder
- Parameters:
element
- the identifiable. May be null
.
- Returns:
- the found
IJavaElement
or null
. - Since:
- 2.3
internalFindElementFor
protected org.eclipse.jdt.core.IJavaElement internalFindElementFor(JvmIdentifiableElement element,
boolean isExactMatchOnly)
- Since:
- 2.3
setProjectProvider
public void setProjectProvider(IJavaProjectProvider projectProvider)
getProjectProvider
public IJavaProjectProvider getProjectProvider()