@Immutable public class SonarRuntimeImpl extends Object implements SonarRuntime
Modifier and Type | Method and Description |
---|---|
static SonarRuntime |
forSonarLint(Version version)
Create an instance for SonarLint runtime environment.
|
static SonarRuntime |
forSonarQube(Version version,
SonarQubeSide side)
Create an instance for SonarQube runtime environment.
|
Version |
getApiVersion()
Version of API (sonar-plugin-api artifact) at runtime.
|
SonarProduct |
getProduct()
The product being executed at runtime.
|
SonarQubeSide |
getSonarQubeSide()
The SonarQube stack being executed at runtime.
|
public Version getApiVersion()
SonarRuntime
"6.3.0.12345"
.getApiVersion
in interface SonarRuntime
public SonarProduct getProduct()
SonarRuntime
getProduct
in interface SonarRuntime
public SonarQubeSide getSonarQubeSide()
SonarRuntime
getSonarQubeSide
in interface SonarRuntime
public static SonarRuntime forSonarQube(Version version, SonarQubeSide side)
public static SonarRuntime forSonarLint(Version version)
Copyright © 2009–2018 SonarSource. All rights reserved.