public class RegexReplace extends RegexOperation<Pair<Matcher,Tuple>> implements Function<Pair<Matcher,Tuple>>
null
valued argument passed to the parser will be converted to an empty string (""
) before
the regex is applied.
Any Object value will be coerced to a String type if type information is provided. See the
CoercibleType
interface to control how custom Object types are converted to String
values.patternString
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
RegexReplace(Fields fieldDeclaration,
String patternString,
String replacement)
Constructor RegexReplace creates a new RegexReplace instance.
|
RegexReplace(Fields fieldDeclaration,
String patternString,
String replacement,
boolean replaceAll)
Constructor RegexReplace creates a new RegexReplace instance,
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getReplacement() |
int |
hashCode() |
boolean |
isReplaceAll() |
void |
operate(FlowProcess flowProcess,
FunctionCall<Pair<Matcher,Tuple>> functionCall)
Method operate provides the implementation of this Function.
|
void |
prepare(FlowProcess flowProcess,
OperationCall<Pair<Matcher,Tuple>> operationCall)
Method prepare does nothing, and may safely be overridden.
|
getPattern, getPatternString
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value={"fieldDeclaration","patternString","replacement","replaceAll"}) public RegexReplace(Fields fieldDeclaration, String patternString, String replacement, boolean replaceAll)
fieldDeclaration
- of type FieldspatternString
- of type Stringreplacement
- of type StringreplaceAll
- of type boolean@ConstructorProperties(value={"fieldDeclaration","patternString","replacement"}) public RegexReplace(Fields fieldDeclaration, String patternString, String replacement)
fieldDeclaration
- of type FieldspatternString
- of type Stringreplacement
- of type Stringpublic String getReplacement()
public boolean isReplaceAll()
public void prepare(FlowProcess flowProcess, OperationCall<Pair<Matcher,Tuple>> operationCall)
BaseOperation
public void operate(FlowProcess flowProcess, FunctionCall<Pair<Matcher,Tuple>> functionCall)
Function
public boolean equals(Object object)
equals
in class RegexOperation<Pair<Matcher,Tuple>>
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.