public static enum MixinEnvironment.CompatibilityLevel extends java.lang.Enum<MixinEnvironment.CompatibilityLevel>
| Enum Constant and Description |
|---|
JAVA_10
Java 10 and above
|
JAVA_11
Java 11 and above
|
JAVA_12
Java 12 and above
|
JAVA_13
Java 13 and above
|
JAVA_14
Java 14 and above
|
JAVA_6
Java 6 and above
|
JAVA_7
Java 7 and above
|
JAVA_8
Java 8 and above
|
JAVA_9
Java 9 and above
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canElevateTo(MixinEnvironment.CompatibilityLevel level)
Get whether this level can be elevated to the specified level
|
boolean |
canSupport(MixinEnvironment.CompatibilityLevel level)
True if this level can support the specified level
|
int |
classVersion()
Class version expected at this compatibility level
|
boolean |
isAtLeast(MixinEnvironment.CompatibilityLevel level)
Get whether this level is the same or greater than the specified
level
|
boolean |
supportsMethodsInInterfaces()
Get whether this environment supports non-abstract methods in
interfaces, true in Java 1.8 and above
|
static MixinEnvironment.CompatibilityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MixinEnvironment.CompatibilityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MixinEnvironment.CompatibilityLevel JAVA_6
public static final MixinEnvironment.CompatibilityLevel JAVA_7
public static final MixinEnvironment.CompatibilityLevel JAVA_8
public static final MixinEnvironment.CompatibilityLevel JAVA_9
public static final MixinEnvironment.CompatibilityLevel JAVA_10
public static final MixinEnvironment.CompatibilityLevel JAVA_11
public static final MixinEnvironment.CompatibilityLevel JAVA_12
public static final MixinEnvironment.CompatibilityLevel JAVA_13
public static final MixinEnvironment.CompatibilityLevel JAVA_14
public static MixinEnvironment.CompatibilityLevel[] values()
for (MixinEnvironment.CompatibilityLevel c : MixinEnvironment.CompatibilityLevel.values()) System.out.println(c);
public static MixinEnvironment.CompatibilityLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int classVersion()
public boolean supportsMethodsInInterfaces()
public boolean isAtLeast(MixinEnvironment.CompatibilityLevel level)
level - level to compare topublic boolean canElevateTo(MixinEnvironment.CompatibilityLevel level)
level - desired levelpublic boolean canSupport(MixinEnvironment.CompatibilityLevel level)
level - desired level