getLiteral

inline fun <T> getLiteral(): T?

Get the literal value of the expression as given type.

Return null if expression is not literal or can not be casted to given type.