cascading.operation.regex
Class RegexMatcher

java.lang.Object
  extended by cascading.operation.BaseOperation<C>
      extended by cascading.operation.regex.RegexOperation<Matcher>
          extended by cascading.operation.regex.RegexMatcher
All Implemented Interfaces:
Operation<Matcher>, Serializable
Direct Known Subclasses:
AssertMatches, AssertMatchesAll, RegexFilter

public class RegexMatcher
extends RegexOperation<Matcher>

Class RegexMatcher is the base class for common regular expression operations.

This operation uses Matcher internally, specifically the method Matcher.find().

See Also:
Matcher, Pattern, Serialized Form

Field Summary
protected  boolean negateMatch
          Field removeMatch
 
Fields inherited from class cascading.operation.regex.RegexOperation
patternString
 
Fields inherited from class cascading.operation.BaseOperation
fieldDeclaration, numArgs, trace
 
Fields inherited from interface cascading.operation.Operation
ANY
 
Constructor Summary
protected RegexMatcher(String patternString)
           
protected RegexMatcher(String patternString, boolean negateMatch)
           
 
Method Summary
protected  boolean matchEachElement(Matcher matcher, Tuple input)
          Method matchEachElement ...
protected  int matchEachElementPos(Matcher matcher, Tuple input)
           
protected  boolean matchWholeTuple(Matcher matcher, Tuple input)
          Method matchWholeTuple ...
 void prepare(FlowProcess flowProcess, OperationCall<Matcher> operationCall)
          Method prepare does nothing, and may safely be overridden.
 
Methods inherited from class cascading.operation.regex.RegexOperation
getPattern
 
Methods inherited from class cascading.operation.BaseOperation
cleanup, getFieldDeclaration, getNumArgs, getTrace, printOperationInternal, toString, toStringInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

negateMatch

protected final boolean negateMatch
Field removeMatch

Constructor Detail

RegexMatcher

protected RegexMatcher(String patternString)

RegexMatcher

protected RegexMatcher(String patternString,
                       boolean negateMatch)
Method Detail

prepare

public void prepare(FlowProcess flowProcess,
                    OperationCall<Matcher> operationCall)
Description copied from class: BaseOperation
Method prepare does nothing, and may safely be overridden.

Specified by:
prepare in interface Operation<Matcher>
Overrides:
prepare in class BaseOperation<Matcher>

matchWholeTuple

protected boolean matchWholeTuple(Matcher matcher,
                                  Tuple input)
Method matchWholeTuple ...

Parameters:
matcher -
input - of type Tuple @return boolean

matchEachElement

protected boolean matchEachElement(Matcher matcher,
                                   Tuple input)
Method matchEachElement ...

Parameters:
matcher -
input - of type Tuple @return boolean

matchEachElementPos

protected int matchEachElementPos(Matcher matcher,
                                  Tuple input)


Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.