if(!runtime.isMultValue){
break;
}
}
} else {
throw new ParseException("In case only boolean is possible as condition. Found: "+(cond != null ? cond.getClass() : "NULL"));
}
}
if (count <= 0 && elseCase) {
result.add(num-1);
}
if (result.size() > 0) {
Comparable<?>[] comparables = new Comparable[result.size()];
int j=0;
for(int i:result){
node.jjtGetChild(i).jjtAccept(runtime.ev, null);
Comparable<?> variant = runtime.stack.pop();
comparables[j] = variant;
j++;
}
//runtime.stack.push(variant);
return comparables;
} else {
//runtime.stack.push(null);
return new Comparable<?>[]{""};
}
} else {
throw new ParseException("Few arguments for case");
}
}