@return true if exp can hold primitive values.
(Exp exp)
| 37 | * @return {@code true} if {@code exp} can hold primitive values. |
| 38 | */ |
| 39 | public static boolean holdsPrimitive(Exp exp) { |
| 40 | return exp.getType() instanceof PrimitiveType; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @return {@code true} if {@code exp} can hold int values. |