All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.qlexpress4.exception.lsp.Diagnostic Maven / Gradle / Ivy

package com.alibaba.qlexpress4.exception.lsp;

/**
 * Author: DQinYuan
 */
public class Diagnostic {

    /**
     * start position in script
     */
    private final int pos;

    /**
     * The range at which the message applies.
     */
    private final Range range;

    /**
     * The diagnostic's code, which might appear in the user interface.
     */
    private final String code;

    /**
     * The diagnostic's message.
     */
    private final String message;

    /**
     * snippet near error position
     */
    private final String snippet;

    /**
     * lexeme in range
     */
    private final String lexeme;

    public Diagnostic(int pos, Range range, String lexeme, String code, String message, String snippet) {
        this.pos = pos;
        this.range = range;
        this.lexeme = lexeme;
        this.code = code;
        this.message = message;
        this.snippet = snippet;
    }

    public int getPos() {
        return pos;
    }

    public Range getRange() {
        return range;
    }

    public String getLexeme() {
        return lexeme;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getSnippet() {
        return snippet;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy