}
}
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory) {
if ((Boolean) eval(expr, start, offset, ctx, factory)) {
return eval(expr, blockStart, blockOffset, ctx, new MapVariableResolverFactory(new HashMap(0), factory));
}
else if (elseIf != null) {
return elseIf.getReducedValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory));
}
else if (elseBlock != null) {
return elseBlock.getValue(ctx, thisValue, new MapVariableResolverFactory(new HashMap(0), factory));
}
else {
return null;
}
}