public enum CompatVersion extends Enum<CompatVersion>
| Enum Constant and Description | 
|---|
| BOTHDeprecated.  | 
| RUBY1_8Deprecated.  | 
| RUBY1_9Deprecated.  | 
| RUBY2_0Deprecated.  | 
| RUBY2_1Deprecated.  | 
| 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. | 
@Deprecated public static final CompatVersion RUBY1_8
@Deprecated public static final CompatVersion RUBY1_9
@Deprecated public static final CompatVersion RUBY2_0
@Deprecated public static final CompatVersion RUBY2_1
@Deprecated 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-2015 JRuby. All Rights Reserved.