Package com.oracle.truffle.object.basic
Class BasicLocations.LongArrayLocation
java.lang.Object
com.oracle.truffle.api.object.Location
com.oracle.truffle.object.LocationImpl
com.oracle.truffle.object.basic.BasicLocations.ArrayLocation
com.oracle.truffle.object.basic.BasicLocations.LongArrayLocation
- All Implemented Interfaces:
BaseLocation,LongLocation,TypedLocation,LocationImpl.InternalLongLocation
- Enclosing class:
- BasicLocations
public static class BasicLocations.LongArrayLocation
extends BasicLocations.ArrayLocation
implements LocationImpl.InternalLongLocation
-
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> -
Field Summary
FieldsFields inherited from class com.oracle.truffle.object.basic.BasicLocations.ArrayLocation
arrayLocation, index -
Constructor Summary
ConstructorsConstructorDescriptionLongArrayLocation(int index, Location arrayLocation) LongArrayLocation(int index, Location arrayLocation, boolean allowInt) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif the location is compatible with the value.final Objectget(DynamicObject store, boolean condition) Get object value as object at this location in store.longgetLong(DynamicObject store, boolean condition) final longgetLong(DynamicObject store, Shape shape) getType()The type of this location.intGet the number of primitive array elements this location requires.final voidsetInternal(DynamicObject store, Object value) LikeLocation.set(DynamicObject, Object, Shape), but does not invalidate final locations.final voidsetLong(DynamicObject store, long value) voidsetLong(DynamicObject store, long value, Shape shape) final voidsetLong(DynamicObject store, long value, Shape oldShape, Shape newShape) final voidsetLongInternal(DynamicObject store, long value) Methods inherited from class com.oracle.truffle.object.basic.BasicLocations.ArrayLocation
equals, getArray, getIndex, getWhereString, hashCodeMethods inherited from class com.oracle.truffle.object.LocationImpl
canSet, canStoreFinal, getInternal, isConstant, isFinal, objectArrayCount, objectFieldCount, primitiveFieldCount, set, toString, valueEqualsMethods inherited from class com.oracle.truffle.api.object.Location
checkShape, finalLocation, get, incompatibleLocation, set, setMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.truffle.api.object.BaseLocation
get, set, set, set
-
Field Details
-
allowInt
protected final boolean allowInt
-
-
Constructor Details
-
LongArrayLocation
-
LongArrayLocation
-
-
Method Details
-
get
Description copied from interface:BaseLocationGet object value as object at this location in store. For internal use only and subject to change, useBaseLocation.get(DynamicObject, Shape)instead.- Specified by:
getin interfaceBaseLocation- Overrides:
getin classLocationcondition- the result of a shape check orfalse- See Also:
-
setInternal
public final void setInternal(DynamicObject store, Object value) throws IncompatibleLocationException Description copied from class:LocationLikeLocation.set(DynamicObject, Object, Shape), but does not invalidate final locations. For internal use only and subject to change, useDynamicObjectFactoryto create objects with predefined properties.- Specified by:
setInternalin classLocationImpl- Throws:
IncompatibleLocationException- if value is of non-assignable type
-
getLong
- Specified by:
getLongin interfaceLongLocation- See Also:
-
setLongInternal
- Specified by:
setLongInternalin interfaceLocationImpl.InternalLongLocation
-
setLong
- Specified by:
setLongin interfaceLongLocation- Throws:
FinalLocationException- See Also:
-
setLong
- Specified by:
setLongin interfaceLongLocation- See Also:
-
setLong
- Specified by:
setLongin interfaceLongLocation- Throws:
FinalLocationException- See Also:
-
getLong
- Specified by:
getLongin interfaceLongLocation- See Also:
-
canStore
Description copied from class:LocationReturnstrueif the location is compatible with the value. The value may still be rejected ifLocation.canSet(DynamicObject, Object)returns false.- Overrides:
canStorein classLocationImpl- Parameters:
value- the value in question
-
getType
Description copied from interface:TypedLocationThe type of this location.- Specified by:
getTypein interfaceLongLocation- Specified by:
getTypein interfaceTypedLocation
-
primitiveArrayCount
public int primitiveArrayCount()Description copied from class:LocationImplGet the number of primitive array elements this location requires.- Overrides:
primitiveArrayCountin classLocationImpl
-