public enum ELanguage extends java.lang.Enum<ELanguage>
org.conqat.engine.service.shared.client.IdeServiceClient
), so special
care has to be taken when changing its signature!Enum Constant and Description |
---|
ABAP
ABAP
|
ABAP_DDIC
ABAP Dictionary.
|
ADA
Ada
|
COBOL
COBOL
|
CPP
C/C++
|
CS
C#
|
DELPHI
Delphi
|
FORTRAN
Fortran
|
GO
Go
|
GOSU
Gosu (https://gosu-lang.github.io/).
|
GROOVY
Groovy
|
HANA_VIEW
HANA Views XML.
|
IEC61131
IEC 61131-3 Structured Text.
|
JAVA
Java
|
JAVADOC
JavaDoc
|
JAVASCRIPT
JavaScript including EcmaScript and TypeScript.
|
JPL
The "Just Your Average Computer Company Procedural Language".
|
KOTLIN
Kotlin.
|
LINE
Use this for languages for which no dedicated scanner is available.
|
MATLAB
Matlab
|
MTEXT
The language used within the M/Text printing system.
|
NL_REQUIREMENTS
Requirement documents.
|
NL_TESTS
Requirement documents.
|
OBJECTIVE_C
Objective C.
|
OCAML
OCaml
|
OPEN_CL
OpenCL C/C++
|
OSCRIPT
Opentext Oscript
|
PHP
PHP
|
PL1
PL/I
|
PLSQL
PL/SQL
|
PYTHON
Python
|
RUBY
Ruby
|
RUST
Rust
|
SIMULINK
Simulink and Stateflow.
|
SQLSCRIPT
HANA SQLScript
|
SWIFT
Swift
|
TEXT
Natural language text
|
TSQL
T-SQL aka Transact SQL.
|
VB
Visual Basic
|
XML
XML
|
XTEND
Xtend
|
Modifier and Type | Method and Description |
---|---|
static ELanguage |
fromFile(java.io.File file)
Gets the
ELanguage value corresponding to the file extension of the
file. |
static ELanguage |
fromFileExtension(java.lang.String extension)
Gets the
ELanguage value corresponding to the given file extension
(without a dot). |
static ELanguage |
fromPath(java.lang.String path)
Gets the
ELanguage value corresponding to the file extension of the
path. |
static ELanguage |
fromResource(Resource resource)
Gets the
ELanguage value corresponding to the extension of the
resource. |
static java.util.Set<ELanguage> |
getAllLanguagesForExtension(java.lang.String extension)
Returns all languages for the given file extension
|
static java.util.Set<ELanguage> |
getAllLanguagesForPath(java.lang.String path)
Returns all
ELanguage s matching the file extension of the given file
path. |
java.lang.String[] |
getFileExtensions()
Get the file extensions commonly used for this language.
|
java.lang.String |
getReadableName()
Returns
readableName . |
boolean |
isCaseSensitive()
Return whether the language is case sensitive.
|
static boolean |
languageHasMethods(ELanguage language) |
static ELanguage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ELanguage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ELanguage ABAP_DDIC
public static final ELanguage HANA_VIEW
public static final ELanguage JAVASCRIPT
Note that the statement oracle only works if semicolons are used consistently. However, semicolons are optional in JavaScript (rules described here: http://bclary.com/2004/11/07/#a-7.9), but to determine end of statement in this case requires a full blown parser (hard to decide locally in some cases). As most coding guidelines recommend using semicolons anyway, we stick with this solution.
public static final ELanguage JPL
public static final ELanguage LINE
public static final ELanguage IEC61131
public static final ELanguage NL_REQUIREMENTS
public static final ELanguage OBJECTIVE_C
public static ELanguage[] values()
for (ELanguage c : ELanguage.values()) System.out.println(c);
public static ELanguage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getReadableName()
readableName
.public boolean isCaseSensitive()
public java.lang.String[] getFileExtensions()
public static ELanguage fromResource(Resource resource)
ELanguage
value corresponding to the extension of the
resource. Returns null if no extension was found. If there are multiple
possible languages, the first one is returned.public static ELanguage fromFileExtension(java.lang.String extension)
public static java.util.Set<ELanguage> getAllLanguagesForExtension(java.lang.String extension)
public static java.util.Set<ELanguage> getAllLanguagesForPath(java.lang.String path)
ELanguage
s matching the file extension of the given file
path.public static boolean languageHasMethods(ELanguage language)