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