Package org.jfugue.pattern
Enum Token.TokenType
- java.lang.Object
-
- java.lang.Enum<Token.TokenType>
-
- org.jfugue.pattern.Token.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Token.TokenType>
- Enclosing class:
- Token
public static enum Token.TokenType extends java.lang.Enum<Token.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATOM
BAR_LINE
FUNCTION
INSTRUMENT
KEY_SIGNATURE
LAYER
LYRIC
MARKER
NOTE
TEMPO
TIME_SIGNATURE
TRACK_TIME_BOOKMARK
TRACK_TIME_BOOKMARK_REQUESTED
UNKNOWN_TOKEN
VOICE
WHITESPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Token.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Token.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VOICE
public static final Token.TokenType VOICE
-
LAYER
public static final Token.TokenType LAYER
-
INSTRUMENT
public static final Token.TokenType INSTRUMENT
-
TEMPO
public static final Token.TokenType TEMPO
-
KEY_SIGNATURE
public static final Token.TokenType KEY_SIGNATURE
-
TIME_SIGNATURE
public static final Token.TokenType TIME_SIGNATURE
-
BAR_LINE
public static final Token.TokenType BAR_LINE
-
TRACK_TIME_BOOKMARK
public static final Token.TokenType TRACK_TIME_BOOKMARK
-
TRACK_TIME_BOOKMARK_REQUESTED
public static final Token.TokenType TRACK_TIME_BOOKMARK_REQUESTED
-
LYRIC
public static final Token.TokenType LYRIC
-
MARKER
public static final Token.TokenType MARKER
-
FUNCTION
public static final Token.TokenType FUNCTION
-
NOTE
public static final Token.TokenType NOTE
-
WHITESPACE
public static final Token.TokenType WHITESPACE
-
ATOM
public static final Token.TokenType ATOM
-
UNKNOWN_TOKEN
public static final Token.TokenType UNKNOWN_TOKEN
-
-
Method Detail
-
values
public static Token.TokenType[] 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 (Token.TokenType c : Token.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Token.TokenType 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 namejava.lang.NullPointerException
- if the argument is null
-
-