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, waitgetAdapter, getCallTextInfopublic 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()
ICallLocationgetCaller in interface ICallLocationnull if unknownpublic java.lang.Object getCallee()
ICallLocationgetCallee in interface ICallLocationnull if unknownpublic java.lang.String getCallText()
ICallLocationgetCallText in interface ICallLocationnull)public TextRange getCallRange()
ICallLocationgetCallRange in interface ICallLocationnull if unknownpublic int getLineNumber()
ICallLocationgetLineNumber in interface ICallLocationICallLocation.UNKOWN_LINE_NUMBER if unknownpublic ISnapshot getSnapshot()
ICallLocationgetSnapshot in interface ICallLocationnull if unknownCopyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0