|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISourceReference
Common protocol for JavaScript elements that have associated source code.
This set consists of IClassFile
, IJavaScriptUnit
,
IPackageDeclaration
, IImportDeclaration
,
IImportContainer
, IType
, IField
,
IFunction
, and IInitializer
.
Source reference elements may be working copies if they were created from a compilation unit that is a working copy.
This interface is not intended to be implemented by clients.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
Method Summary | |
---|---|
boolean |
exists()
Returns whether this element exists in the model. |
java.lang.String |
getSource()
Returns the source code associated with this element. |
ISourceRange |
getSourceRange()
Returns the source range associated with this element. |
Method Detail |
---|
boolean exists()
true
if this element exists in the JavaScript modeljava.lang.String getSource() throws JavaScriptModelException
getSourceRange
.
null
if this element has no
associated source code
JavaScriptModelException
- if an exception occurs while accessing its corresponding resourceISourceRange getSourceRange() throws JavaScriptModelException
null
if this element has no
associated source code
JavaScriptModelException
- if an exception occurs while accessing its corresponding resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |