public class RegexReplace extends CellProcessorAdaptor implements StringCellProcessor
CellProcessorです。next| コンストラクタと説明 |
|---|
RegexReplace(Pattern pattern,
String replacement,
boolean partialMatched)
正規表現と置換文字を指定してインスタンスを作成するコンストラクタ。
|
RegexReplace(Pattern pattern,
String replacement,
boolean partialMatched,
StringCellProcessor next)
正規表現と置換文字を指定してインスタンスを作成するコンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
<T> T |
execute(Object value,
CsvContext context) |
int |
getFlags() |
String |
getRegex() |
String |
getReplacement() |
boolean |
isPartialMatched() |
toString, validateInputNotNullpublic RegexReplace(Pattern pattern, String replacement, boolean partialMatched)
pattern - コンパイル済みの正規表現。replacement - 置換文字列partialMatched - 部分一致で検索するかどうか。NullPointerException - if pattern or replacement is null.public RegexReplace(Pattern pattern, String replacement, boolean partialMatched, StringCellProcessor next)
pattern - コンパイル済みの正規表現。replacement - 置換文字列partialMatched - 部分一致で検索するかどうか。next - チェインの中で呼ばれる次のCellProcessor.NullPointerException - if pattern or replacement is null.public <T> T execute(Object value, CsvContext context)
execute インタフェース内 CellProcessorpublic String getRegex()
public int getFlags()
public String getReplacement()
public boolean isPartialMatched()
Copyright © 2025 mygreen. All rights reserved.