public enum CompatVersion extends java.lang.Enum<CompatVersion>
Modifier and Type | Method and Description |
---|---|
static CompatVersion |
getVersionFromString(java.lang.String compatString) |
boolean |
is1_9() |
boolean |
is2_0() |
static CompatVersion |
valueOf(java.lang.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(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 boolean is1_9()
public boolean is2_0()
public static CompatVersion getVersionFromString(java.lang.String compatString)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.