public String evaluate ( Matcher rule , Matcher cond , Resolver resolver ) { StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < elements . length ; i ++ ) { buf . append ( elements [ i ] . evaluate ( rule , cond , resolver ) ) ; } return buf . toString ( ) ; }
Evaluate the substitution based on the context