public final class FrameUtil
extends java.lang.Object
| Constructor and Description |
|---|
FrameUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static byte |
getByteSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static double |
getDoubleSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static float |
getFloatSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static int |
getIntSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static long |
getLongSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
static java.lang.Object |
getObjectSafe(Frame frame,
FrameSlot frameSlot)
Read a frame slot that is guaranteed to be of the desired kind (either previously checked by
a guard or statically known).
|
public static java.lang.Object getObjectSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getObject(FrameSlot)public static byte getByteSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getByte(FrameSlot)public static boolean getBooleanSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getBoolean(FrameSlot)public static int getIntSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getInt(FrameSlot)public static long getLongSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getLong(FrameSlot)public static double getDoubleSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getDouble(FrameSlot)public static float getFloatSafe(Frame frame, FrameSlot frameSlot)
frameSlot - the slot of the variablejava.lang.IllegalStateException - if the slot kind does not matchFrame.getFloat(FrameSlot)