ConstExprent (int type) { return switch (type) { case CodeConstants.TYPE_INT -> new ConstExprent(VarType.VARTYPE_INT, 0, null); case CodeConstants.TYPE_LONG -> new ConstExprent(VarType.VARTYPE_LONG, 0L, null); case CodeConstants.TYPE_DOUBLE -> new ConstExprent(VarType.VARTYPE_DOUBLE, 0d, null); case CodeConstants.TYPE_FLOAT -> new ConstExprent(VarType.VARTYPE_FLOAT, 0f, null); default -> throw new RuntimeException("Invalid argument: " + type); }; }