public class PatternEditor extends PropertyEditorSupport
java.util.regex.Pattern, to directly populate a Pattern property.
Expects the same syntax as Pattern's compile method.Pattern,
Pattern.compile(String)| 构造器和说明 |
|---|
PatternEditor()
Create a new PatternEditor with default settings.
|
PatternEditor(int flags)
Create a new PatternEditor with the given settings.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAsText() |
void |
setAsText(String text) |
public PatternEditor()
public PatternEditor(int flags)
flags - the java.util.regex.Pattern flags to applyPattern.compile(String, int),
Pattern.CASE_INSENSITIVE,
Pattern.MULTILINE,
Pattern.DOTALL,
Pattern.UNICODE_CASE,
Pattern.CANON_EQpublic void setAsText(@Nullable
String text)
setAsText 在接口中 PropertyEditorsetAsText 在类中 PropertyEditorSupportpublic String getAsText()
getAsText 在接口中 PropertyEditorgetAsText 在类中 PropertyEditorSupport