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, valueEquals
checkShape, finalLocation, get, incompatibleLocation, set, set
public int hashCode()
hashCode
in class LocationImpl
public boolean equals(java.lang.Object obj)
equals
in class LocationImpl
public final java.lang.Object get(DynamicObject store, boolean condition)
BaseLocation
BaseLocation.get(DynamicObject, Shape)
instead.get
in interface BaseLocation
get
in class Location
condition
- the result of a shape check or false
BaseLocation.get(DynamicObject, Shape)
public final void set(DynamicObject store, java.lang.Object value, Shape shape) throws IncompatibleLocationException, FinalLocationException
BaseLocation
set
in interface BaseLocation
set
in class LocationImpl
shape
- 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 LocationImpl
public final void setInternal(DynamicObject store, java.lang.Object value) throws IncompatibleLocationException
Location
Location.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 LocationImpl
IncompatibleLocationException
- if value is of non-assignable typepublic java.lang.String toString()
toString
in class LocationImpl