言語

Pattern クラス

定義

正規表現のコンパイル済み表現。

[Android.Runtime.Register("java/util/regex/Pattern", DoNotGenerateAcw=true)]
public sealed class Pattern : Java.Lang.Object, IDisposable, Java.IO.ISerializable
[<Android.Runtime.Register("java/util/regex/Pattern", DoNotGenerateAcw=true)>]
type Pattern = class
    inherit Object
    interface ISerializable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
継承
属性
実装

注釈

正規表現のコンパイル済み表現。

文字列として指定された正規表現は、最初にこのクラスのインスタンスにコンパイルする必要があります。 その後、結果のパターンを使用して、任意の java.lang.CharSequence 文字シーケンスを正規表現と照合できる Matcher オブジェクトを作成できます。 マッチの実行に関係するすべての状態はマッチャーに存在するため、多くのマッチャーが同じパターンを共有できます。

一般的な呼び出しシーケンスは、

<blockquote>

Pattern p = Pattern.{@link #compile compile}("a*b");
            Matcher m = p.{@link #matcher matcher}("aaaaab");
            boolean b = m.{@link Matcher#matches matches}();

</blockquote>

#matches matches メソッドは、正規表現が 1 回だけ使用される場合に便利な方法として、このクラスによって定義されます。 このメソッドは式をコンパイルし、1 回の呼び出しで入力シーケンスを照合します。 ステートメント

<blockquote>

boolean b = Pattern.matches("a*b", "aaaaab");

</blockquote>

は上記の 3 つのステートメントと同じですが、繰り返し一致する場合は、コンパイルされたパターンを再利用できないので効率が低下します。

このクラスのインスタンスは不変であり、複数の同時実行スレッドで安全に使用できます。 Matcher クラスのインスタンスは、このような使用には安全ではありません。

<h2>"sum">正規表現コンストラクトの加算</h2>

<table class="borderless"><caption style="display:none">Regular 式コンストラクト, および一致するもの</caption><thead style="text-align:left"><tr><th id="construct">Construct</th><th id="matchs">Matches</th></tr></thead><tbody style="text-align:left">

<tr><th colspan="2" style="padding-top:20px" id="characters">Characters</th></tr>

trth style="vertical-align:top; font-weight: normal" id="x"x/thtd headers="matches characters x"文字 x/td/trtrth style="vertical-align:top; font-weight: normal" id="backslash"/thtd headers="文字の円記号に一致します"バックスラッシュ文字/td/trtrth style="vertical-align:top; font-weight: normal" id="octal_n"n/thtd headers="matches characters octal_n"8 進数の値を持つ文字 n (0&nbsp;&nbsp;n&nbsp;&nbsp;7)/td/trtrth style="vertical-align:top; font-weight: normal" id="octal_nn"nn/thtd headers="matches characters octal_nn"8 進数nn (0&nbsp;&nbsp;n&nbsp;&nbsp;7)/td/trtrth style="vertical-align:top; font-weight: normal" id="octal_nnn"mnn/thtd headers="matches characters octal_nnn"8 進数mnn (0&nbsp;&nbsp;m&&nbsp;3、0&nbsp;&nbsp;n&nbsp;&nbsp;7)/td/trtrth style="vertical-align:top; font-weight: normal" id="hex_hh"h/thtd headers="hex_hh"16 進数の値を持つ文字に一致hh/td/trtrth style="vertical-align:top; font-weight: normal" id="hex_hhhh"hhh/thtd headers="matches characters hex_hhhh"文字 withhexadecimal&nbsp;value&nbsp;hhhh/td/trtrth style="vertical-align:top; font-weight: normal" id="hex_h_h"{h...h}/thtd headers="hex_h_h"16 進数の値を持つ文字に一致h...h ( &>=>h...h&nbsp;<=>nbsp;)/td/trtrth style="vertical-align:top; font-weight: normal" id="unicode_name"name/thtd headers="unicode_name" Unicode 文字名 'name'/td/trtrth style="vertical-align:top; font-weight:normal" id="tab"/thtd headers="matches characters tab"タブcharacter ()/td/trtrth style="vertical-align:top; font-weight:normal" id="newline"/thtd headers="matches characters newline"The newline (line feed) character ()/td/trtrth style="vertical-align:top; font-weight:normal" id="return"/thtd headers="matches characters return"復帰文字 ()/td/trtrth style="vertical-align:top; font-weight:normal" id="form_feed"/thtd headers="form_feed"フォーム フィード文字 ()/td/trtrth style="vertical-align:top; font-weight:normal" id="bell"/thtd headers="matches characters bell"アラート (ベル) 文字 ()/td/trtrth style="vertical-align:top; font-weight:normal" id="escape"/thtd headers="matches characters escape"エスケープ文字 ()/td/trtrth style="vertical-align:top; font-weight:normal" id="ctrl_x"x/thtd headers="matches characters ctrl_x"x/td/tr に対応する制御文字

<tr><th colspan="2" style="padding-top:20px" id="classes">Character classes</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="simple">[abc]</th><td headers="classes simple">a, b, or c (simple class)</td></tr><><th style="vertical-align:top; font-weight:normal" id="negation">[^abc]</th><td headers="matches classes negation">any character except a, b, or c (negation)</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="range">[a-zA-Z]</th><td headers=">a から z または A から Z, 包括 (range)</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="union">[a-d[m-p]]</th><td headers="matches classes union">a through d, or m through p: [a-dm-p] (union)</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="intersection">[a-z&&[def]]</th><td headers="matches classes intersection">d, e, or f (intersection)</tr><tr><th style="vertical-align:top; font-weight:normal" id="subtraction1">[a-z&&[^bc]]</th><td headers="> と a: z (減算)b/tdc/tr[ad-z]<tr を除き、クラスの減算 1"><>から<まで一致します><th style="vertical-align:top;font-weight:normal" id="subtraction2">[a-z&&[^m-p]]</th><td headers="クラス subtraction2">a から z まで一致します。m: p(減算)[a-lq-z]/td</tr を通じて><されません>

<tr><th colspan="2" style="padding-top:20px" id="predef">Predefined 文字クラス</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="any">.</th><td headers="match any">Any character (may or not match line terminators))</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="digit">\d</th><td headers="matches predef digit">A digit: \p{IsDigit}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="non_digit">\D</th><td headers="matches predef non_digit">A non-digit: [^\d]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="horiz_white">\h</th><td headers="predef horiz_white">A horizontal whitespace character: [ \t\xA0&#92;u1680&#92;u180e&#92;u2000-&#92;u200a&#92;u202f&#92;u205f&#92;u3000]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="non_horiz_white">\H</th><ttd headers="predef non_horiz_white">A 非水平空白文字と一致します: [^\h]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="white">\s</th><td headers="matches predef white">A 空白文字: \p{IsWhite_Space}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="non_white">\S</th><td headers="matches predef non_white">A空白以外の文字: [^\s]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="vert_white">\v</th><td headers="predef vert_white">A vertical whitespace character: [\n\x0B\f\r\x85&#92;u2028&#92;u2029]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="non_vert_white">\V</th><td headers="matches predef non_vert_white">A 非垂直空白文字character: [^\v]</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="word">\w</th><td headers="matches predef word">A word character: [\p{alpha\p{gc=Mark}\p{gc=Connector_Punctuation}\p{Join_Control}]}</td></tr><><th style="vertical-align:top; font-weight:normal" id="non_word">\W</th><td headers="matches predef non_word">A 非単語文字: [^\w]</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="posix"><b>POSIX 文字クラス (Unicode 対応)</b></th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="Lower">\p{Lower}</th><td headers="matches posix Lower">A lower-case alphabetic character: \p{IsLowercase}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Upper">\p{Upper}</th><td headers="matches posix Upper">An upper-case alphabetic character:\p{IsUppercase}</td></tr><tr><th style="vertical-align:top; font-weight:normal"id="ASCII">\p{ASCII}</th><td headers="posix ASCII">All ASCII:[\x00-\x7F]</td></tr><tr><th style="vertical-align:top; に一致します。 font-weight:normal" id="Alpha">\p{Alpha}</th><td headers="matches posix Alpha">An alphabetic character:[\p{IsAlphabetic]}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Digit">\p{IsDigit}</th><td headers="matches posix Digit">10 進数: \p{gc=Decimal_Number}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Alnum">\p{Alnum}</th><td headers="matches posix Alnum">An 英数字:[\p{Alpha\p{Digit}]}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Punct">\p{Punct}</th><td headers="matches posix Punct">Punctuation: \p{IsPunctuation}</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="Graph">\p{Graph}</th><td headers="matches posix Graph">A visible character: [^p{space\p{gc=Surrogate}\p{gc=Unassigned}]}</td></tr><><th style="vertical-align:top; font-weight:normal" id="Print">\p{Print}</th><td headers="matches posix Print">A printable character: [\p{Graph\p{Blank}&&[^\p{Cntrl}]}</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="Blank">\p{Blank}</th><td headers="matches posix Blank">A space or a tab: [\p{gc=Space_Separator\N{CHARACTER TABULATION}]}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Cntrl">\p{Cntrl}</th><td headers="matches posix Cntrl">A control character: \p{gc=Control}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="XDigit">\p{XDigit}</th><td headers="matches posix XDigit">A 16 進数: [\p{gc=Decimal_Number\p{IsHex_Digit}]}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Space">\p{Space}</th><td headers="と一致します posix Space">A 空白文字: \p{IsWhite_Space}</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="PosixCompatible">POSIX-Compatibleexpression</th><td headers="matches posix PosixCompatible">See Unicode documentation</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="java">java.lang.Character classes (simple java character type)</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="javaLowerCase">\p{javaLowerCase}</th><td headers="java.lang.Character.isLowerCase()>Equivalent to java.lang.Character.isLowerCase()</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="javaUpperCase">\p{javaUpperCase}</th><td headers="matches java javaUpperCase">Equivalent to java.lang.Character.isUpperCase()</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="javaWhitespace">\p{javaWhitespace}</th><td headers="matches java javaWhitespace">Equivalent to java.lang.Character.isWhitespace()</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="javaMirrored">\p{javaMirrored}</th><td headers="matches java javaMirrored">Equivalent to java.lang.Character.isMirrored()</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="unicode"> Unicode スクリプト、ブロック、カテゴリ、バイナリ プロパティのクラス</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="IsLatin">\p{IsLatin}</th><td headers="matches unicode IsLatin">A Latin script character (script)</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="InGreek">\p{InGreek}</th><td headers="matches unicode InGreek">A character in the Greek block (block)</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="Lu">\p{Lu}</th><td headers="unicode Lu">An uppercase letter (category)</td></tr><tr><th style="vertical-align:top; に一致します。 font-weight:normal" id="IsAlphabetic">\p{IsAlphabetic}</th><td headers="unicode IsAlphabetic">An alphabetic character (binary property)</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="Sc">\p{Sc}</th><td headers="unicode Sc">A currency symbol</td></tr><tr><th style="vertical-align:top; と一致します。 font-weight:normal" id="not_InGreek">\P{InGreek}</th><td headers="ギリシャ語ブロック (否定)not_InGreek ></td></tr><tr><th style="vertical-align:top; font-weight:normal" id="not_uppercase">[\p{L&>[^\p{Lu}]}</th><td headers="unicode not_uppercase">大文字 (減算)</td></tr を除く>

<tr><th colspan="2" style="padding-top:20px" id="bounds">Boundary matchers</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="begin_line">^</th><td headers="matches bounds begin_line">行の先頭</td></tr><><th style="vertical-align:top; font-weight:normal" id="end_line">$</th><td headers=end_line">行の終わり</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="word_boundary">\b</th><td headers="境界word_boundary">A ワード境界</td></tr><tr><th style="vertical-align:top; と一致します。 font-weight:normal" id="non_word_boundary">\B</th><td headers=">A 非ワード境界</td></tr><tr><th style="vertical-align:top; の non_word_boundary境界に一致します。 font-weight:normal" id="begin_input">\A</th><td headers="matches boundsbegin_input">入力の先頭</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="end_prev_match">\G</th><td headers="境界に一致end_prev_match">前の一致の終了</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="end_input_except_term">\Z</th><td headers="matches bounds end_input_except_term">入力の終わりですが、最後のターミネータの場合は if any</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="end_input">\z</th><td headers="matches bounds end_input">入力の末尾</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="linebreak">Linebreak matcher</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="any_unicode_linebreak">\R</th><td headers="matches linebreak any_unicode_linebreak">Any Unicode linebreak sequence, is equivalent to &#92;u000D&#92;u000A|[&#92;u000A&#92;u000B&#92;u000C&#92;u000D&#92;u0085&#92;u2028&#92;u2029] </td></tr>

<tr><th colspan="2" style="padding-top:20px" id="grapheme">Unicode Extended Grapheme matcher</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="grapheme_any">\X</th><td headers="grapheme grapheme_any">Any Unicode 拡張 grapheme cluster</td></tr と一致します>

<tr><th colspan="2" style="padding-top:20px" id="greedy">Greedy 量指定子</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="greedy_once_or_not">X?</th><td headers="matches greedy greedy_once_or_not">X, 1 回またはまったく一致しないか</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="greedy_zero_or_more">X*</th><td headers="greedy greedy_zero_or_more">X, zero or more times</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="greedy_one_or_more">X+</th><td headers="matches greedy greedy_one_or_more">X, 1 回以上</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="greedy_exactly">X{n}</th><td headers="matches greedy greedy_exactly">X, exactly n times</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="greedy_at_least">X{n,}</th><td headers="matches greedy greedy_at_least">X, 少なくとも n 回</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="greedy_at_least_up_to">X{n,m}</th><td headers="matches greedy greedy_at_least_up_to">X, least n but not than m times</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="reluc">Reluctant 量指定子</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="reluc_once_or_not">X??</th><td headers="reluc reluc_once_or_not">X, once or not all</td></tr><><th style="vertical-align:top; font-weight:normal" id="reluc_zero_or_more">X*?</th><td headers="reluc reluc_zero_or_more">X, 0 回以上</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="reluc_one_or_more">X+?</th><td headers="reluc reluc_one_or_more">X, 1 回以上一致します</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="reluc_exactly">X{n}?</th><td headers="reluc reluc_exactly">X, exactly n times</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="reluc_at_least">X{n,}?</th><td headers="matches reluc reluc_at_least">X, 少なくとも n 回</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="reluc_at_least_up_to">X{n,m}?</th><td headers="matches reluc reluc_at_least_up_to">X, least nただし、m 回以下</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="poss">Possessive 量指定子</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="poss_once_or_not">X?+</th><td headers="poss poss_once_or_not">X, once or not all</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="poss_zero_or_more">X*+</th><td headers="poss poss_zero_or_more">X, 0 回以上</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="poss_one_or_more">X++</th><td headers="poss poss_one_or_more">X, 1 回以上一致します</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="poss_exactly">X{n}+</th><td headers="poss poss_exactly">X, exactly n times</td></tr><tr><th style="vertical-align:top;font-weight:normal" id="poss_at_least">X{n,}+</th><td headers="matches poss poss_at_least">X, 少なくとも n 回</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="poss_at_least_up_to">X{n,m}+</th><td headers="matches poss poss_at_least_up_to">X, least n ただし、 m 回以下</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="logical">Logical 演算子</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="concat">XY</th><td headers="matches logical concat">X とそれに続く Y</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="alternate">X|Y</th><td headers="matches logical alternate">Y<td></tr><tr><th style="vertical-align:top;font-weight:normal" id="group">(X)</th><td headers="matches logical group">X, as a capturing group</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="backref">Back references</th></tr>

trth style="vertical-align:top; font-weight:normal" id="back_nth"n/thtd headers="matches backref back_nth"Wha nsupth/sup キャプチャ グループが一致/td/trtrth style="vertical-align:top; font-weight:normal" id="back_named"k<name>/thtd headers="matchs backref back_named"名前付きキャプチャ グループ "name" が一致しました。 API 26 以降でのみ使用できます</td></tr>

<tr><th colspan="2" style="padding-top:20px" id="quote">Quotation</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="quote_follow">\</th><td headers="matches quote quote_follow">Nothing, ただし、次の文字を引用符で囲みます</td></tr><tr><th style="vertical-align:top; font-weight:normal" id="quote_begin">\Q</th><td headers="quote quote_begin">Nothing と一致しますが、 \E</td></tr><trtr><th style="vertical-align:top;font-weight:normal" id="quote_end">\E</th><td headers="quote quote_end">Nothing と一致しますが、 \Q</td></tr><!-- Metachars: !$()*+.<>?[\]^{|}-->

<tr><th colspan="2" style="padding-top:20px" id="special">Special constructs (named-capturing and non-capturing))</th></tr>

<tr><th style="vertical-align:top; font-weight:normal" id="named_group">(?&lt;<a href="#groupname">name</a>&gt;X)</th><td headers="は、名前付きキャプチャ グループとして特殊なnamed_group">X" と一致します。 API 26 以降でのみ使用できます。/td/trtrth style="vertical-align:top; font-weight:normal" id="non_capture_group"X/thtd headers="matches special non_capture_group"X, 非キャプチャ グループとして/td/trtrth style="vertical-align:top; font-weight:normal" id="flags"/th sU on - off/td/trtrth style="vertical-align:top; font-weight:normal" id="non_capture_group_flags"X&nbsp;>/thtd headers="は、特定のフラグ du/a U on - off/td/trtrth style="vertical-align:top を持つ非キャプチャ グループとして、特殊なnon_capture_group_flags"X と一致します。 font-weight:normal" id="pos_lookahead"c(?=/ciX/ic)// c/thtd headers="pos_lookahead"iX/i と、ゼロ幅の正の先読み/td で一致します/trtrth style="vertical-align:top; font-weight:normal" id="neg_lookahead"c(?!/ciX/ic)/c/thtd headers="matches special neg_lookahead"iX/i, ゼロ幅の負の先読み/td/trtrth style="vertical-align:top; font-weight:normal" id="pos_lookbehind"c(?<=/ciX/ic )/c/thtd headers="pos_lookbehind"iX/i にゼロ幅で一致しますpositive lookbehind/td/trtrth style="vertical-align:top; font-weight:normal" id="neg_lookbehind"c(?/ciX/ic)/c/thtd headers="matches special neg_lookbehind"iX/i, via zero-width negative lookbehind/td/trtrth style="vertical-align:top; font-weight:normal" id="indep_non_capture_group"c(?>/ciX/ic)/c/thtd headers="iX/i に、独立した非キャプチャ グループとして indep_non_capture_group一致します/td/tr

</tbody></table>

<hr>

<h2>"bs">円記号、エスケープ、および引用符</h2>

円記号 ('\') は、上記の表で定義されているようにエスケープされたコンストラクトを導入し、エスケープされていないコンストラクトとして解釈される文字を引用符で囲むのに役立ちます。 したがって、式 \\ は 1 つの円記号に一致し、 \{ は左中かっこと一致します。

エスケープされたコンストラクトを示さないアルファベット文字の前に円記号を使用するとエラーになります。これらは、正規表現言語の将来の拡張のために予約されています。 円記号は、その文字がエスケープされていないコンストラクトの一部であるかどうかに関係なく、非アルファベット文字の前に使用できます。

Javaソース コード内の文字列リテラル内の円記号は、<cite>Java言語仕様</引用>で Unicode エスケープのいずれかとして解釈されます (セクション {

1.4 で追加されました。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

フィールド

名前 説明
CanonEq
古い.

このフラグは Android ではサポートされていません。

CaseInsensitive
古い.

大文字と小文字を区別しない照合を有効にします。

Comments
古い.

パターン内の空白とコメントを許可します。

Dotall
古い.

dotall モードを有効にします。

Literal
古い.

パターンのリテラル解析を有効にします。

Multiline
古い.

複数行モードを有効にします。

UnicodeCase
古い.

Unicode 対応の大文字と小文字の折りたたみを有効にします。

UnicodeCharacterClass
古い.

このフラグは Android ではサポートされておらず、Unicode 文字クラスは常に使用されます。

UnixLines
古い.

Unix 行モードを有効にします。

プロパティ

名前 説明
Class

この Objectのランタイム クラスを返します。

(継承元 Object)
Handle

基になる Android インスタンスへのハンドル。

(継承元 Object)
JniIdentityHashCode

相互運用ランタイムによってこのJava ピアに割り当てられた ID ハッシュ コードを取得します。

(継承元 Object)
JniManagedPeerState

正規表現のコンパイル済み表現。

(継承元 JavaObject)
JniPeerMembers

正規表現のコンパイル済み表現。

PeerReference

このJava ピアの JNI オブジェクト参照を取得します。

(継承元 Object)
ThresholdClass

この API は Android 用 Mono インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

(継承元 Object)
ThresholdType

この API は Android 用 Mono インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

(継承元 Object)

メソッド

名前 説明
AsMatchPredicate()

このパターンが特定の入力文字列と一致するかどうかをテストする述語を作成します。

AsPredicate()

特定の入力文字列でこのパターンが見つかったかどうかをテストする述語を作成します。

Clone()

このオブジェクトのコピーを作成して返します。

(継承元 Object)
Compile(String, RegexOptions)

指定された正規表現を、指定されたフラグを持つパターンにコンパイルします。

Compile(String)

指定された正規表現をパターンにコンパイルします。

Construct(JniObjectReference, JniObjectReferenceOptions)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
Dispose()

このJava ピアによって保持されているリソースを解放します。

(継承元 Object)
Dispose(Boolean)

このJava ピアによって保持されているリソースを解放します。

(継承元 Object)
DisposeUnlessReferenced()

正規表現のコンパイル済み表現。

(継承元 JavaObject)
Equals(Object)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
Equals(Object)

他のオブジェクトがこのオブジェクトと "等しい" かどうかを示します。

(継承元 Object)
Flags()

このパターンの一致フラグを返します。

GetHashCode()

オブジェクトのハッシュ コード値を返します。

(継承元 Object)
InvokePattern()

このパターンのコンパイル元の正規表現を返します。

JavaFinalize()

オブジェクトへの参照がなくなったとガベージ コレクションによって判断されたときに、オブジェクトのガベージ コレクターによって呼び出されます。

(継承元 Object)
Matcher(ICharSequence)

このパターンに対して指定された入力と一致するマッチャーを作成します。

Matcher(String)

このパターンに対して指定された入力と一致するマッチャーを作成します。

Matches(String, ICharSequence)

指定された正規表現をコンパイルし、指定された入力を照合しようとします。

Matches(String, String)

指定された正規表現をコンパイルし、指定された入力を照合しようとします。

Notify()

このオブジェクトのモニターで待機している 1 つのスレッドを起動します。

(継承元 Object)
NotifyAll()

このオブジェクトのモニターで待機しているすべてのスレッドを起動します。

(継承元 Object)
Quote(String)

指定したStringのリテラル パターンStringを返します。

SetHandle(IntPtr, JniHandleOwnership)

Handle プロパティを設定します。

(継承元 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
Split(ICharSequence, Int32)

このパターンの一致を中心に、指定された入力シーケンスを分割します。

Split(ICharSequence)

このパターンの一致を中心に、指定された入力シーケンスを分割します。

Split(String, Int32)

このパターンの一致を中心に、指定された入力シーケンスを分割します。

Split(String)

このパターンの一致を中心に、指定された入力シーケンスを分割します。

ToArray<T>()

このJava配列ラッパーからマネージド配列を作成します。

(継承元 Object)
ToString()

オブジェクトの文字列表現を返します。

(継承元 Object)
UnregisterFromRuntime()

相互運用ランタイムからこのJava ピアの登録を解除します。

(継承元 Object)
Wait()

現在のスレッドが起動するまで待機します。通常は、 <em>notified</em> または <em>interrupted</em>。

(継承元 Object)
Wait(Int64, Int32)

現在のスレッドは、通常、 <em>notified</em> または <em>interrupted</em>、または一定のリアルタイムが経過するまで、起動されるまで待機します。

(継承元 Object)
Wait(Int64)

現在のスレッドは、通常、 <em>notified</em> または <em>interrupted</em>、または一定のリアルタイムが経過するまで、起動されるまで待機します。

(継承元 Object)

明示的なインターフェイスの実装

名前 説明
IJavaPeerable.Disposed()

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.Finalized()

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

正規表現のコンパイル済み表現。

(継承元 JavaObject)
IJavaPeerable.UnregisterFromRuntime()

正規表現のコンパイル済み表現。

拡張メソッド

名前 説明
GetJniTypeName(IJavaPeerable)

インスタンス selfの型の JNI 名を取得します。

JavaAs<TResult>(IJavaPeerable)

selfを強制的にTResult入力し、強制型がJava側で有効であることを確認します。

JavaCast<TResult>(IJavaObject)

Android ランタイムチェック型変換を実行します。

JavaCast<TResult>(IJavaObject)

正規表現のコンパイル済み表現。

TryJavaCast<TResult>(IJavaPeerable, TResult)

selfを強制的にTResult入力し、強制型がJava側で有効であることを確認します。

適用対象