Top Description Fields Constructors Methods
org.eclipse.lsp4j

public final Class PositionEncodingKind

extends Object
Class Inheritance
Annotations
@SuppressWarnings:all

A set of predefined position encoding kinds indicating how positions are encoded, specifically what column offsets mean.

Since 3.17.0

Field Summary

Modifier and TypeField and Description
public static final String
UTF16

Character offsets count UTF-16 code units.

public static final String
UTF32

Character offsets count UTF-32 code units.

public static final String
UTF8

Character offsets count UTF-8 code units.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

UTF16back to summary
public static final String UTF16

Character offsets count UTF-16 code units.

This is the default and must always be supported by servers.

UTF32back to summary
public static final String UTF32

Character offsets count UTF-32 code units.

Implementation Note

these are the same as Unicode code points, so this kind may also be used for an encoding-agnostic representation of character offsets.

UTF8back to summary
public static final String UTF8

Character offsets count UTF-8 code units.

Constructor Detail

PositionEncodingKindback to summary
private PositionEncodingKind()