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   Source 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
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   Source 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
@Pure
@NonNull
public BuildTargetIdentifier getBuildTarget() {
  return this.buildTarget;
}
 
Example 5
public TextDocumentIdentifier(@NonNull final String uri) {
  this.uri = uri;
}
 
Example 6
public void setClasses(@NonNull final List<String> classes) {
  this.classes = Preconditions.checkNotNull(classes, "classes");
}
 
Example 7
@Pure
@NonNull
public String getDisplayName() {
  return this.displayName;
}
 
Example 8
Source Project: build-server-protocol   Source 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
@Pure
@NonNull
public String getVersion() {
  return this.version;
}
 
Example 10
Source Project: build-server-protocol   Source 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
@Pure
@NonNull
public List<String> getClasses() {
  return this.classes;
}
 
Example 12
public void setChanges(@NonNull final List<BuildTargetEvent> changes) {
  this.changes = Preconditions.checkNotNull(changes, "changes");
}
 
Example 13
Source Project: build-server-protocol   Source 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   Source File: SourceItem.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public Boolean getGenerated() {
  return this.generated;
}
 
Example 15
public ScalaTestClassesResult(@NonNull final List<ScalaTestClassesItem> items) {
  this.items = items;
}
 
Example 16
Source Project: build-server-protocol   Source 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
public void setTargets(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = Preconditions.checkNotNull(targets, "targets");
}
 
Example 18
Source Project: build-server-protocol   Source File: TestReport.java    License: Apache License 2.0 4 votes vote down vote up
@Pure
@NonNull
public Integer getPassed() {
  return this.passed;
}
 
Example 19
public JvmRunEnvironmentResult(@NonNull final List<JvmEnvironmentItem> items) {
  this.items = items;
}
 
Example 20
Source Project: build-server-protocol   Source 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
@Pure
@NonNull
public String getVersion() {
  return this.version;
}
 
Example 22
Source Project: build-server-protocol   Source 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   Source 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
public void setDisplayName(@NonNull final String displayName) {
  this.displayName = Preconditions.checkNotNull(displayName, "displayName");
}
 
Example 25
public ScalaTestClassesParams(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = targets;
}
 
Example 26
public void setTarget(@NonNull final BuildTargetIdentifier target) {
  this.target = Preconditions.checkNotNull(target, "target");
}
 
Example 27
@Pure
@NonNull
public List<String> getLanguages() {
  return this.languages;
}
 
Example 28
Source Project: build-server-protocol   Source 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
public JvmRunEnvironmentParams(@NonNull final List<BuildTargetIdentifier> targets) {
  this.targets = targets;
}
 
Example 30
Source Project: build-server-protocol   Source 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");
}