Interface ISourceReference

All Known Subinterfaces:
AbstractModule, IAnnotation, IClassFile, ICompilationUnit, IField, IImportContainer, IImportDeclaration, IInitializer, ILocalVariable, IMember, IMethod, IModularClassFile, IModuleDescription, IOrdinaryClassFile, IPackageDeclaration, IType, ITypeParameter, ITypeRoot
All Known Implementing Classes:
AbstractClassFile, AbstractModule.AutoModule, Annotation, AssistAnnotation, AssistCompilationUnit, AssistImportContainer, AssistImportDeclaration, AssistInitializer, AssistPackageDeclaration, AssistSourceField, AssistSourceMethod, AssistSourceType, AssistTypeParameter, BinaryLambdaExpression, BinaryLambdaMethod, BinaryMember, BinaryMethod, BinaryModule, BinaryType, ClassFile, ClassFileWorkingCopy, CompilationUnit, ImportContainer, ImportDeclaration, Initializer, LambdaExpression, LambdaMethod, LocalVariable, Member, ModularClassFile, NamedMember, PackageDeclaration, ResolvedBinaryField, ResolvedBinaryMethod, ResolvedBinaryType, ResolvedLambdaExpression, ResolvedSourceField, ResolvedSourceMethod, ResolvedSourceType, SourceField, SourceMethod, SourceModule, SourceRefElement, SourceType, TypeParameter

public interface ISourceReference
Common protocol for Java elements that have associated source code. This set consists of IClassFile, ICompilationUnit, IPackageDeclaration, IImportDeclaration, IImportContainer, IType, IField, IMethod, IInitializer, ITypeParameter, ILocalVariable, and 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 Also: