public class SourceVersionUtils extends Object
Constructor and Description |
---|
SourceVersionUtils() |
Modifier and Type | Method and Description |
---|---|
static SourceVersion |
getSourceVersionFromTarget(String target)
Gets the source version corresponding to the given target string.
|
static int |
sourceVersionToClassFileVersion(SourceVersion version)
Gets the class file version corresponding to the given source version constant.
|
public static int sourceVersionToClassFileVersion(SourceVersion version)
public static SourceVersion getSourceVersionFromTarget(String target)