@Deprecated public interface TypedLocation
| Modifier and Type | Method and Description |
|---|---|
Object |
get(DynamicObject store,
boolean condition)
Deprecated.
Get object value as object at this location in store.
|
Object |
get(DynamicObject store,
Shape shape)
Deprecated.
Get object value as object at this location in store.
|
Class<?> |
getType()
Deprecated.
The type of this location.
|
void |
set(DynamicObject store,
Object value)
Deprecated.
Set object value at this location in store.
|
void |
set(DynamicObject store,
Object value,
Shape shape)
Deprecated.
Set object value at this location in store.
|
void |
set(DynamicObject store,
Object value,
Shape oldShape,
Shape newShape)
Deprecated.
Set object value at this location in store and update shape.
|
Object get(DynamicObject store, Shape shape)
shape - the current shape of the object, which must contain this locationObject get(DynamicObject store, boolean condition)
TypedLocation.get(DynamicObject, Shape) instead.condition - the result of a shape check or falseTypedLocation.get(DynamicObject, Shape)void set(DynamicObject store, Object value) throws IncompatibleLocationException, FinalLocationException
IncompatibleLocationException - for storage type invalidationsFinalLocationException - for effectively final fieldsvoid set(DynamicObject store, Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException
shape - the current shape of the storage objectIncompatibleLocationException - for storage type invalidationsFinalLocationException - for effectively final fieldsvoid set(DynamicObject store, Object value, Shape oldShape, Shape newShape) throws IncompatibleLocationException
oldShape - the shape before the transitionnewShape - new shape after the transitionIncompatibleLocationException - if value is of non-assignable typeClass<?> getType()