public final class SizeOf implements Function {
public static Object call(PageContext pc , Object object) throws PageException {
return call(pc, object,false);
}
public static Object call(PageContext pc , Object object, boolean complex) throws PageException {
Size size = SizeAndCount.sizeOf(object);
if(!complex)
return Caster.toDouble(size.size);
Struct sct=new StructImpl();
sct.set(KeyConstants._size, Caster.toDouble(size.size));