public final class ASM
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
API_VERSION
The detected ASM API Version
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getApiVersionMajor()
Get the major API version
|
static int |
getApiVersionMinor()
Get the minor API version
|
static java.lang.String |
getApiVersionString()
Get the ASM API version as a string (mostly for debugging and the banner)
|
static java.lang.String |
getClassVersionString()
Get the supported java version as a string (mostly for the banner)
|
static int |
getMaxSupportedClassVersion()
Get the maximum supported class version (raw)
|
static int |
getMaxSupportedClassVersionMajor()
Get the maximum supported major class versior
|
static int |
getMaxSupportedClassVersionMinor()
Get the maximum supported minor class versior
|
static boolean |
isAtLeastVersion(int majorVersion)
Get whether the current ASM API is at least the specified version
|
public static boolean isAtLeastVersion(int majorVersion)
majorVersion - version to check for (eg. 6)public static int getApiVersionMajor()
public static int getApiVersionMinor()
public static java.lang.String getApiVersionString()
public static int getMaxSupportedClassVersion()
public static int getMaxSupportedClassVersionMajor()
public static int getMaxSupportedClassVersionMinor()
public static java.lang.String getClassVersionString()