rewrite getValue for integer literal.