Bug 1161263 - Support class method truncate()

https://github.com/openshift/li/pull/2908