public Object getConstantValue() {
        Object val = sym.getConstValue();
        // val may be null, indicating that this is not a constant.

        return Constants.decodeConstant(val, sym.type);
    }