Is there an easy way to capture types? I cannot do simple things, for example, to use variable expressions nearby, for example $mapType$$mapEnd$ , to do a simple replacement. Is there a reason for this? That is, if I have one expression, say .*\s*.*abc , and I break it into two variables,. .*\s* and .*abc , the expression does not match the text. What could be wrong?
Example template: $var1$ = $impl$ Example second template: $var1$ = $type$$implEnd$
If $impl$ is a full regular expression, placing $type$ and $implEnd$ together with half the matching regular expression causes the patterns to not match. What could be wrong?
I am trying to do this conversion:
List<String,Object> list = new ArrayList<String,Object>(); List<String,Object> list = Lists.newArrayList();
It is clear that I need to somehow capture the "Array", as well as only those types that have no arguments.
source share