org.jruby.demo
Enum TextAreaReadline.Channel

java.lang.Object
  extended by java.lang.Enum<TextAreaReadline.Channel>
      extended by org.jruby.demo.TextAreaReadline.Channel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextAreaReadline.Channel>
Enclosing class:
TextAreaReadline

public static enum TextAreaReadline.Channel
extends java.lang.Enum<TextAreaReadline.Channel>


Enum Constant Summary
AVAILABLE
           
BUFFER
           
EMPTY
           
FINISHED
           
GET_LINE
           
LINE
           
READ
           
SHUTDOWN
           
 
Method Summary
static TextAreaReadline.Channel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextAreaReadline.Channel[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AVAILABLE

public static final TextAreaReadline.Channel AVAILABLE

READ

public static final TextAreaReadline.Channel READ

BUFFER

public static final TextAreaReadline.Channel BUFFER

EMPTY

public static final TextAreaReadline.Channel EMPTY

LINE

public static final TextAreaReadline.Channel LINE

GET_LINE

public static final TextAreaReadline.Channel GET_LINE

SHUTDOWN

public static final TextAreaReadline.Channel SHUTDOWN

FINISHED

public static final TextAreaReadline.Channel FINISHED
Method Detail

values

public static final TextAreaReadline.Channel[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TextAreaReadline.Channel c : TextAreaReadline.Channel.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TextAreaReadline.Channel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2002-2007 JRuby Team. All Rights Reserved.