org.apache.poi.ss.formula.functions
Class Countif.StringMatcher

java.lang.Object
  extended by org.apache.poi.ss.formula.functions.Countif.StringMatcher
All Implemented Interfaces:
CountUtils.I_MatchPredicate
Enclosing class:
Countif

public static final class Countif.StringMatcher
extends java.lang.Object


Constructor Summary
Countif.StringMatcher(java.lang.String value, org.apache.poi.ss.formula.functions.Countif.CmpOp operator)
           
 
Method Summary
protected  java.lang.String getValueText()
           
static java.util.regex.Pattern getWildCardPattern(java.lang.String value)
          Translates Excel countif wildcard strings into java regex strings
 boolean matches(ValueEval x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Countif.StringMatcher

public Countif.StringMatcher(java.lang.String value,
                             org.apache.poi.ss.formula.functions.Countif.CmpOp operator)
Method Detail

getValueText

protected java.lang.String getValueText()

matches

public boolean matches(ValueEval x)

getWildCardPattern

public static java.util.regex.Pattern getWildCardPattern(java.lang.String value)
Translates Excel countif wildcard strings into java regex strings

Returns:
null if the specified value contains no special wildcard characters.