Class TypeHierarchyItem


  • public class TypeHierarchyItem
    extends java.lang.Object
    Representation of an item that carries type information.

    Since 3.17.0

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.Object getData()
      A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests.
      java.lang.String getDetail()
      More detail for this item, e.g.
      SymbolKind getKind()
      The kind of this item.
      java.lang.String getName()
      The name of this item.
      Range getRange()
      The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g.
      Range getSelectionRange()
      The range that should be selected and revealed when this symbol is being picked, e.g.
      java.util.List<SymbolTag> getTags()
      Tags for this item.
      java.lang.String getUri()
      The resource identifier of this item.
      int hashCode()  
      void setData​(java.lang.Object data)
      A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests.
      void setDetail​(java.lang.String detail)
      More detail for this item, e.g.
      void setKind​(SymbolKind kind)
      The kind of this item.
      void setName​(java.lang.String name)
      The name of this item.
      void setRange​(Range range)
      The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g.
      void setSelectionRange​(Range selectionRange)
      The range that should be selected and revealed when this symbol is being picked, e.g.
      void setTags​(java.util.List<SymbolTag> tags)
      Tags for this item.
      void setUri​(java.lang.String uri)
      The resource identifier of this item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TypeHierarchyItem

        public TypeHierarchyItem​(java.lang.String name,
                                 SymbolKind kind,
                                 java.lang.String uri,
                                 Range range,
                                 Range selectionRange)
      • TypeHierarchyItem

        public TypeHierarchyItem​(java.lang.String name,
                                 SymbolKind kind,
                                 java.lang.String uri,
                                 Range range,
                                 Range selectionRange,
                                 java.lang.String detail)
    • Method Detail

      • getName

        public java.lang.String getName()
        The name of this item.
      • setName

        public void setName​(java.lang.String name)
        The name of this item.
      • 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, e.g. comments and code.
      • setRange

        public void setRange​(Range range)
        The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
      • 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 the range.
      • 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 the range.
      • getData

        public java.lang.Object getData()
        A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests. It could also be used to identify the type hierarchy in the server, helping improve the performance on resolving supertypes and subtypes.
      • setData

        public void setData​(java.lang.Object data)
        A data entry field that is preserved between a type hierarchy prepare and supertypes or subtypes requests. It could also be used to identify the type hierarchy in the server, helping improve the performance on resolving supertypes and subtypes.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object