This actually not doable nor planned in fact. Would probably require to split into two rules, one about string with tag java7 and the other one on integers with no particular tags.
\[~nicolas.peru] actually Java analyzer should already know both source and target Java versions (since a long time), so that this knowledge can be utilized in rules.