public final class CallLocation extends java.lang.Object implements ICallLocation
ICallLocation
.UNKOWN_LINE_NUMBER
Constructor and Description |
---|
CallLocation(java.lang.Object caller,
java.lang.Object callee,
CallTextInfo info)
Creates a new call location object based on a
CallTextInfo . |
CallLocation(java.lang.Object caller,
java.lang.Object callee,
java.lang.String callText,
TextRange callRange,
int lineNumber,
ISnapshot snapshot)
Creates a new call location object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
int |
getLineNumber()
Returns the line number of the call.
|
ISnapshot |
getSnapshot()
Returns the snapshot on which this call location is based.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdapter, getCallTextInfo
public CallLocation(java.lang.Object caller, java.lang.Object callee, java.lang.String callText, TextRange callRange, int lineNumber, ISnapshot snapshot)
caller
- the caller element, or null
if unknowncallee
- the callee element, or null
if unknowncallText
- the text of the call (not null
)callRange
- the text range of the call,
or null
if unknownlineNumber
- the 0-based line number of the call,
or ICallLocation.UNKOWN_LINE_NUMBER
if unknownsnapshot
- the base snapshot for the call location,
or null
if unknownpublic CallLocation(java.lang.Object caller, java.lang.Object callee, CallTextInfo info)
CallTextInfo
.caller
- the caller element, or null
if unknowncallee
- the callee element, or null
if unknowninfo
- the call text info (not null
)public java.lang.Object getCaller()
ICallLocation
getCaller
in interface ICallLocation
null
if unknownpublic java.lang.Object getCallee()
ICallLocation
getCallee
in interface ICallLocation
null
if unknownpublic java.lang.String getCallText()
ICallLocation
getCallText
in interface ICallLocation
null
)public TextRange getCallRange()
ICallLocation
getCallRange
in interface ICallLocation
null
if unknownpublic int getLineNumber()
ICallLocation
getLineNumber
in interface ICallLocation
ICallLocation.UNKOWN_LINE_NUMBER
if unknownpublic ISnapshot getSnapshot()
ICallLocation
getSnapshot
in interface ICallLocation
null
if unknownCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0