Package ca.phon.ipa.parser
Enum Class IPATokenType
- All Implemented Interfaces:
Serializable
,Comparable<IPATokenType>
,Constable
Every IPA glyph must have an associated token type.
Token types are used during
IPAElement
parsing
and are available via IPATokens.getTokenType(Character)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic IPATokenType
fromString
(String name) Return ipa token type from given string.static IPATokenType
fromXMLType
(TokenType type) getName()
static IPATokenType
Returns the enum constant of this class with the specified name.static IPATokenType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSONANT
-
CLOSE_PAREN
-
COMBINING_DIACRITIC
-
COVER_SYMBOL
-
GLIDE
-
HALF_LONG
-
LIGATURE
-
LONG
-
MAJOR_GROUP
-
MINOR_GROUP
-
OPEN_PAREN
-
PERIOD
-
PLUS
-
TILDE
-
PREFIX_DIACRITIC
-
PRIMARY_STRESS
-
ROLE_REVERSAL
-
SECONDARY_STRESS
-
SPACE
-
SUFFIX_DIACRITIC
-
TONE_NUMBER
-
VOWEL
-
COLON
-
SCTYPE
-
SANDHI
-
BACKSLASH
-
OPEN_BRACE
-
GROUP_NAME
-
CLOSE_BRACE
-
DIGIT
-
INTRA_WORD_PAUSE
-
ALIGNMENT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
-
fromXMLType
-
fromString
Return ipa token type from given string.- Parameters:
name
- either token name as returned byEnum.toString()
or bygetName()
-