Package ch.usi.si.seart.treesitter
Enum Language
- java.lang.Object
-
- java.lang.Enum<Language>
-
- ch.usi.si.seart.treesitter.Language
-
- All Implemented Interfaces:
Serializable,Comparable<Language>
public enum Language extends Enum<Language>
Enum that consists of all the officially recognized programming language mappings.- Since:
- 1.0.0
- Author:
- Ozren Dabić
-
-
Enum Constant Summary
Enum Constants Enum Constant Description _INVALID_Represents an invalid language.AGDAAgda language mapping.BASHBash language mapping.CC language mapping.CPPC++ language mapping.CSHARPC# language mapping.CSSCSS language mapping.DARTDart language mapping.ELMElm language mapping.EMBEDDED_TEMPLATEEmbedded template (EJS & ERS) language mapping.ENOEno language mapping.GOGo language mapping.HASKELLHaskell language mapping.HTMLHTML language mapping.JAVAJava language mapping.JAVASCRIPTJavaScript language mapping.JULIAJulia language mapping.KOTLINKotlin language mapping.LUALua language mapping.MARKDOWNMarkdown language mapping.OCAMLOCaml language mapping.PHPPHP language mapping.PYTHONPython language mapping.RUBYRuby language mapping.RUSTRust language mapping.SCALAScala language mapping.SCSSSCSS language mapping.SWIFTSwift language mapping.TOMLTOML language mapping.TSXJSX-enhanced TypeScript language mapping.TYPESCRIPTTypeScript language mapping.VUEVue language mapping.WASMWebAssembly language mapping.YAMLYAML language mapping.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static voidvalidate(Language language)static LanguagevalueOf(String name)Returns the enum constant of this type with the specified name.static Language[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_INVALID_
public static final Language _INVALID_
Represents an invalid language. Used primarily for testing.
-
AGDA
public static final Language AGDA
Agda language mapping.- See Also:
- tree-sitter-agda
-
BASH
public static final Language BASH
Bash language mapping.- See Also:
- tree-sitter-bash
-
C
public static final Language C
C language mapping.- See Also:
- tree-sitter-c
-
CSHARP
public static final Language CSHARP
C# language mapping.- See Also:
- tree-sitter-c-sharp
-
CPP
public static final Language CPP
C++ language mapping.- See Also:
- tree-sitter-cpp
-
CSS
public static final Language CSS
CSS language mapping.- See Also:
- tree-sitter-css
-
DART
public static final Language DART
Dart language mapping.- See Also:
- tree-sitter-dart
-
ELM
public static final Language ELM
Elm language mapping.- See Also:
- tree-sitter-elm
-
EMBEDDED_TEMPLATE
public static final Language EMBEDDED_TEMPLATE
Embedded template (EJS & ERS) language mapping.- See Also:
- tree-sitter-embedded-template
-
ENO
public static final Language ENO
Eno language mapping.- See Also:
- tree-sitter-eno
-
GO
public static final Language GO
Go language mapping.- See Also:
- tree-sitter-go
-
HASKELL
public static final Language HASKELL
Haskell language mapping.- See Also:
- tree-sitter-haskell
-
HTML
public static final Language HTML
HTML language mapping.- See Also:
- tree-sitter-html
-
JAVA
public static final Language JAVA
Java language mapping.- See Also:
- tree-sitter-java
-
JAVASCRIPT
public static final Language JAVASCRIPT
JavaScript language mapping.- See Also:
- tree-sitter-javascript
-
JULIA
public static final Language JULIA
Julia language mapping.- See Also:
- tree-sitter-julia
-
KOTLIN
public static final Language KOTLIN
Kotlin language mapping.- See Also:
- tree-sitter-kotlin
-
LUA
public static final Language LUA
Lua language mapping.- See Also:
- tree-sitter-lua
-
MARKDOWN
public static final Language MARKDOWN
Markdown language mapping.- See Also:
- tree-sitter-markdown
-
OCAML
public static final Language OCAML
OCaml language mapping.- See Also:
- tree-sitter-ocaml
-
PHP
public static final Language PHP
PHP language mapping.- See Also:
- tree-sitter-php
-
PYTHON
public static final Language PYTHON
Python language mapping.- See Also:
- tree-sitter-python
-
RUBY
public static final Language RUBY
Ruby language mapping.- See Also:
- tree-sitter-ruby
-
RUST
public static final Language RUST
Rust language mapping.- See Also:
- tree-sitter-rust
-
SCALA
public static final Language SCALA
Scala language mapping.- See Also:
- tree-sitter-scala
-
SCSS
public static final Language SCSS
SCSS language mapping.- See Also:
- tree-sitter-scss
-
SWIFT
public static final Language SWIFT
Swift language mapping.- See Also:
- tree-sitter-swift
-
TOML
public static final Language TOML
TOML language mapping.- See Also:
- tree-sitter-toml
-
TSX
public static final Language TSX
JSX-enhanced TypeScript language mapping.
-
TYPESCRIPT
public static final Language TYPESCRIPT
TypeScript language mapping.- See Also:
- tree-sitter-typescript
-
VUE
public static final Language VUE
Vue language mapping.- See Also:
- tree-sitter-vue
-
YAML
public static final Language YAML
YAML language mapping.- See Also:
- tree-sitter-yaml
-
WASM
public static final Language WASM
WebAssembly language mapping.- See Also:
- tree-sitter-wasm
-
-
Method Detail
-
values
public static Language[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Language c : Language.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Language valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
validate
public static void validate(Language language)
-
-