Sha256: c04a2936d5fe0c41e66853d7adf571e6e3c145d4d3bc4903d93bf109ccf8327b

Contents?: true

Size: 880 Bytes

Versions: 12

Compression:

Stored size: 880 Bytes

Contents

package org.cx4a.rsense;

import java.util.List;
import java.util.ArrayList;
import java.util.Collections;

import org.jrubyparser.ast.Node;

public class CodeAssistResult {
    private Node ast;
    private List<CodeAssistError> errors;

    public CodeAssistResult() {
    }

    public void setAST(Node ast) {
        this.ast = ast;
    }

    public Node getAST() {
        return ast;
    }

    public void addError(CodeAssistError error) {
        if (errors == null) {
            errors = new ArrayList<CodeAssistError>();
        }
        errors.add(error);
    }

    public List<CodeAssistError> getErrors() {
        return errors == null ? Collections.<CodeAssistError>emptyList() : errors;
    }

    public void setErrors(List<CodeAssistError> errors) {
        this.errors = errors;
    }

    public boolean hasError() {
        return errors != null;
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.6.5 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.6.4 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.6.2 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.6.1 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.6.0 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.9 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.8 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.6 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.2 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.1 src/org/cx4a/rsense/CodeAssistResult.java
rsense-core-0.5.0 src/org/cx4a/rsense/CodeAssistResult.java