checkContextPrimitive(focus, "length", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer); return focus; case ToInteger : { checkContextPrimitive(focus, "toInteger", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer); checkContextPrimitive(focus, "toDecimal", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Decimal); checkContextPrimitive(focus, "toString", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_String); checkContextPrimitive(focus, "toQuantity", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Quantity); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_DateTime); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Time); checkContextPrimitive(focus, exp.getFunction().toCode(), true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);
checkContextPrimitive(focus, "length", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer); return focus; case ToInteger : { checkContextPrimitive(focus, "toInteger", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Integer); checkContextPrimitive(focus, "toDecimal", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Decimal); checkContextPrimitive(focus, "toString", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_String); checkContextPrimitive(focus, "toQuantity", true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Quantity); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_DateTime); checkContextPrimitive(focus, "toBoolean", false); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Time); checkContextPrimitive(focus, exp.getFunction().toCode(), true); return new TypeDetails(CollectionStatus.SINGLETON, TypeDetails.FP_Boolean);