Top Description Fields Constructors Methods
org.eclipse.lsp4j

public Class SemanticTokensCapabilities

extends DynamicRegistrationCapabilities
Class Inheritance
Annotations
@SuppressWarnings:all
Imports
java.util.List, org.eclipse.lsp4j.jsonrpc.messages.ResponseErrorCode, org.eclipse.lsp4j.jsonrpc.util.Preconditions, .ToStringBuilder, org.eclipse.lsp4j.jsonrpc.validation.NonNull

Since 3.16.0

Field Summary

Modifier and TypeField and Description
private Boolean
augmentsSyntaxTokens

Whether the client uses semantic tokens to augment existing syntax tokens.

private List<String>
formats

The formats the client supports.

private Boolean
multilineTokenSupport

Whether the client supports tokens that can span multiple lines.

private Boolean
overlappingTokenSupport

Whether the client supports tokens that can overlap each other.

private SemanticTokensClientCapabilitiesRequests
requests

Which requests the client supports and might send to the server.

private Boolean
serverCancelSupport

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled.

private List<String>
tokenModifiers

The token modifiers that the client supports.

private List<String>
tokenTypes

The token types that the client supports.

Constructor Summary

AccessConstructor and Description
public
public
SemanticTokensCapabilities(final Boolean dynamicRegistration)

public
SemanticTokensCapabilities(final SemanticTokensClientCapabilitiesRequests requests, final List<String> tokenTypes, final List<String> tokenModifiers, final List<String> formats)

public
SemanticTokensCapabilities(final Boolean dynamicRegistration, final SemanticTokensClientCapabilitiesRequests requests, final List<String> tokenTypes, final List<String> tokenModifiers, final List<String> formats)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(final Object obj)

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.equals.

Indicates whether some other object is "equal to" this one.

public Boolean
getAugmentsSyntaxTokens()

Whether the client uses semantic tokens to augment existing syntax tokens.

public List<String>
getFormats()

The formats the client supports.

public Boolean
getMultilineTokenSupport()

Whether the client supports tokens that can span multiple lines.

public Boolean
getOverlappingTokenSupport()

Whether the client supports tokens that can overlap each other.

public SemanticTokensClientCapabilitiesRequests
getRequests()

Which requests the client supports and might send to the server.

public Boolean
getServerCancelSupport()

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled.

public List<String>
getTokenModifiers()

The token modifiers that the client supports.

public List<String>
getTokenTypes()

The token types that the client supports.

public int
hashCode()

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.hashCode.

Returns a hash code value for this object.

public void
setAugmentsSyntaxTokens(final Boolean augmentsSyntaxTokens)

Whether the client uses semantic tokens to augment existing syntax tokens.

public void
setFormats(final List<String> formats)

The formats the client supports.

public void
setMultilineTokenSupport(final Boolean multilineTokenSupport)

Whether the client supports tokens that can span multiple lines.

public void
setOverlappingTokenSupport(final Boolean overlappingTokenSupport)

Whether the client supports tokens that can overlap each other.

public void
setRequests(final SemanticTokensClientCapabilitiesRequests requests)

Which requests the client supports and might send to the server.

public void
setServerCancelSupport(final Boolean serverCancelSupport)

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled.

public void
setTokenModifiers(final List<String> tokenModifiers)

The token modifiers that the client supports.

public void
setTokenTypes(final List<String> tokenTypes)

The token types that the client supports.

public String
toString()

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.toString.

Returns a string representation of the object.

Inherited from org.eclipse.lsp4j.DynamicRegistrationCapabilities:
getDynamicRegistrationsetDynamicRegistration

Field Detail

augmentsSyntaxTokensback to summary
private Boolean augmentsSyntaxTokens

Whether the client uses semantic tokens to augment existing syntax tokens. If set to true client side created syntax tokens and semantic tokens are both used for colorization. If set to false the client only uses the returned semantic tokens for colorization.

If the value is omitted then the client behavior is not specified.

Since 3.17.0

formatsback to summary
private List<String> formats

The formats the client supports.

See TokenFormat for allowed values.

Annotations
@NonNull
multilineTokenSupportback to summary
private Boolean multilineTokenSupport

Whether the client supports tokens that can span multiple lines.

Since 3.16.0

overlappingTokenSupportback to summary
private Boolean overlappingTokenSupport

Whether the client supports tokens that can overlap each other.

Since 3.16.0

requestsback to summary
private SemanticTokensClientCapabilitiesRequests requests

Which requests the client supports and might send to the server.

