public class TextReplaceMatchingRegex extends CompositeExpression implements TextExpression
| Constructor and Description |
|---|
TextReplaceMatchingRegex(Expression toCheckText,
TDText regexp,
TDText replacing)
The regexp_replace function provides substitution of new text for substrings that match POSIX regular expression patterns.
|
TextReplaceMatchingRegex(Expression toCheckText,
TDText regexp,
TDText replacing,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Expression> |
getLeavesByType(Class<? extends LeafExpression> type) |
Operator |
getOperator() |
TDText |
getRegexp() |
TDText |
getReplacingValue() |
DataType |
getReturnedDataType()
Validates the returned data type of the Expression.
|
Expression |
getToCheckText() |
int |
hashCode() |
boolean |
isCaseSensitive() |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setRegexp(TDText regexp) |
void |
setReplacingValue(TDText replacingValue) |
void |
setToCheckText(Expression toCheckText) |
String |
toString() |
void |
validate()
Validates correctness of the Expression
|
clone, getAppliableOperators, getExpressionsByCategorypublic TextReplaceMatchingRegex(Expression toCheckText, TDText regexp, TDText replacing)
toCheckText - regexp - replacing - public TextReplaceMatchingRegex(Expression toCheckText, TDText regexp, TDText replacing, boolean caseSensitive)
public Operator getOperator()
getOperator in class CompositeExpressionpublic DataType getReturnedDataType()
ExpressiongetReturnedDataType in class Expressionpublic void setCaseSensitive(boolean caseSensitive)
public boolean isCaseSensitive()
public void validate()
throws MalformedExpressionException
Expressionvalidate in class ExpressionMalformedExpressionExceptionpublic Expression getToCheckText()
public void setToCheckText(Expression toCheckText)
toCheckText - the toCheckText to setpublic TDText getRegexp()
public void setRegexp(TDText regexp)
regexp - the regexp to setpublic TDText getReplacingValue()
public void setReplacingValue(TDText replacingValue)
replacingValue - the replacingValue to setpublic List<Expression> getLeavesByType(Class<? extends LeafExpression> type)
getLeavesByType in class ExpressionCopyright © 2017. All Rights Reserved.