public interface ICallLocation
extends org.eclipse.core.runtime.IAdaptable
Modifier and Type | Field and Description |
---|---|
static int |
UNKOWN_LINE_NUMBER
Indicates that the line number of the call is unknown.
|
Modifier and Type | Method and Description |
---|---|
default <T> T |
getAdapter(java.lang.Class<T> adapter) |
java.lang.Object |
getCallee()
Returns the underlying model element representing the callee.
|
java.lang.Object |
getCaller()
Returns the underlying model element representing the caller.
|
TextRange |
getCallRange()
Returns the text range of the call.
|
java.lang.String |
getCallText()
Returns the textual representation of the call.
|
default CallTextInfo |
getCallTextInfo()
Returns the call text info for this call location.
|
int |
getLineNumber()
Returns the line number of the call.
|
ISnapshot |
getSnapshot()
Returns the snapshot on which this call location is based.
|
static final int UNKOWN_LINE_NUMBER
getLineNumber()
,
Constant Field Valuesdefault <T> T getAdapter(java.lang.Class<T> adapter)
Default implementation of this method in ICallLocation
returns
the caller
if it is an instance of the given class.
As a fallback, it delegates to the Platform's adapter manager.
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
java.lang.Object getCaller()
null
if unknownjava.lang.Object getCallee()
null
if unknowndefault CallTextInfo getCallTextInfo()
Default implementation returns a new instance of the call text info based on the information from this call location.
null
)java.lang.String getCallText()
null
)TextRange getCallRange()
null
if unknownint getLineNumber()
UNKOWN_LINE_NUMBER
if unknownISnapshot getSnapshot()
null
if unknownCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0