MCPcopy
hub / github.com/alibaba/QLExpress / LeftValue

Interface LeftValue

src/main/java/com/alibaba/qlexpress4/runtime/LeftValue.java:12–34  ·  view source on GitHub ↗

assignable value Author: DQinYuan

Source from the content-addressed store, hash-verified

10 * Author: DQinYuan
11 */
12public interface LeftValue extends Value {
13
14 Class<?> getDefinedType();
15
16 default void set(Object newValue, ErrorReporter errorReporter) {
17 Class<?> defineType = getDefinedType();
18 ObjTypeConvertor.QConverted result = ObjTypeConvertor.cast(newValue, defineType);
19 if (!result.isConvertible()) {
20 throw errorReporter.reportFormat(QLErrorCodes.INCOMPATIBLE_ASSIGNMENT_TYPE.name(),
21 QLErrorCodes.INCOMPATIBLE_ASSIGNMENT_TYPE.getErrorMsg(),
22 newValue == null ? "null" : newValue.getClass().getName(),
23 defineType.getName());
24 }
25 setInner(result.getConverted());
26 }
27
28 void setInner(Object newValue);
29
30 /**
31 * @return Nullable
32 */
33 String getSymbolName();
34}

Callers 8

executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95
executeMethod · 0.95

Implementers 6

MockLeftValuesrc/test/java/com/alibaba/qlexpress4/r
ListItemValuesrc/main/java/com/alibaba/qlexpress4/r
AssignableDataValuesrc/main/java/com/alibaba/qlexpress4/r
FieldValuesrc/main/java/com/alibaba/qlexpress4/r
ArrayItemValuesrc/main/java/com/alibaba/qlexpress4/r
MapItemValuesrc/main/java/com/alibaba/qlexpress4/r

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…