Package com.oracle.truffle.object
Class Locations.ConstantLocation
- java.lang.Object
-
- com.oracle.truffle.api.object.Location
-
- com.oracle.truffle.object.LocationImpl
-
- com.oracle.truffle.object.Locations.ValueLocation
-
- com.oracle.truffle.object.Locations.ConstantLocation
-
- All Implemented Interfaces:
BaseLocation
- Enclosing class:
- Locations
public static final class Locations.ConstantLocation extends Locations.ValueLocation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.truffle.object.LocationImpl
LocationImpl.EffectivelyFinalLocation<T extends Location>, LocationImpl.InternalLongLocation, LocationImpl.TypedObjectLocation<T extends Location & ObjectLocation>
-
-
Constructor Summary
Constructors Constructor Description ConstantLocation(java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isConstant()
Returnstrue
if this is an immutable constant location.-
Methods inherited from class com.oracle.truffle.object.Locations.ValueLocation
canStoreFinal, equals, get, hashCode, set, setInternal, toString
-
Methods inherited from class com.oracle.truffle.object.LocationImpl
canSet, canStore, getInternal, getWhereString, isFinal, objectArrayCount, objectFieldCount, primitiveArrayCount, primitiveFieldCount, valueEquals
-
Methods inherited from class com.oracle.truffle.api.object.Location
checkShape, finalLocation, get, incompatibleLocation, set, set
-
-
-
-
Method Detail
-
isConstant
public boolean isConstant()
Description copied from class:Location
Returnstrue
if this is an immutable constant location.- Overrides:
isConstant
in classLocationImpl
-
-