Java Code Examples for org.eclipse.lsp4j.jsonrpc.validation.NonNull

The following examples show how to use org.eclipse.lsp4j.jsonrpc.validation.NonNull. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: build-server-protocol   Author: build-server-protocol   File: BuildTarget.java    License: Apache License 2.0 5 votes vote down vote up
public BuildTarget(@NonNull final BuildTargetIdentifier id, @NonNull final List<String> tags, @NonNull final List<String> languageIds, @NonNull final List<BuildTargetIdentifier> dependencies, @NonNull final BuildTargetCapabilities capabilities) {
  this.id = id;
  this.tags = tags;
  this.dependencies = dependencies;
  this.languageIds = languageIds;
  this.capabilities = capabilities;
}
 
Example #2
Source Project: build-server-protocol   Author: build-server-protocol   File: InitializeBuildParams.java    License: Apache License 2.0 5 votes vote down vote up
public InitializeBuildParams(@NonNull final String displayName, @NonNull final String version, @NonNull final String bspVersion, @NonNull final String rootUri, @NonNull final BuildClientCapabilities capabilities) {
  this.displayName = displayName;
  this.version = version;
  this.bspVersion = bspVersion;
  this.rootUri = rootUri;
  this.capabilities = capabilities;
}
 
Example #3
Source Project: build-server-protocol   Author: build-server-protocol   File: JvmEnvironmentItem.java    License: Apache License 2.0 5 votes vote down vote up
public JvmEnvironmentItem(@NonNull final BuildTargetIdentifier target, @NonNull final List<String> classpath, @NonNull final List<String> jvmOptions, @NonNull final String workingDirectory, @NonNull final Map<String, String> environmentVariables) {
  this.target = target;
  this.classpath = classpath;
  this.jvmOptions = jvmOptions;
  this.workingDirectory = workingDirectory;
  this.environmentVariables = environmentVariables;
}
 
Example #4
Source Project: build-server-protocol   Author: build-server-protocol   File: PublishDiagnosticsParams.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public BuildTargetIdentifier getBuildTarget() {
  return this.buildTarget;
}
 
Example #5
Source Project: build-server-protocol   Author: build-server-protocol   File: TextDocumentIdentifier.java    License: Apache License 2.0 4 votes vote down vote up
public TextDocumentIdentifier(@NonNull final String uri) {
  this.uri = uri;
}
 
Example #6
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestClassesItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setClasses(@NonNull final List<String> classes) {
  this.classes = Preconditions.checkNotNull(classes, "classes");
}
 
Example #7
Source Project: build-server-protocol   Author: build-server-protocol   File: InitializeBuildParams.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public String getDisplayName() {
  return this.displayName;
}
 
Example #8
Source Project: build-server-protocol   Author: build-server-protocol   File: BuildTargetEvent.java    License: Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example #9
Source Project: build-server-protocol   Author: build-server-protocol   File: InitializeBuildParams.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public String getVersion() {
  return this.version;
}
 
Example #10
Source Project: build-server-protocol   Author: build-server-protocol   File: TestFinish.java    License: Apache License 2.0 4 votes vote down vote up
public TestFinish(@NonNull final String displayName, @NonNull final TestStatus status) {
  this.displayName = displayName;
  this.status = status;
}
 
Example #11
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestClassesItem.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public List<String> getClasses() {
  return this.classes;
}
 
Example #12
Source Project: build-server-protocol   Author: build-server-protocol   File: DidChangeBuildTarget.java    License: Apache License 2.0 4 votes vote down vote up
public void setChanges(@NonNull final List<BuildTargetEvent> changes) {
  this.changes = Preconditions.checkNotNull(changes, "changes");
}
 
Example #13
Source Project: build-server-protocol   Author: build-server-protocol   File: TestReport.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public Integer getFailed() {
  return this.failed;
}
 
Example #14
Source Project: build-server-protocol   Author: build-server-protocol   File: SourceItem.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public Boolean getGenerated() {
  return this.generated;
}
 
Example #15
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestClassesResult.java    License: Apache License 2.0 4 votes vote down vote up
public ScalaTestClassesResult(@NonNull final List<ScalaTestClassesItem> items) {
  this.items = items;
}
 
Example #16
Source Project: build-server-protocol   Author: build-server-protocol   File: TestParams.java    License: Apache License 2.0 4 votes vote down vote up
public TestParams(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = targets;
}
 
Example #17
Source Project: build-server-protocol   Author: build-server-protocol   File: InverseSourcesResult.java    License: Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #18
Source Project: build-server-protocol   Author: build-server-protocol   File: TestReport.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public Integer getPassed() {
  return this.passed;
}
 
Example #19
Source Project: build-server-protocol   Author: build-server-protocol   File: JvmRunEnvironmentResult.java    License: Apache License 2.0 4 votes vote down vote up
public JvmRunEnvironmentResult(@NonNull final List<JvmEnvironmentItem> items) {
  this.items = items;
}
 
Example #20
Source Project: build-server-protocol   Author: build-server-protocol   File: DebugSessionParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setDataKind(@NonNull final String dataKind) {
  this.dataKind = Preconditions.checkNotNull(dataKind, "dataKind");
}
 
Example #21
Source Project: build-server-protocol   Author: build-server-protocol   File: InitializeBuildResult.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public String getVersion() {
  return this.version;
}
 
Example #22
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaMainClass.java    License: Apache License 2.0 4 votes vote down vote up
public ScalaMainClass(@NonNull final String className, @NonNull final List<String> arguments, @NonNull final List<String> jvmOptions) {
  this.className = className;
  this.arguments = arguments;
  this.jvmOptions = jvmOptions;
}
 
Example #23
Source Project: build-server-protocol   Author: build-server-protocol   File: CompileTask.java    License: Apache License 2.0 4 votes vote down vote up
public CompileTask(@NonNull final BuildTargetIdentifier target) {
  this.target = target;
}
 
Example #24
Source Project: build-server-protocol   Author: build-server-protocol   File: InitializeBuildParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setDisplayName(@NonNull final String displayName) {
  this.displayName = Preconditions.checkNotNull(displayName, "displayName");
}
 
Example #25
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestClassesParams.java    License: Apache License 2.0 4 votes vote down vote up
public ScalaTestClassesParams(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = targets;
}
 
Example #26
Source Project: build-server-protocol   Author: build-server-protocol   File: ScalaTestClassesItem.java    License: Apache License 2.0 4 votes vote down vote up
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example #27
Source Project: build-server-protocol   Author: build-server-protocol   File: BspConnectionDetails.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public List<String> getLanguages() {
  return this.languages;
}
 
Example #28
Source Project: build-server-protocol   Author: build-server-protocol   File: ResourcesParams.java    License: Apache License 2.0 4 votes vote down vote up
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example #29
Source Project: build-server-protocol   Author: build-server-protocol   File: JvmRunEnvironmentParams.java    License: Apache License 2.0 4 votes vote down vote up
public JvmRunEnvironmentParams(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = targets;
}
 
Example #30
Source Project: build-server-protocol   Author: build-server-protocol   File: DebugSessionAddress.java    License: Apache License 2.0 4 votes vote down vote up
public void setUri(@NonNull final String uri) {
  this.uri = Preconditions.checkNotNull(uri, "uri");
}