Annotations
@NonNull
serverCancelSupportback to summary
private Boolean serverCancelSupport

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled. If a server does, the client needs to retrigger the request.

Since 3.17.0

tokenModifiersback to summary
private List<String> tokenModifiers

The token modifiers that the client supports.

See SemanticTokenModifiers for allowed values.

Annotations
@NonNull
tokenTypesback to summary
private List<String> tokenTypes

The token types that the client supports.

See SemanticTokenTypes for allowed values.

Annotations
@NonNull

Constructor Detail

SemanticTokensCapabilitiesback to summary
public SemanticTokensCapabilities()
SemanticTokensCapabilitiesback to summary
public SemanticTokensCapabilities(final Boolean dynamicRegistration)
SemanticTokensCapabilitiesback to summary
public SemanticTokensCapabilities(final SemanticTokensClientCapabilitiesRequests requests, final List<String> tokenTypes, final List<String> tokenModifiers, final List<String> formats)
SemanticTokensCapabilitiesback to summary
public SemanticTokensCapabilities(final Boolean dynamicRegistration, final SemanticTokensClientCapabilitiesRequests requests, final List<String> tokenTypes, final List<String> tokenModifiers, final List<String> formats)

Method Detail

equalsback to summary
public boolean equals(final Object obj)

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
getAugmentsSyntaxTokensback to summary
public Boolean getAugmentsSyntaxTokens()

Whether the client uses semantic tokens to augment existing syntax tokens. If set to true client side created syntax tokens and semantic tokens are both used for colorization. If set to false the client only uses the returned semantic tokens for colorization.

If the value is omitted then the client behavior is not specified.

Since 3.17.0

getFormatsback to summary
public List<String> getFormats()

The formats the client supports.

See TokenFormat for allowed values.

Annotations
@NonNull
getMultilineTokenSupportback to summary
public Boolean getMultilineTokenSupport()

Whether the client supports tokens that can span multiple lines.

Since 3.16.0

getOverlappingTokenSupportback to summary
public Boolean getOverlappingTokenSupport()

Whether the client supports tokens that can overlap each other.

Since 3.16.0

getRequestsback to summary
public SemanticTokensClientCapabilitiesRequests getRequests()

Which requests the client supports and might send to the server.

Annotations
@NonNull
getServerCancelSupportback to summary
public Boolean getServerCancelSupport()

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled. If a server does, the client needs to retrigger the request.

Since 3.17.0

getTokenModifiersback to summary
public List<String> getTokenModifiers()

The token modifiers that the client supports.

See SemanticTokenModifiers for allowed values.

Annotations
@NonNull
getTokenTypesback to summary
public List<String> getTokenTypes()

The token types that the client supports.

See SemanticTokenTypes for allowed values.

Annotations
@NonNull
hashCodeback to summary
public int hashCode()

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
setAugmentsSyntaxTokensback to summary
public void setAugmentsSyntaxTokens(final Boolean augmentsSyntaxTokens)

Whether the client uses semantic tokens to augment existing syntax tokens. If set to true client side created syntax tokens and semantic tokens are both used for colorization. If set to false the client only uses the returned semantic tokens for colorization.

If the value is omitted then the client behavior is not specified.

Since 3.17.0

setFormatsback to summary
public void setFormats(final List<String> formats)

The formats the client supports.

See TokenFormat for allowed values.

setMultilineTokenSupportback to summary
public void setMultilineTokenSupport(final Boolean multilineTokenSupport)

Whether the client supports tokens that can span multiple lines.

Since 3.16.0

setOverlappingTokenSupportback to summary
public void setOverlappingTokenSupport(final Boolean overlappingTokenSupport)

Whether the client supports tokens that can overlap each other.

Since 3.16.0

setRequestsback to summary
public void setRequests(final SemanticTokensClientCapabilitiesRequests requests)

Which requests the client supports and might send to the server.

setServerCancelSupportback to summary
public void setServerCancelSupport(final Boolean serverCancelSupport)

Whether the client allows the server to actively cancel a semantic token request, e.g. supports returning ResponseErrorCode#ServerCancelled. If a server does, the client needs to retrigger the request.

Since 3.17.0

setTokenModifiersback to summary
public void setTokenModifiers(final List<String> tokenModifiers)

The token modifiers that the client supports.

See SemanticTokenModifiers for allowed values.

setTokenTypesback to summary
public void setTokenTypes(final List<String> tokenTypes)

The token types that the client supports.

See SemanticTokenTypes for allowed values.

toStringback to summary
public String toString()

Overrides org.eclipse.lsp4j.DynamicRegistrationCapabilities.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override