public class RegexGenerator 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 |
---|
RegexGenerator(Fields fieldDeclaration,
String patternString)
Constructor RegexGenerator creates a new RegexGenerator instance.
|
RegexGenerator(String patternString)
Constructor RegexGenerator creates a new RegexGenerator instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getPattern, getPatternString, hashCode
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="patternString") public RegexGenerator(String patternString)
patternString
- of type String@ConstructorProperties(value={"fieldDeclaration","patternString"}) public RegexGenerator(Fields fieldDeclaration, String patternString)
fieldDeclaration
- of type FieldspatternString
- of type Stringpublic void prepare(FlowProcess flowProcess, OperationCall<Pair<Matcher,Tuple>> operationCall)
BaseOperation
public void operate(FlowProcess flowProcess, FunctionCall<Pair<Matcher,Tuple>> functionCall)
Function
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.