Class TreeSitter
- java.lang.Object
-
- ch.usi.si.seart.treesitter.version.TreeSitter
-
public final class TreeSitter extends Object
Utility used for obtaining the current version of thetree-sitter
API.- Since:
- 1.11.0
- Author:
- Ozren Dabić
-
-
Constructor Summary
Constructors Constructor Description TreeSitter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCurrentABIVersion()
The latest ABI version that is supported by the current version of the library.static int
getMinimumABIVersion()
The earliest ABI version that is supported by the current version of the library.static String
getVersion()
Get the current version oftree-sitter
.
-
-
-
Field Detail
-
SHA
public static final String SHA
- See Also:
- Constant Field Values
-
TAG
public static final String TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public static String getVersion()
Get the current version oftree-sitter
.- Returns:
- the semantic version string, along with a commit SHA
-
getCurrentABIVersion
public static int getCurrentABIVersion()
The latest ABI version that is supported by the current version of the library. When languages are generated by thetree-sitter
CLI, they are assigned an ABI version number that corresponds to the current CLI version.- Returns:
- current ABI version number
- Since:
- 1.12.0
-
getMinimumABIVersion
public static int getMinimumABIVersion()
The earliest ABI version that is supported by the current version of the library. Thetree-sitter
library is generally backwards-compatible with languages generated using older CLI versions, but is not forwards-compatible.- Returns:
- earliest supported ABI version number
- Since:
- 1.12.0
-
-