public enum BFToken extends Enum<BFToken>
Enum Constant and Description |
---|
BRACKET_LEFT |
BRACKET_RIGHT |
INPUT |
MINUS |
NEXT |
OUTPUT |
PLUS |
PREVIOUS |
Modifier and Type | Method and Description |
---|---|
static BFToken |
getToken(char c) |
char |
toChar() |
static BFToken |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BFToken[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BFToken NEXT
public static final BFToken PREVIOUS
public static final BFToken PLUS
public static final BFToken MINUS
public static final BFToken OUTPUT
public static final BFToken INPUT
public static final BFToken BRACKET_LEFT
public static final BFToken BRACKET_RIGHT
public static BFToken[] values()
for (BFToken c : BFToken.values()) System.out.println(c);
public static BFToken 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 char toChar()
public static BFToken getToken(char c)
Copyright © 2015. All Rights Reserved.