- All Implemented Interfaces:
Serializable
,Comparable<Character.UnicodeScript>
,Constable
- Enclosing class:
Character
A family of character subsets representing the character scripts
defined in the
Unicode Standard Annex #24: Script Names. Every Unicode
character is assigned to a single Unicode script, either a specific
script, such as
Latin
, or
one of the following three special values,
Inherited
,
Common
or
Unknown
.- Since:
- 1.7
-
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUnicode script "Adlam".Unicode script "Ahom".Unicode script "Anatolian Hieroglyphs".Unicode script "Arabic".Unicode script "Armenian".Unicode script "Avestan".Unicode script "Balinese".Unicode script "Bamum".Unicode script "Bassa Vah".Unicode script "Batak".Unicode script "Bengali".Unicode script "Bhaiksuki".Unicode script "Bopomofo".Unicode script "Brahmi".Unicode script "Braille".Unicode script "Buginese".Unicode script "Buhid".Unicode script "Canadian_Aboriginal".Unicode script "Carian".Unicode script "Caucasian Albanian".Unicode script "Chakma".Unicode script "Cham".Unicode script "Cherokee".Unicode script "Chorasmian".Unicode script "Common".Unicode script "Coptic".Unicode script "Cuneiform".Unicode script "Cypriot".Unicode script "Cypro Minoan".Unicode script "Cyrillic".Unicode script "Deseret".Unicode script "Devanagari".Unicode script "Dives Akuru".Unicode script "Dogra".Unicode script "Duployan".Unicode script "Egyptian_Hieroglyphs".Unicode script "Elbasan".Unicode script "Elymaic".Unicode script "Ethiopic".Unicode script "Georgian".Unicode script "Glagolitic".Unicode script "Gothic".Unicode script "Grantha".Unicode script "Greek".Unicode script "Gujarati".Unicode script "Gunjala Gondi".Unicode script "Gurmukhi".Unicode script "Han".Unicode script "Hangul".Unicode script "Hanifi Rohingya".Unicode script "Hanunoo".Unicode script "Hatran".Unicode script "Hebrew".Unicode script "Hiragana".Unicode script "Imperial_Aramaic".Unicode script "Inherited".Unicode script "Inscriptional_Pahlavi".Unicode script "Inscriptional_Parthian".Unicode script "Javanese".Unicode script "Kaithi".Unicode script "Kannada".Unicode script "Katakana".Unicode script "Kawi".Unicode script "Kayah_Li".Unicode script "Kharoshthi".Unicode script "Khitan Small Script".Unicode script "Khmer".Unicode script "Khojki".Unicode script "Khudawadi".Unicode script "Lao".Unicode script "Latin".Unicode script "Lepcha".Unicode script "Limbu".Unicode script "Linear A".Unicode script "Linear_B".Unicode script "Lisu".Unicode script "Lycian".Unicode script "Lydian".Unicode script "Mahajani".Unicode script "Makasar".Unicode script "Malayalam".Unicode script "Mandaic".Unicode script "Manichaean".Unicode script "Marchen".Unicode script "Masaram Gondi".Unicode script "Medefaidrin".Unicode script "Meetei_Mayek".Unicode script "Mende Kikakui".Unicode script "Meroitic Cursive".Unicode script "Meroitic Hieroglyphs".Unicode script "Miao".Unicode script "Modi".Unicode script "Mongolian".Unicode script "Mro".Unicode script "Multani".Unicode script "Myanmar".Unicode script "Nabataean".Unicode script "Nag Mundari".Unicode script "Nandinagari".Unicode script "New_Tai_Lue".Unicode script "Newa".Unicode script "Nko".Unicode script "Nushu".Unicode script "Nyiakeng Puachue Hmong".Unicode script "Ogham".Unicode script "Ol_Chiki".Unicode script "Old Hungarian".Unicode script "Old_Italic".Unicode script "Old North Arabian".Unicode script "Old Permic".Unicode script "Old_Persian".Unicode script "Old Sogdian".Unicode script "Old_South_Arabian".Unicode script "Old_Turkic".Unicode script "Old Uyghur".Unicode script "Oriya".Unicode script "Osage".Unicode script "Osmanya".Unicode script "Pahawh Hmong".Unicode script "Palmyrene".Unicode script "Pau Cin Hau".Unicode script "Phags_Pa".Unicode script "Phoenician".Unicode script "Psalter Pahlavi".Unicode script "Rejang".Unicode script "Runic".Unicode script "Samaritan".Unicode script "Saurashtra".Unicode script "Sharada".Unicode script "Shavian".Unicode script "Siddham".Unicode script "SignWriting".Unicode script "Sinhala".Unicode script "Sogdian".Unicode script "Sora Sompeng".Unicode script "Soyombo".Unicode script "Sundanese".Unicode script "Syloti_Nagri".Unicode script "Syriac".Unicode script "Tagalog".Unicode script "Tagbanwa".Unicode script "Tai_Le".Unicode script "Tai_Tham".Unicode script "Tai_Viet".Unicode script "Takri".Unicode script "Tamil".Unicode script "Tangsa".Unicode script "Tangut".Unicode script "Telugu".Unicode script "Thaana".Unicode script "Thai".Unicode script "Tibetan".Unicode script "Tifinagh".Unicode script "Tirhuta".Unicode script "Toto".Unicode script "Ugaritic".Unicode script "Unknown".Unicode script "Vai".Unicode script "Vithkuqi".Unicode script "Wancho".Unicode script "Warang Citi".Unicode script "Yezidi".Unicode script "Yi".Unicode script "Zanabazar Square". -
Method Summary
Modifier and TypeMethodDescriptionstatic final Character.UnicodeScript
Returns the UnicodeScript constant with the given Unicode script name or the script name alias.static Character.UnicodeScript
of
(int codePoint) Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.static Character.UnicodeScript
Returns the enum constant of this class with the specified name.static Character.UnicodeScript[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMON
Unicode script "Common". -
LATIN
Unicode script "Latin". -
GREEK
Unicode script "Greek". -
CYRILLIC
Unicode script "Cyrillic". -
ARMENIAN
Unicode script "Armenian". -
HEBREW
Unicode script "Hebrew". -
ARABIC
Unicode script "Arabic". -
SYRIAC
Unicode script "Syriac". -
THAANA
Unicode script "Thaana". -
DEVANAGARI
Unicode script "Devanagari". -
BENGALI
Unicode script "Bengali". -
GURMUKHI
Unicode script "Gurmukhi". -
GUJARATI
Unicode script "Gujarati". -
ORIYA
Unicode script "Oriya". -
TAMIL
Unicode script "Tamil". -
TELUGU
Unicode script "Telugu". -
KANNADA
Unicode script "Kannada". -
MALAYALAM
Unicode script "Malayalam". -
SINHALA
Unicode script "Sinhala". -
THAI
Unicode script "Thai". -
LAO
Unicode script "Lao". -
TIBETAN
Unicode script "Tibetan". -
MYANMAR
Unicode script "Myanmar". -
GEORGIAN
Unicode script "Georgian". -
HANGUL
Unicode script "Hangul". -
ETHIOPIC
Unicode script "Ethiopic". -
CHEROKEE
Unicode script "Cherokee". -
CANADIAN_ABORIGINAL
Unicode script "Canadian_Aboriginal". -
OGHAM
Unicode script "Ogham". -
RUNIC
Unicode script "Runic". -
KHMER
Unicode script "Khmer". -
MONGOLIAN
Unicode script "Mongolian". -
HIRAGANA
Unicode script "Hiragana". -
KATAKANA
Unicode script "Katakana". -
BOPOMOFO
Unicode script "Bopomofo". -
HAN
Unicode script "Han". -
YI
Unicode script "Yi". -
OLD_ITALIC
Unicode script "Old_Italic". -
GOTHIC
Unicode script "Gothic". -
DESERET
Unicode script "Deseret". -
INHERITED
Unicode script "Inherited". -
TAGALOG
Unicode script "Tagalog". -
HANUNOO
Unicode script "Hanunoo". -
BUHID
Unicode script "Buhid". -
TAGBANWA
Unicode script "Tagbanwa". -
LIMBU
Unicode script "Limbu". -
TAI_LE
Unicode script "Tai_Le". -
LINEAR_B
Unicode script "Linear_B". -
UGARITIC
Unicode script "Ugaritic". -
SHAVIAN
Unicode script "Shavian". -
OSMANYA
Unicode script "Osmanya". -
CYPRIOT
Unicode script "Cypriot". -
BRAILLE
Unicode script "Braille". -
BUGINESE
Unicode script "Buginese". -
COPTIC
Unicode script "Coptic". -
NEW_TAI_LUE
Unicode script "New_Tai_Lue". -
GLAGOLITIC
Unicode script "Glagolitic". -
TIFINAGH
Unicode script "Tifinagh". -
SYLOTI_NAGRI
Unicode script "Syloti_Nagri". -
OLD_PERSIAN
Unicode script "Old_Persian". -
KHAROSHTHI
Unicode script "Kharoshthi". -
BALINESE
Unicode script "Balinese". -
CUNEIFORM
Unicode script "Cuneiform". -
PHOENICIAN
Unicode script "Phoenician". -
PHAGS_PA
Unicode script "Phags_Pa". -
NKO
Unicode script "Nko". -
SUNDANESE
Unicode script "Sundanese". -
BATAK
Unicode script "Batak". -
LEPCHA
Unicode script "Lepcha". -
OL_CHIKI
Unicode script "Ol_Chiki". -
VAI
Unicode script "Vai". -
SAURASHTRA
Unicode script "Saurashtra". -
KAYAH_LI
Unicode script "Kayah_Li". -
REJANG
Unicode script "Rejang". -
LYCIAN
Unicode script "Lycian". -
CARIAN
Unicode script "Carian". -
LYDIAN
Unicode script "Lydian". -
CHAM
Unicode script "Cham". -
TAI_THAM
Unicode script "Tai_Tham". -
TAI_VIET
Unicode script "Tai_Viet". -
AVESTAN
Unicode script "Avestan". -
EGYPTIAN_HIEROGLYPHS
Unicode script "Egyptian_Hieroglyphs". -
SAMARITAN
Unicode script "Samaritan". -
MANDAIC
Unicode script "Mandaic". -
LISU
Unicode script "Lisu". -
BAMUM
Unicode script "Bamum". -
JAVANESE
Unicode script "Javanese". -
MEETEI_MAYEK
Unicode script "Meetei_Mayek". -
IMPERIAL_ARAMAIC
Unicode script "Imperial_Aramaic". -
OLD_SOUTH_ARABIAN
Unicode script "Old_South_Arabian". -
INSCRIPTIONAL_PARTHIAN
Unicode script "Inscriptional_Parthian". -
INSCRIPTIONAL_PAHLAVI
Unicode script "Inscriptional_Pahlavi". -
OLD_TURKIC
Unicode script "Old_Turkic". -
BRAHMI
Unicode script "Brahmi". -
KAITHI
Unicode script "Kaithi". -
MEROITIC_HIEROGLYPHS
Unicode script "Meroitic Hieroglyphs".- Since:
- 1.8
-
MEROITIC_CURSIVE
Unicode script "Meroitic Cursive".- Since:
- 1.8
-
SORA_SOMPENG
Unicode script "Sora Sompeng".- Since:
- 1.8
-
CHAKMA
Unicode script "Chakma".- Since:
- 1.8
-
SHARADA
Unicode script "Sharada".- Since:
- 1.8
-
TAKRI
Unicode script "Takri".- Since:
- 1.8
-
MIAO
Unicode script "Miao".- Since:
- 1.8
-
CAUCASIAN_ALBANIAN
Unicode script "Caucasian Albanian".- Since:
- 9
-
BASSA_VAH
Unicode script "Bassa Vah".- Since:
- 9
-
DUPLOYAN
Unicode script "Duployan".- Since:
- 9
-
ELBASAN
Unicode script "Elbasan".- Since:
- 9
-
GRANTHA
Unicode script "Grantha".- Since:
- 9
-
PAHAWH_HMONG
Unicode script "Pahawh Hmong".- Since:
- 9
-
KHOJKI
Unicode script "Khojki".- Since:
- 9
-
LINEAR_A
Unicode script "Linear A".- Since:
- 9
-
MAHAJANI
Unicode script "Mahajani".- Since:
- 9
-
MANICHAEAN
Unicode script "Manichaean".- Since:
- 9
-
MENDE_KIKAKUI
Unicode script "Mende Kikakui".- Since:
- 9
-
MODI
Unicode script "Modi".- Since:
- 9
-
MRO
Unicode script "Mro".- Since:
- 9
-
OLD_NORTH_ARABIAN
Unicode script "Old North Arabian".- Since:
- 9
-
NABATAEAN
Unicode script "Nabataean".- Since:
- 9
-
PALMYRENE
Unicode script "Palmyrene".- Since:
- 9
-
PAU_CIN_HAU
Unicode script "Pau Cin Hau".- Since:
- 9
-
OLD_PERMIC
Unicode script "Old Permic".- Since:
- 9
-
PSALTER_PAHLAVI
Unicode script "Psalter Pahlavi".- Since:
- 9
-
SIDDHAM
Unicode script "Siddham".- Since:
- 9
-
KHUDAWADI
Unicode script "Khudawadi".- Since:
- 9
-
TIRHUTA
Unicode script "Tirhuta".- Since:
- 9
-
WARANG_CITI
Unicode script "Warang Citi".- Since:
- 9
-
AHOM
Unicode script "Ahom".- Since:
- 9
-
ANATOLIAN_HIEROGLYPHS
Unicode script "Anatolian Hieroglyphs".- Since:
- 9
-
HATRAN
Unicode script "Hatran".- Since:
- 9
-
MULTANI
Unicode script "Multani".- Since:
- 9
-
OLD_HUNGARIAN
Unicode script "Old Hungarian".- Since:
- 9
-
SIGNWRITING
Unicode script "SignWriting".- Since:
- 9
-
ADLAM
Unicode script "Adlam".- Since:
- 11
-
BHAIKSUKI
Unicode script "Bhaiksuki".- Since:
- 11
-
MARCHEN
Unicode script "Marchen".- Since:
- 11
-
NEWA
Unicode script "Newa".- Since:
- 11
-
OSAGE
Unicode script "Osage".- Since:
- 11
-
TANGUT
Unicode script "Tangut".- Since:
- 11
-
MASARAM_GONDI
Unicode script "Masaram Gondi".- Since:
- 11
-
NUSHU
Unicode script "Nushu".- Since:
- 11
-
SOYOMBO
Unicode script "Soyombo".- Since:
- 11
-
ZANABAZAR_SQUARE
Unicode script "Zanabazar Square".- Since:
- 11
-
HANIFI_ROHINGYA
Unicode script "Hanifi Rohingya".- Since:
- 12
-
OLD_SOGDIAN
Unicode script "Old Sogdian".- Since:
- 12
-
SOGDIAN
Unicode script "Sogdian".- Since:
- 12
-
DOGRA
Unicode script "Dogra".- Since:
- 12
-
GUNJALA_GONDI
Unicode script "Gunjala Gondi".- Since:
- 12
-
MAKASAR
Unicode script "Makasar".- Since:
- 12
-
MEDEFAIDRIN
Unicode script "Medefaidrin".- Since:
- 12
-
ELYMAIC
Unicode script "Elymaic".- Since:
- 13
-
NANDINAGARI
Unicode script "Nandinagari".- Since:
- 13
-
NYIAKENG_PUACHUE_HMONG
Unicode script "Nyiakeng Puachue Hmong".- Since:
- 13
-
WANCHO
Unicode script "Wancho".- Since:
- 13
-
YEZIDI
Unicode script "Yezidi".- Since:
- 15
-
CHORASMIAN
Unicode script "Chorasmian".- Since:
- 15
-
DIVES_AKURU
Unicode script "Dives Akuru".- Since:
- 15
-
KHITAN_SMALL_SCRIPT
Unicode script "Khitan Small Script".- Since:
- 15
-
VITHKUQI
Unicode script "Vithkuqi".- Since:
- 19
-
OLD_UYGHUR
Unicode script "Old Uyghur".- Since:
- 19
-
CYPRO_MINOAN
Unicode script "Cypro Minoan".- Since:
- 19
-
TANGSA
Unicode script "Tangsa".- Since:
- 19
-
TOTO
Unicode script "Toto".- Since:
- 19
-
KAWI
Unicode script "Kawi".- Since:
- 20
-
NAG_MUNDARI
Unicode script "Nag Mundari".- Since:
- 20
-
UNKNOWN
Unicode script "Unknown".
-
-
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
-
of
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.- Parameters:
codePoint
- the character (Unicode code point) in question.- Returns:
- The
UnicodeScript
constant representing the Unicode script of which this character is assigned to. - Throws:
IllegalArgumentException
- if the specifiedcodePoint
is an invalid Unicode code point.- See Also:
-
forName
Returns the UnicodeScript constant with the given Unicode script name or the script name alias. Script names and their aliases are determined by The Unicode Standard. The filesScripts.txt
andPropertyValueAliases.txt
define script names and the script name aliases for a particular version of the standard. TheCharacter
class specifies the version of the standard that it supports.Character case is ignored for all of the valid script names. The en_US locale's case mapping rules are used to provide case-insensitive string comparisons for script name validation.
- Parameters:
scriptName
- AUnicodeScript
name.- Returns:
- The
UnicodeScript
constant identified byscriptName
- Throws:
IllegalArgumentException
- ifscriptName
is an invalid nameNullPointerException
- ifscriptName
is null
-