Class FrameExtensions
java.lang.Object
com.oracle.truffle.api.frame.FrameExtensions
Internal frame accessor methods for internal Truffle components that are trusted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidClears a frame slot.voidabstract voidCopies a value from one slot to another.voidabstract voidCopies a range of values from one frame to another.voidabstract booleanexpectBoolean(Frame frame, int slot) Reads a boolean from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.booleanexpectBoolean(Frame frame, long slot) abstract byteexpectByte(Frame frame, int slot) Reads a byte from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.byteexpectByte(Frame frame, long slot) abstract doubleexpectDouble(Frame frame, int slot) Reads a double from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.doubleexpectDouble(Frame frame, long slot) abstract floatexpectFloat(Frame frame, int slot) Reads a float from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.floatexpectFloat(Frame frame, long slot) abstract intReads an int from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.intabstract longexpectLong(Frame frame, int slot) Reads a long from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.longexpectLong(Frame frame, long slot) abstract ObjectexpectObject(Frame frame, int slot) Reads an Object from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.expectObject(Frame frame, long slot) abstract ObjectReads an object from the frame.Reads an object from the frame.bytebytefinal ObjectReads the value of a slot from the frame.final ObjectrequireObject(Frame frame, int slot) Reads an Object from the frame, recovering gracefully when the slot is not Object.requireObject(Frame frame, long slot) abstract voidresetFrame(Frame frame) abstract voidsetBoolean(Frame frame, int slot, boolean value) Stores a boolean into the frame.voidsetBoolean(Frame frame, long slot, boolean value) Stores a boolean into the frame.final voidsetBooleanOrObject(Frame frame, int slot, Object value) voidsetBooleanOrObject(Frame frame, long slot, Object value) abstract voidStores a byte into the frame.voidStores a byte into the frame.final voidsetByteOrObject(Frame frame, int slot, Object value) voidsetByteOrObject(Frame frame, long slot, Object value) abstract voidStores a double into the frame.voidfinal voidsetDoubleOrObject(Frame frame, int slot, Object value) voidsetDoubleOrObject(Frame frame, long slot, Object value) abstract voidStores a float into the frame.voidfinal voidsetFloatOrObject(Frame frame, int slot, Object value) voidsetFloatOrObject(Frame frame, long slot, Object value) abstract voidStores an int into the frame.voidStores an int into the frame.final voidsetIntOrObject(Frame frame, int slot, Object value) voidsetIntOrObject(Frame frame, long slot, Object value) abstract voidStores a long into the frame.voidStores a long into the frame.final voidsetLongOrObject(Frame frame, int slot, Object value) voidsetLongOrObject(Frame frame, long slot, Object value) abstract voidStores an Object into the frame.voidStores an Object into the frame.abstract ObjectuncheckedGetObject(Frame frame, int slot) Reads an object from the frame without checking the slot's tag.uncheckedGetObject(Frame frame, long slot)
-
Constructor Details
-
FrameExtensions
protected FrameExtensions()
-
-
Method Details
-
getObject
Reads an object from the frame.- Throws:
FrameSlotTypeException- Since:
- 24.2
-
setObject
-
setBoolean
Stores a boolean into the frame.- Since:
- 24.2
-
setByte
Stores a byte into the frame.- Since:
- 24.2
-
setInt
Stores an int into the frame.- Since:
- 24.2
-
setLong
Stores a long into the frame.- Since:
- 24.2
-
setLongOrObject
-
setIntOrObject
-
setByteOrObject
-
setBooleanOrObject
-
setFloatOrObject
-
setDoubleOrObject
-
setFloat
Stores a float into the frame.- Since:
- 24.2
-
setDouble
Stores a double into the frame.- Since:
- 24.2
-
expectBoolean
Reads a boolean from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectByte
Reads a byte from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectInt
Reads an int from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectLong
Reads a long from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectObject
Reads an Object from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectFloat
Reads a float from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
expectDouble
Reads a double from the frame, throwing anUnexpectedResultExceptionwith the slot value when the tag does not match.- Throws:
UnexpectedResultException- Since:
- 24.2
-
requireObject
-
uncheckedGetObject
-
copy
Copies a value from one slot to another.- Since:
- 24.2
-
copyTo
-
clear
-
getValue
-
resetFrame
-
getObject
Reads an object from the frame.- Throws:
FrameSlotTypeException- Since:
- 25.1
-
setObject
-
setBoolean
Stores a boolean into the frame.- Since:
- 25.1
-
setByte
-
setInt
-
setLong
-
setLongOrObject
-
setIntOrObject
-
setByteOrObject
-
setBooleanOrObject
-
setFloatOrObject
-
setDoubleOrObject
-
setFloat
- Since:
- 25.1
-
setDouble
- Since:
- 25.1
-
expectBoolean
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectByte
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectInt
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectLong
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectObject
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectFloat
- Throws:
UnexpectedResultException- Since:
- 25.1
-
expectDouble
- Throws:
UnexpectedResultException- Since:
- 25.1
-
requireObject
-
uncheckedGetObject
-
getTag
- Since:
- 25.1
-
getTag
- Since:
- 25.1
-
copy
- Since:
- 25.1
-
copyTo
-
clear
- Since:
- 25.1
-
getValue
-