Generates matcher class head source code for the subpattern of the rulePattern into given source builder
isInitialStatic tells whether the initial static version or a dynamic version after analyze is to be generated.