public abstract static class Locations.ValueLocation extends LocationImpl
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>| Constructor and Description |
|---|
Locations.ValueLocation(java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canStoreFinal(DynamicObject store,
java.lang.Object val) |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get(DynamicObject store,
boolean condition)
Get object value as object at this location in store.
|
int |
hashCode() |
void |
set(DynamicObject store,
java.lang.Object value,
Shape shape)
Set object value at this location in store.
|
void |
setInternal(DynamicObject store,
java.lang.Object value)
Like
Location.set(DynamicObject, Object, Shape), but does not invalidate final locations. |
java.lang.String |
toString() |
canSet, canStore, getInternal, getWhereString, isConstant, isFinal, objectArrayCount, objectFieldCount, primitiveArrayCount, primitiveFieldCount, valueEqualscheckShape, finalLocation, get, incompatibleLocation, set, setpublic int hashCode()
hashCode in class LocationImplpublic boolean equals(java.lang.Object obj)
equals in class LocationImplpublic final java.lang.Object get(DynamicObject store, boolean condition)
BaseLocationBaseLocation.get(DynamicObject, Shape) instead.get in interface BaseLocationget in class Locationcondition - the result of a shape check or falseBaseLocation.get(DynamicObject, Shape)public final void set(DynamicObject store, java.lang.Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException
BaseLocationset in interface BaseLocationset in class LocationImplshape - the current shape of the storage objectIncompatibleLocationException - for storage type invalidationsFinalLocationException - for effectively final fieldsprotected boolean canStoreFinal(DynamicObject store, java.lang.Object val)
canStoreFinal in class LocationImplpublic final void setInternal(DynamicObject store, java.lang.Object value) throws IncompatibleLocationException
LocationLocation.set(DynamicObject, Object, Shape), but does not invalidate final locations. For
internal use only and subject to change, use DynamicObjectFactory to create objects
with predefined properties.setInternal in class LocationImplIncompatibleLocationException - if value is of non-assignable typepublic java.lang.String toString()
toString in class LocationImpl