Record Class CallHierarchyCall
java.lang.Object
java.lang.Record
smile.util.lsp.CallHierarchyCall
- Record Components:
item- the caller (for incoming) or callee (for outgoing).ranges- the call-site ranges within the focus document; each entry is a four-element array[startLine, startChar, endLine, endChar]using 1-based coordinates.
Represents one edge in a call hierarchy graph — either an incoming call
(a caller that invokes the focus item) or an outgoing call (a callee
invoked by the focus item).
Each edge has a item() describing the other endpoint and a
list of ranges() indicating the exact text ranges inside the
focus document where the call occurs.
All position values are 1-based (as shown in editors).
-
Constructor Summary
ConstructorsConstructorDescriptionCallHierarchyCall(CallHierarchyItem item, List<int[]> ranges) Creates an instance of aCallHierarchyCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CallHierarchyCallfromIncoming(org.eclipse.lsp4j.CallHierarchyIncomingCall call) Creates aCallHierarchyCallfrom an LSP4JCallHierarchyIncomingCall.static CallHierarchyCallfromOutgoing(org.eclipse.lsp4j.CallHierarchyOutgoingCall call) Creates aCallHierarchyCallfrom an LSP4JCallHierarchyOutgoingCall.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.List<int[]> ranges()Returns the value of therangesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
fromIncoming
Creates aCallHierarchyCallfrom an LSP4JCallHierarchyIncomingCall.- Parameters:
call- the LSP4J incoming call.- Returns:
- the equivalent editor-friendly call.
-
fromOutgoing
Creates aCallHierarchyCallfrom an LSP4JCallHierarchyOutgoingCall.- Parameters:
call- the LSP4J outgoing call.- Returns:
- the equivalent editor-friendly call.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
item
-
ranges
-