Package org.eclipse.lsp4j
Class CallHierarchyItem
- java.lang.Object
-
- org.eclipse.lsp4j.CallHierarchyItem
-
public class CallHierarchyItem extends java.lang.ObjectThe result of atextDocument/prepareCallHierarchyrequest.Since 3.16.0
-
-
Constructor Summary
Constructors Constructor Description CallHierarchyItem()CallHierarchyItem(java.lang.String name, SymbolKind kind, java.lang.String uri, Range range, Range selectionRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ObjectgetData()A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.java.lang.StringgetDetail()More detail for this item, e.g the signature of a function.SymbolKindgetKind()The kind of this item.java.lang.StringgetName()The name of the item targeted by the call hierarchy request.RangegetRange()The range enclosing this symbol not including leading/trailing whitespace but everything else like comments.RangegetSelectionRange()The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.java.util.List<SymbolTag>getTags()Tags for this item.java.lang.StringgetUri()The resource identifier of this item.inthashCode()voidsetData(java.lang.Object data)A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.voidsetDetail(java.lang.String detail)More detail for this item, e.g the signature of a function.voidsetKind(SymbolKind kind)The kind of this item.voidsetName(java.lang.String name)The name of the item targeted by the call hierarchy request.voidsetRange(Range range)The range enclosing this symbol not including leading/trailing whitespace but everything else like comments.voidsetSelectionRange(Range selectionRange)The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.voidsetTags(java.util.List<SymbolTag> tags)Tags for this item.voidsetUri(java.lang.String uri)The resource identifier of this item.java.lang.StringtoString()
-
-
-
Constructor Detail
-
CallHierarchyItem
public CallHierarchyItem()
-
CallHierarchyItem
public CallHierarchyItem(java.lang.String name, SymbolKind kind, java.lang.String uri, Range range, Range selectionRange)
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of the item targeted by the call hierarchy request.
-
setName
public void setName(java.lang.String name)
The name of the item targeted by the call hierarchy request.
-
getDetail
public java.lang.String getDetail()
More detail for this item, e.g the signature of a function.
-
setDetail
public void setDetail(java.lang.String detail)
More detail for this item, e.g the signature of a function.
-
getKind
public SymbolKind getKind()
The kind of this item.
-
setKind
public void setKind(SymbolKind kind)
The kind of this item.
-
getTags
public java.util.List<SymbolTag> getTags()
Tags for this item.
-
setTags
public void setTags(java.util.List<SymbolTag> tags)
Tags for this item.
-
getUri
public java.lang.String getUri()
The resource identifier of this item.
-
setUri
public void setUri(java.lang.String uri)
The resource identifier of this item.
-
getRange
public Range getRange()
The range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to determine if the client's cursor is inside the symbol to reveal the symbol in the UI.
-
setRange
public void setRange(Range range)
The range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to determine if the client's cursor is inside the symbol to reveal the symbol in the UI.
-
getSelectionRange
public Range getSelectionRange()
The range that should be selected and revealed when this symbol is being picked, e.g the name of a function. Must be contained by therange.
-
setSelectionRange
public void setSelectionRange(Range selectionRange)
The range that should be selected and revealed when this symbol is being picked, e.g the name of a function. Must be contained by therange.
-
getData
public java.lang.Object getData()
A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.
-
setData
public void setData(java.lang.Object data)
A data entry field that is preserved between a call hierarchy prepare and incoming calls or outgoing calls requests.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-