no ? extends on rule ctx getters.

This commit is contained in:
Terence Parr 2012-11-03 08:57:49 -07:00
parent 8c4edb8fba
commit a9d4aeab71
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ public class ParserRuleContext extends RuleContext {
return getChild(ctxType, i);
}
public <T extends ParserRuleContext> List<? extends T> getRuleContexts(Class<? extends T> ctxType) {
public <T extends ParserRuleContext> List<T> getRuleContexts(Class<? extends T> ctxType) {
if ( children==null ) {
return Collections.emptyList();
}

View File

@ -572,7 +572,7 @@ public <r.ctxName> <r.name>() {
}
>>
ContextRuleListGetterDecl(r) ::= <<
public List\<? extends <r.ctxName>\> <r.name>() {
public List\<<r.ctxName>\> <r.name>() {
return getRuleContexts(<r.ctxName>.class);
}
>>