Common protocol for Java elements that have associated source code. This set consists of {@link IClassFile}, {@link ICompilationUnit}, {@link IPackageDeclaration}, {@link IImportDeclaration}, {@link IImportContainer}, {@link IType}, {@link IField}, {@link IMethod}, {@link IInitializer}, {@link ITypeParameter}, {@link ILocalVariable}, and {@link IAnnotation}.
Note: For IClassFile
, IType
and other members derived from a binary type, the implementation returns source iff the element has attached source code.
Source reference elements may be working copies if they were created from a compilation unit that is a working copy.
@see IPackageFragmentRoot#attachSource(org.eclipse.core.runtime.IPath,org.eclipse.core.runtime.IPath,org.eclipse.core.runtime.IProgressMonitor)
@noimplement This interface is not intended to be implemented by clients.