org.eclipse.xtext.common.types.util.jdt
Interface IJavaElementFinder
- All Known Implementing Classes:
- JavaElementFinder
public interface IJavaElementFinder
Service to locate the respective java elements
for a
given JvmIdentifiableElement
.
- Author:
- Sebastian Zarnekow - Initial contribution and API
findElementFor
org.eclipse.jdt.core.IJavaElement findElementFor(JvmIdentifiableElement element)
- 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
.
- Parameters:
element
- the identifiable. May be null
.
- Returns:
- the found
IJavaElement
or null
.