public enum CompatVersion extends Enum<CompatVersion>
Modifier and Type | Method and Description |
---|---|
static CompatVersion |
getVersionFromString(String compatString) |
boolean |
is1_9() |
boolean |
is2_0() |
static boolean |
shouldBindMethod(CompatVersion runtimeVersion,
CompatVersion methodVersion) |
static CompatVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompatVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompatVersion RUBY1_8
public static final CompatVersion RUBY1_9
public static final CompatVersion RUBY2_0
public static final CompatVersion BOTH
public static CompatVersion[] values()
for (CompatVersion c : CompatVersion.values()) System.out.println(c);
public static CompatVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean is1_9()
public boolean is2_0()
public static CompatVersion getVersionFromString(String compatString)
public static boolean shouldBindMethod(CompatVersion runtimeVersion, CompatVersion methodVersion)
Copyright © 2001-2014 JRuby. All Rights Reserved.