public abstract class LocationIdentity extends Object
Clients of LocationIdentity
must use Object.equals(Object)
, not ==
, when
comparing two LocationIdentity
values for equality. Likewise, they must not use
IdentityHashMap
s with LocationIdentity
values as keys.
Modifier and Type | Field and Description |
---|---|
static LocationIdentity |
ANY_LOCATION
Indicates that the given location is the union of all possible mutable locations.
|
static LocationIdentity |
INIT_LOCATION
Location only allowed to be used for writes.
|
Modifier | Constructor and Description |
---|---|
protected |
LocationIdentity()
Creates a new location identity.
|
Modifier and Type | Method and Description |
---|---|
static LocationIdentity |
any()
Indicates that the given location is the union of all possible mutable locations.
|
static LocationIdentity |
init()
Location only allowed to be used for writes.
|
boolean |
isAny()
Returns true if this location identity is
LocationIdentity.any() . |
abstract boolean |
isImmutable()
Denotes a location is unchanging in all cases.
|
boolean |
isInit()
Returns true if this location identity is
LocationIdentity.init() . |
boolean |
isMutable()
The inversion of
LocationIdentity.isImmutable() . |
boolean |
isSingle()
Returns true if this location identity is not
LocationIdentity.any() . |
boolean |
overlaps(LocationIdentity other)
Returns true if the memory slice denoted by this location identity may overlap with the
provided other location identity.
|
public static final LocationIdentity ANY_LOCATION
public static final LocationIdentity INIT_LOCATION
protected LocationIdentity()
Object.equals(java.lang.Object)
and Object.hashCode()
.public static LocationIdentity any()
public static LocationIdentity init()
public abstract boolean isImmutable()
public final boolean isMutable()
LocationIdentity.isImmutable()
.public final boolean isAny()
LocationIdentity.any()
.public final boolean isInit()
LocationIdentity.init()
.public final boolean isSingle()
LocationIdentity.any()
.public final boolean overlaps(LocationIdentity other)