public void applyPattern(String pattern){
  this.pattern=pattern;
  if (patternTokens != null) {
    patternTokens.clear();
    patternTokens=null;
  }
}

public void applyPattern ( String pattern ) { this . pattern = pattern ; if ( patternTokens != null ) { patternTokens . clear ( ) ; patternTokens = null ; } }
apply a new pattern .
