Package com.oracle.truffle.api.frame
Enum Class FrameInstance.FrameAccess
- All Implemented Interfaces:
Serializable
,Comparable<FrameInstance.FrameAccess>
,Constable
- Enclosing interface:
FrameInstance
Access mode for
FrameInstance.getFrame(FrameAccess)
.- Since:
- 0.8 or earlier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis mode allows to read a materialized version of the frame and provides read and write access to its local variables.This mode allows to read the frame and provides read only access to its local variables.This mode allows to read the frame and provides read and write access to its local variables. -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameInstance.FrameAccess
Returns the enum constant of this class with the specified name.static FrameInstance.FrameAccess[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_ONLY
This mode allows to read the frame and provides read only access to its local variables. The returned frame must not be stored/persisted. Writing local variables in this mode will result in anAssertionError
only if assertions (-ea) are enabled.- Since:
- 0.8 or earlier
-
READ_WRITE
This mode allows to read the frame and provides read and write access to its local variables. The returned frame must not be stored/persisted.- Since:
- 0.8 or earlier
-
MATERIALIZE
This mode allows to read a materialized version of the frame and provides read and write access to its local variables. In addition toREAD_WRITE
this mode allows to store/persist the returned frame.- Since:
- 0.8 or earlier
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-