blob: d534a9e46923cccd1a132c7f52c9c87ca862ff3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.intellij.schema.psi;
/**
* This Enum describes the different declarations' types and their names.
*
* @author Shahar Ariel
*/
public enum SdDeclarationType {
DOCUMENT("Document"),
STRUCT("Struct"),
ANNOTATION("Annotation"),
SCHEMA_FIELD("Field (in Schema)"),
DOCUMENT_FIELD("Field (in Document)"),
STRUCT_FIELD("Struct-Field"),
ANNOTATION_FIELD("Field (in Annotation)"),
DOCUMENT_STRUCT_FIELD("Field (in Struct)"),
IMPORTED_FIELD("Imported Field"),
DOCUMENT_SUMMARY("Document-Summary"),
RANK_PROFILE("Rank Profile"),
FUNCTION("Function"),
FUNCTION_ARGUMENT("Function argument"),
FEATURE("Feature (first use in file)");
private final String typeName;
SdDeclarationType(String name) {
this.typeName = name;
}
@Override
public String toString() {
return typeName;
}
}
|