Class CallTextInfo
java.lang.Object
org.eclipse.handly.ui.callhierarchy.CallTextInfo
Holds information about the text of a call, including the text range.
-
Constructor Summary
ConstructorsConstructorDescriptionCallTextInfo(String callText, TextRange callRange, int lineNumber, ISnapshot snapshot) Creates a new call text info object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the text range of the call.Returns the textual representation of the call.intReturns the line number of the call.Returns the snapshot on which the call text info is based.
-
Constructor Details
-
CallTextInfo
Creates a new call text info object.- Parameters:
callText- the text of the call (notnull)callRange- the text range of the call, ornullif unknownlineNumber- the 0-based line number of the call, orICallLocation.UNKOWN_LINE_NUMBERif unknownsnapshot- the base snapshot for the call text info, ornullif unknown
-
-
Method Details
-
getCallText
Returns the textual representation of the call.- Returns:
- the text of the call (never
null)
-
getCallRange
Returns the text range of the call.- Returns:
- the text range of the call, or
nullif unknown
-
getLineNumber
public int getLineNumber()Returns the line number of the call. Note that the first line has the line number 0.- Returns:
- the zero-based line number of the call,
or
ICallLocation.UNKOWN_LINE_NUMBERif unknown
-
getSnapshot
Returns the snapshot on which the call text info is based.- Returns:
- the base snapshot for the call text info,
or
nullif unknown
-