Class SubsystemType
java.lang.Object
com.pnfsoftware.jeb.util.base.DynamicEnum<SubsystemType>
com.pnfsoftware.jeb.core.units.codeobject.SubsystemType
Dynamic enumeration of subsystems/OS types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of built-in subsystem types.static final SubsystemTypeExtensible Firmware Interface and Unified EFIstatic final SubsystemTypeLinux, genericstatic final SubsystemTypemacOS, genericprotected static LinkedHashMap<String, SubsystemType> Registered subsystem types.static final SubsystemTypeUnix-like, super genericstatic final SubsystemTypeunknown subsystemstatic final SubsystemTypeWindows, genericstatic final SubsystemTypeWindows kernel-mode.static final SubsystemTypeWindows user-mode (graphical, console).Fields inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
id, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcount()Get number of registered subsystem types.booleanDetermine whether this subsystem is Unix-like.booleanDetermine whether this subsystem is Windows-like.intordinal()Get this entry's current ordinal in its dynamic enum.static SubsystemTypeRegister a subsystem type.static booleanunregister(String name) Unregister a dynamic subsystem type.static SubsystemTypevalueOf(int id) Retrieve a subsystem type by id.static SubsystemTypeRetrieve a subsystem type by name.static Collection<SubsystemType> values()Get registered subsystem types.Methods inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
equals, hashCode, id, isBuiltin, isCompatibleWith, name, ordinal, register, toString, unregister, valueOf, valueOf, values, verifyAvailability
-
Field Details
-
map
Registered subsystem types. -
UNKNOWN
unknown subsystem -
UNIX
Unix-like, super generic -
LINUX
Linux, generic -
MAC
macOS, generic -
WINDOWS
Windows, generic -
WINDOWS_KERNEL
Windows kernel-mode. -
WINDOWS_USER
Windows user-mode (graphical, console). -
EFI
Extensible Firmware Interface and Unified EFI -
builtinCount
public static final int builtinCountNumber of built-in subsystem types.
-
-
Constructor Details
-
SubsystemType
-
-
Method Details
-
ordinal
public int ordinal()Description copied from class:DynamicEnumGet this entry's current ordinal in its dynamic enum.- Specified by:
ordinalin classDynamicEnum<SubsystemType>- Returns:
- current ordinal of this entry
-
count
public static int count()Get number of registered subsystem types.- Returns:
- number of registered subsystem types
-
values
Get registered subsystem types.- Returns:
- registered subsystem types
-
valueOf
Retrieve a subsystem type by name.- Parameters:
name- subsystem type name- Returns:
- matching subsystem type, or
UNKNOWN
-
valueOf
Retrieve a subsystem type by id.- Parameters:
id- subsystem type id- Returns:
- matching subsystem type, or
UNKNOWN
-
register
Register a subsystem type.- Parameters:
id- subsystem type idname- subsystem type name- Returns:
- registered subsystem type
-
unregister
Unregister a dynamic subsystem type.- Parameters:
name- subsystem type name- Returns:
- true if the type was unregistered
-
isUnixLike
public boolean isUnixLike()Determine whether this subsystem is Unix-like.- Returns:
- true for Unix-like subsystems
-
isWindowsLike
public boolean isWindowsLike()Determine whether this subsystem is Windows-like.- Returns:
- true for Windows-like subsystems
-