org.crsh.term
Enum CodeType
java.lang.Object
java.lang.Enum<CodeType>
org.crsh.term.CodeType
- All Implemented Interfaces:
- Serializable, Comparable<CodeType>
-
public enum CodeType
- extends Enum<CodeType>
-
Method Summary |
static CodeType |
valueOf(int ordinal)
|
static CodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CodeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CLOSE
public static final CodeType CLOSE
-
BACKSPACE
public static final CodeType BACKSPACE
-
UP
public static final CodeType UP
-
DOWN
public static final CodeType DOWN
-
CHAR
public static final CodeType CHAR
-
RIGHT
public static final CodeType RIGHT
-
LEFT
public static final CodeType LEFT
-
TAB
public static final CodeType TAB
-
BREAK
public static final CodeType BREAK
-
BACKWARD_WORD
public static final CodeType BACKWARD_WORD
-
FORWARD_WORD
public static final CodeType FORWARD_WORD
-
BEGINNING_OF_LINE
public static final CodeType BEGINNING_OF_LINE
-
END_OF_LINE
public static final CodeType END_OF_LINE
-
ALL
private static final CodeType[] ALL
-
.
values
public static CodeType[] values()
-
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CodeType c : CodeType.values())
System.out.println(c);
-
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static CodeType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
valueOf
public static CodeType valueOf(int ordinal)
-
Copyright © 2014 eXo Platform SAS. All Rights Reserved.