列挙 RegexOption

java.lang.Object
java.lang.Enum<RegexOption>
org.thinkit.common.regex.catalog.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>
The catalog that manages regex option.
導入されたバージョン:
1.0.0
  • 列挙型定数の詳細

    • UNIX_LINES

      public static final RegexOption 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

      public static final RegexOption 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

      public static final RegexOption 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

      public static final RegexOption 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

      public static final RegexOption 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

      public static final RegexOption 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). (The s is a mnemonic for "single-line" mode, which is what this is called in Perl.)

    • UNICODE_CASE

      public static final RegexOption 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

      public static final RegexOption 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

      public static final RegexOption 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

      public static RegexOption[] values()
      この列挙型の定数を含む配列を宣言されている順序で 返します。
      戻り値:
      この列挙型の定数を含む、宣言されている順序での配列
    • valueOf

      public static RegexOption valueOf​(String name)
      指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)
      パラメータ:
      name - 返される列挙型定数の名前。
      戻り値:
      指定した名前の列挙型定数
      例外:
      IllegalArgumentException - この列挙型に、指定した名前の定数がない場合
      NullPointerException - 引数がnullの場合
    • getCode

      public int getCode()
      The code
      定義:
      getCode インタフェース内 org.thinkit.api.catalog.BiCatalog<RegexOption,​Integer>
    • getTag

      public Integer getTag()
      The tag
      定義:
      getTag インタフェース内 org.thinkit.api.catalog.BiCatalog<RegexOption,​Integer>