列挙 RegexOption
- すべての実装されたインタフェース:
Serializable
,Comparable<RegexOption>
,Constable
,org.thinkit.api.catalog.BiCatalog<RegexOption,Integer>
public enum RegexOption extends Enum<RegexOption> implements org.thinkit.api.catalog.BiCatalog<RegexOption,Integer>
- 導入されたバージョン:
- 1.0.0
-
ネストされたクラスの概要
クラスから継承されたネストされたクラス/インタフェース java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
列挙型定数の概要
列挙定数 列挙型定数 説明 CANON_EQ
Enables canonical equivalence.CASE_INSENSITIVE
Enables case-insensitive matching.COMMENTS
Permits whitespace and comments in pattern.DOTALL
Enables dotall mode.LITERAL
Enables literal parsing of the pattern.MULTILINE
Enables multiline mode.UNICODE_CASE
Enables Unicode-aware case folding.UNICODE_CHARACTER_CLASS
Enables the Unicode version of Predefined character classes and POSIX character classes.UNIX_LINES
Enables Unix lines mode. -
メソッドの概要
修飾子とタイプ メソッド 説明 int
getCode()
The codeInteger
getTag()
The tagstatic RegexOption
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。static RegexOption[]
values()
この列挙型の定数を含む配列を宣言されている順序で 返します。クラスから継承されたメソッド java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
インタフェースから継承されたメソッド org.thinkit.api.catalog.BiCatalog
equalsByCode, equalsByTag, toEnum
-
列挙型定数の詳細
-
UNIX_LINES
Enables Unix lines mode.In this mode, only the
'\n'
line terminator is recognized in the behavior of.
,^
, and$
.Unix lines mode can also be enabled via the embedded flag expression
(?d)
. -
CASE_INSENSITIVE
Enables case-insensitive matching.By default, case-insensitive matching assumes that only characters in the US-ASCII charset are being matched. Unicode-aware case-insensitive matching can be enabled by specifying the
UNICODE_CASE
flag in conjunction with this flag.Case-insensitive matching can also be enabled via the embedded flag expression
(?i)
.Specifying this flag may impose a slight performance penalty.
-
COMMENTS
Permits whitespace and comments in pattern.In this mode, whitespace is ignored, and embedded comments starting with
#
are ignored until the end of a line.Comments mode can also be enabled via the embedded flag expression
(?x)
. -
MULTILINE
Enables multiline mode.In multiline mode the expressions
^
and$
match just after or just before, respectively, a line terminator or the end of the input sequence. By default these expressions only match at the beginning and the end of the entire input sequence.Multiline mode can also be enabled via the embedded flag expression
(?m)
. -
LITERAL
Enables literal parsing of the pattern.When this flag is specified then the input string that specifies the pattern is treated as a sequence of literal characters. Metacharacters or escape sequences in the input sequence will be given no special meaning.
The flags CASE_INSENSITIVE and UNICODE_CASE retain their impact on matching when used in conjunction with this flag. The other flags become superfluous.
There is no embedded flag character for enabling literal parsing.
-
DOTALL
Enables dotall mode.In dotall mode, the expression
.
matches any character, including a line terminator. By default this expression does not match line terminators.Dotall mode can also be enabled via the embedded flag expression
(?s)
. (Thes
is a mnemonic for "single-line" mode, which is what this is called in Perl.) -
UNICODE_CASE
Enables Unicode-aware case folding.When this flag is specified then case-insensitive matching, when enabled by the
CASE_INSENSITIVE
flag, is done in a manner consistent with the Unicode Standard. By default, case-insensitive matching assumes that only characters in the US-ASCII charset are being matched.Unicode-aware case folding can also be enabled via the embedded flag expression
(?u)
.Specifying this flag may impose a performance penalty.
-
CANON_EQ
Enables canonical equivalence.When this flag is specified then two characters will be considered to match if, and only if, their full canonical decompositions match. The expression
"a\u030A"
, for example, will match the string"\u00E5"
when this flag is specified. By default, matching does not take canonical equivalence into account.There is no embedded flag character for enabling canonical equivalence.
Specifying this flag may impose a performance penalty.
-
UNICODE_CHARACTER_CLASS
Enables the Unicode version of Predefined character classes and POSIX character classes.When this flag is specified then the (US-ASCII only) Predefined character classes and POSIX character classes are in conformance with Unicode Technical Standard #18: Unicode Regular Expression Annex C: Compatibility Properties.
The UNICODE_CHARACTER_CLASS mode can also be enabled via the embedded flag expression
(?U)
.The flag implies UNICODE_CASE, that is, it enables Unicode-aware case folding.
Specifying this flag may impose a performance penalty.
-
-
メソッドの詳細
-
values
この列挙型の定数を含む配列を宣言されている順序で 返します。- 戻り値:
- この列挙型の定数を含む、宣言されている順序での配列
-
valueOf
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)- パラメータ:
name
- 返される列挙型定数の名前。- 戻り値:
- 指定した名前の列挙型定数
- 例外:
IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合
-
getCode
public int getCode()The code- 定義:
getCode
インタフェース内org.thinkit.api.catalog.BiCatalog<RegexOption,Integer>
-
getTag
The tag- 定義:
getTag
インタフェース内org.thinkit.api.catalog.BiCatalog<RegexOption,Integer>
-