/** @since 0.17 or earlier */ @Override public final void setInternal(DynamicObject store, Object value) throws IncompatibleLocationException { if (!canStore(value)) { CompilerDirectives.transferToInterpreter(); throw new UnsupportedOperationException(); } }
@Override public final void setInternal(DynamicObject store, Object value) throws IncompatibleLocationException { if (!canStoreFinal(store, value)) { CompilerDirectives.transferToInterpreter(); throw new UnsupportedOperationException(); } }
public JSONObjectBuilder dumpLocation(Location location) { JSONObjectBuilder obj = JSONHelper.object(); obj.add("type", (location instanceof TypedLocation ? ((TypedLocation) location).getType() : Object.class).getName()); // if (location instanceof Locations.FieldLocation) { // obj.add("offset", ((Locations.FieldLocation) location).getOffset()); // } // if (location instanceof Locations.ArrayLocation) { // obj.add("index", ((Locations.ArrayLocation) location).getIndex()); // } if (location instanceof Locations.ValueLocation) { obj.add("value", String.valueOf(((Locations.ValueLocation) location).get(null, false))); } return obj; } }
/** @since 0.17 or earlier */ @Override public final void setInternal(DynamicObject store, Object value) throws IncompatibleLocationException { if (!canStore(value)) { CompilerDirectives.transferToInterpreter(); throw new UnsupportedOperationException(); } }
/** @since 0.17 or earlier */ @Override public boolean canStore(Object val) { return valueEquals(this.value, val); }
@Override public final void set(DynamicObject store, Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException { if (!canStoreFinal(store, value)) { throw finalLocation(); } }
@Override protected boolean canStoreFinal(DynamicObject store, Object val) { return valueEquals(this.value, val); }
/** @since 0.17 or earlier */ @Override public final void set(DynamicObject store, Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException { if (!canStore(value)) { throw finalLocation(); } }
/** @since 0.17 or earlier */ @Override public final void set(DynamicObject store, Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException { if (!canStore(value)) { throw finalLocation(); } }
/** @since 0.17 or earlier */ @Override public boolean canStore(Object val) { return valueEquals(this.value, val); }