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
This interface is not intended to be implemented by clients.
This interface is not intended to be implemented by clients.

Method Summary
 org.eclipse.jdt.core.IJavaElement findElementFor(JvmIdentifiableElement element)
          Find the IJavaElement for the element.
 org.eclipse.jdt.core.IJavaElement findExactElementFor(JvmIdentifiableElement element)
          Find the IJavaElement for the element.
 

Method Detail

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.

findExactElementFor

org.eclipse.jdt.core.IJavaElement findExactElementFor(JvmIdentifiableElement element)
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.

Parameters:
element - the identifiable. May be null.
Returns:
the found IJavaElement or null.
Since:
2.3