summaryrefslogtreecommitdiffstats
path: root/sd-plugin/src/main/java/org/intellij/sdk/language/psi/SdDeclarationType.java
blob: 5ea5968f0bb74c5addee4556ad34642f31041309 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package org.intellij.sdk.language.psi;

/**
 * This Enum describes the different declarations' types and their names.
 * @author shahariel
 */
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"),
    MACRO("Macro"),
    MACRO_ARGUMENT("Macro's Argument"),
    QUERY("Query (first use in file)"),
    ITEM_RAW_SCORE("ItemRawScore (first use in file)");
    
    private final String typeName;
    SdDeclarationType(String name) {
        this.typeName = name;
    }
    
    @Override
    public String toString() {
        return typeName;
    }
}