public class DefaultPatternDefine extends Object implements PatternDefine
Constructor and Description |
---|
DefaultPatternDefine() |
Modifier and Type | Method and Description |
---|---|
String |
getFullMatchText(String string)
根据正文返回完整部分
|
Pattern |
getPattern()
返回正则匹配
|
String |
getPureMatchText(String string)
返回正文部分
|
char |
getSplitChar()
返回分隔符
|
void |
setPatternString(String patternString)
设置正则表达式中间部分
|
void |
setPostfixPatternString(String postfixPatternString)
设置后缀
|
void |
setPrefixPatternString(String prefixPatternString)
设置前缀
|
void |
setSplitChar(char splitChar)
设置域分隔符
|
public Pattern getPattern()
PatternDefine
getPattern
in interface PatternDefine
public void setPrefixPatternString(String prefixPatternString)
PatternDefine
setPrefixPatternString
in interface PatternDefine
public void setPostfixPatternString(String postfixPatternString)
PatternDefine
setPostfixPatternString
in interface PatternDefine
public void setPatternString(String patternString)
PatternDefine
setPatternString
in interface PatternDefine
public String getPureMatchText(String string)
PatternDefine
getPureMatchText
in interface PatternDefine
public String getFullMatchText(String string)
PatternDefine
getFullMatchText
in interface PatternDefine
public char getSplitChar()
PatternDefine
getSplitChar
in interface PatternDefine
public void setSplitChar(char splitChar)
PatternDefine
setSplitChar
in interface PatternDefine
Copyright © 2006–2018 TinyGroup. All rights reserved.