Class SemanticTokensLegend


  • public class SemanticTokensLegend
    extends java.lang.Object
    The legend used by the server

    Since 3.16.0

    • Constructor Summary

      Constructors 
      Constructor Description
      SemanticTokensLegend()  
      SemanticTokensLegend​(java.util.List<java.lang.String> tokenTypes, java.util.List<java.lang.String> tokenModifiers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<java.lang.String> getTokenModifiers()
      The token modifiers that the client supports.
      java.util.List<java.lang.String> getTokenTypes()
      The token types that the client supports.
      int hashCode()  
      void setTokenModifiers​(java.util.List<java.lang.String> tokenModifiers)
      The token modifiers that the client supports.
      void setTokenTypes​(java.util.List<java.lang.String> tokenTypes)
      The token types that the client supports.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • SemanticTokensLegend

        public SemanticTokensLegend()
      • SemanticTokensLegend

        public SemanticTokensLegend​(java.util.List<java.lang.String> tokenTypes,
                                    java.util.List<java.lang.String> tokenModifiers)
    • Method Detail

      • getTokenTypes

        public java.util.List<java.lang.String> getTokenTypes()
        The token types that the client supports.

        See SemanticTokenTypes for allowed values.

      • setTokenTypes

        public void setTokenTypes​(java.util.List<java.lang.String> tokenTypes)
        The token types that the client supports.

        See SemanticTokenTypes for allowed values.

      • getTokenModifiers

        public java.util.List<java.lang.String> getTokenModifiers()
        The token modifiers that the client supports.

        See SemanticTokenModifiers for allowed values.

      • setTokenModifiers

        public void setTokenModifiers​(java.util.List<java.lang.String> tokenModifiers)
        The token modifiers that the client supports.

        See SemanticTokenModifiers for allowed values.

      • 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