question: public void parsePattern ( ) { if ( isValidPattern ( patternStr ) ) { patternStr = patternStr . replaceAll ( "\\." , "\\\\." ) ; patternStr = patternStr . replaceAll ( "\\*" , "\\.\\*" ) ; String [ ] patterns = patternStr . split ( "," ) ; StringBuffer str = new StringBuffer ( ) ; for ( int i = 0 ; i < patterns . length ; i ++ ) { str . append ( "(" ) ; str . append ( patterns [ i ] ) ; str . append ( ")*" ) ; } patternStr = str . toString ( ) ; this . pattern = Pattern . compile ( patternStr , Pattern . CASE_INSENSITIVE ) ; } }
target:  Sets the pattern field from the pattern String. Called by TC when instantiating on node.