if(ty!=null) {
ClassOrInterfaceTypeContext t = ty.getRuleContext(ClassOrInterfaceTypeContext.class, 0);
if(t!=null) {
type=t.getText();
} else {
PrimitiveTypeContext pt = ty.getRuleContext(PrimitiveTypeContext.class, 0);
if(pt!=null)
type=pt.getText();
}
}
List<VariableDeclaratorsContext> vars = ctx.getRuleContexts(VariableDeclaratorsContext.class);
for(VariableDeclaratorsContext vc : vars) {
List<VariableDeclaratorContext> v = vc.getRuleContexts(VariableDeclaratorContext.class);