|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISourceReference
Common protocol for C elements that have associated source code.
Note: For IBinary
, IArchive
and other members
derived from a binary type, the implementation returns source iff the
element has attached source code and debuging information.
Method Summary | |
---|---|
String |
getSource()
Returns the source code associated with this element. |
ISourceRange |
getSourceRange()
Returns the source range associated with this element. |
ITranslationUnit |
getTranslationUnit()
Returns the translation unit in which this member is declared, or null
if this member is not declared in a translation unit (for example, a binary type). |
Method Detail |
---|
String getSource() throws CModelException
For binary files, this returns the source of the entire translation unit associated with the binary file (if there is one).
null
if this element has no
associated source code
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceISourceRange getSourceRange() throws CModelException
For binary files, this returns the range of the entire translation unit associated with the binary file (if there is one).
null
if if this element has no
associated source code
CModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resourceITranslationUnit getTranslationUnit()
null
if this member is not declared in a translation unit (for example, a binary type).
CModelException
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |