Package ghidra.pcode.emu.unix
Enum Class EmuUnixFileSystem.OpenFlag
- All Implemented Interfaces:
Serializable
,Comparable<EmuUnixFileSystem.OpenFlag>
,Constable
- Enclosing interface:
EmuUnixFileSystem<T>
Open flags as defined by the simulator
See a UNIX manual for the exact meaning of each.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Check if the given flags indicate open for readingstatic boolean
Check if the given flags indicate open for writingstatic Set
<EmuUnixFileSystem.OpenFlag> set
(EmuUnixFileSystem.OpenFlag... flags) Construct a set of flagsstatic Set
<EmuUnixFileSystem.OpenFlag> set
(Collection<EmuUnixFileSystem.OpenFlag> flags) Construct a set of flagsstatic EmuUnixFileSystem.OpenFlag
Returns the enum constant of this class with the specified name.static EmuUnixFileSystem.OpenFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
O_RDONLY
-
O_WRONLY
-
O_RDWR
-
O_CREAT
-
O_TRUNC
-
O_APPEND
-
-
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
-
set
Construct a set of flags- Parameters:
flags
- the flags- Returns:
- the set
-
set
Construct a set of flags- Parameters:
flags
- the flags- Returns:
- the set
-
isRead
Check if the given flags indicate open for reading- Parameters:
flags
- the flags- Returns:
- true for reading
-
isWrite
Check if the given flags indicate open for writing- Parameters:
flags
- the flags- Returns:
- true for writing
-