Package org.spongepowered.asm.util.asm
Class ASM
java.lang.Object
org.spongepowered.asm.util.asm.ASM
public final class ASM
extends java.lang.Object
Utility methods for determining ASM version and other version-specific
shenanigans
-
Field Summary
Fields Modifier and Type Field Description static intAPI_VERSIONThe detected ASM API Version -
Method Summary
Modifier and Type Method Description static intgetApiVersionMajor()Get the major API versionstatic intgetApiVersionMinor()Get the minor API versionstatic java.lang.StringgetApiVersionString()Get the ASM API version as a string (mostly for debugging and the banner)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
API_VERSION
public static final int API_VERSIONThe detected ASM API Version
-
-
Method Details
-
getApiVersionMajor
public static int getApiVersionMajor()Get the major API version -
getApiVersionMinor
public static int getApiVersionMinor()Get the minor API version -
getApiVersionString
public static java.lang.String getApiVersionString()Get the ASM API version as a string (mostly for debugging and the banner)- Returns:
- ASM API version as string
-