Package com.oracle.truffle.object.basic
Class BasicLocations.PrimitiveLocationDecorator
java.lang.Object
com.oracle.truffle.api.object.Location
com.oracle.truffle.object.LocationImpl
com.oracle.truffle.object.basic.BasicLocations.PrimitiveLocationDecorator
- All Implemented Interfaces:
BaseLocation
- Direct Known Subclasses:
BasicLocations.BooleanLocationDecorator,BasicLocations.DoubleLocationDecorator,BasicLocations.IntLocationDecorator,BasicLocations.LongLocationDecorator
- Enclosing class:
- BasicLocations
-
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal longgetLong(DynamicObject store, boolean condition) final longgetLong(DynamicObject store, Shape shape) final intGet the number of primitive array elements this location requires.final intGet the number of in-object primitive fields this location requires.final voidsetLong(DynamicObject store, long value) final voidsetLong(DynamicObject store, long value, Shape shape) final voidsetLongInternal(DynamicObject store, long value) Methods inherited from class com.oracle.truffle.object.LocationImpl
canSet, canStore, canStoreFinal, equals, getInternal, getWhereString, hashCode, isConstant, isFinal, objectArrayCount, objectFieldCount, set, setInternal, toString, valueEqualsMethods inherited from class com.oracle.truffle.api.object.Location
checkShape, finalLocation, get, get, incompatibleLocation, set, set
-
Constructor Details
-
PrimitiveLocationDecorator
-
-
Method Details
-
getLong
-
getLong
-
setLong
public final void setLong(DynamicObject store, long value, Shape shape) throws FinalLocationException - Throws:
FinalLocationException
-
setLong
- Throws:
FinalLocationException
-
setLongInternal
-
primitiveFieldCount
public final int primitiveFieldCount()Description copied from class:LocationImplGet the number of in-object primitive fields this location requires.- Overrides:
primitiveFieldCountin classLocationImpl
-
primitiveArrayCount
public final int primitiveArrayCount()Description copied from class:LocationImplGet the number of primitive array elements this location requires.- Overrides:
primitiveArrayCountin classLocationImpl
-