枚举 SearchMode
- java.lang.Object
-
- java.lang.Enum<SearchMode>
-
- com.mysql.cj.util.SearchMode
-
- 所有已实现的接口:
Serializable,Comparable<SearchMode>
public enum SearchMode extends Enum<SearchMode>
Search mode flags enumeration. Primarily used byStringInspector.
-
-
枚举常量概要
枚举常量 枚举常量 说明 ALLOW_BACKSLASH_ESCAPEAllow backslash escapes.SKIP_BETWEEN_MARKERSSkip between markers (quoted text, quoted identifiers, text between parentheses).SKIP_BLOCK_COMMENTSSkip between block comments ("/* text... *\/") but not between hint blocks.SKIP_HINT_BLOCKSSkip hint blocks ("/*+ text... *\/").SKIP_LINE_COMMENTSSkip line comments ("-- textSKIP_MYSQL_MARKERSSkip MySQL specific markers ("/*!SKIP_WHITE_SPACESkip white space.VOIDDummy search mode.
-
字段概要
字段 修饰符和类型 字段 说明 static Set<SearchMode>__BSE_COM_MYM_HNT_WSSearch mode: allow backslash escape, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.static Set<SearchMode>__BSE_MRK_COM_MYM_HNT_WSSearch mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.static Set<SearchMode>__BSE_MRK_WSSearch mode: allow backslash escape, skip between markers and skip white space.static Set<SearchMode>__COM_MYM_HNT_WSSearch mode: skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.static Set<SearchMode>__FULLFull search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.static Set<SearchMode>__MRK_COM_MYM_HNT_WSSearch mode: skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.static Set<SearchMode>__MRK_WSSearch mode: skip between markers and skip white space.static Set<SearchMode>__NONEEmpty search mode.
-
-
-
枚举常量详细资料
-
ALLOW_BACKSLASH_ESCAPE
public static final SearchMode ALLOW_BACKSLASH_ESCAPE
Allow backslash escapes.
-
SKIP_BETWEEN_MARKERS
public static final SearchMode SKIP_BETWEEN_MARKERS
Skip between markers (quoted text, quoted identifiers, text between parentheses).
-
SKIP_BLOCK_COMMENTS
public static final SearchMode SKIP_BLOCK_COMMENTS
Skip between block comments ("/* text... *\/") but not between hint blocks.
-
SKIP_LINE_COMMENTS
public static final SearchMode SKIP_LINE_COMMENTS
Skip line comments ("-- text...", "# text...").
-
SKIP_MYSQL_MARKERS
public static final SearchMode SKIP_MYSQL_MARKERS
Skip MySQL specific markers ("/*![12345]" and "*\/") but not their contents.
-
SKIP_HINT_BLOCKS
public static final SearchMode SKIP_HINT_BLOCKS
Skip hint blocks ("/*+ text... *\/").
-
SKIP_WHITE_SPACE
public static final SearchMode SKIP_WHITE_SPACE
Skip white space.
-
VOID
public static final SearchMode VOID
Dummy search mode. Does nothing.
-
-
字段详细资料
-
__FULL
public static final Set<SearchMode> __FULL
Full search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space. This is technically equivalent to __BSE_MRK_COM_MYM_HNT_WS.
-
__BSE_MRK_COM_MYM_HNT_WS
public static final Set<SearchMode> __BSE_MRK_COM_MYM_HNT_WS
Search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
-
__MRK_COM_MYM_HNT_WS
public static final Set<SearchMode> __MRK_COM_MYM_HNT_WS
Search mode: skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
-
__BSE_COM_MYM_HNT_WS
public static final Set<SearchMode> __BSE_COM_MYM_HNT_WS
Search mode: allow backslash escape, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
-
__COM_MYM_HNT_WS
public static final Set<SearchMode> __COM_MYM_HNT_WS
Search mode: skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.
-
__BSE_MRK_WS
public static final Set<SearchMode> __BSE_MRK_WS
Search mode: allow backslash escape, skip between markers and skip white space.
-
__MRK_WS
public static final Set<SearchMode> __MRK_WS
Search mode: skip between markers and skip white space.
-
__NONE
public static final Set<SearchMode> __NONE
Empty search mode. There must be at least one element so that the Set may be later duplicated if needed.
-
-
方法详细资料
-
values
public static SearchMode[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (SearchMode c : SearchMode.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static SearchMode valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-