public enum SysCallNumber extends java.lang.Enum<SysCallNumber>
Enum Constant and Description |
---|
EXIT |
IO |
LOAD_PROGRAM |
Modifier and Type | Method and Description |
---|---|
static SysCallNumber |
fromInt(int number)
Obtain a
SysCallNumber representation from an int |
static SysCallNumber |
fromString(java.lang.String str)
Obtain a
SysCallNumber representation from a string |
static SysCallNumber |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SysCallNumber[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SysCallNumber LOAD_PROGRAM
public static final SysCallNumber IO
public static final SysCallNumber EXIT
public static SysCallNumber[] values()
for (SysCallNumber c : SysCallNumber.values()) System.out.println(c);
public static SysCallNumber valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SysCallNumber fromInt(int number)
SysCallNumber
representation from an intnumber
- The syscall numberpublic static SysCallNumber fromString(java.lang.String str) throws NoSuchSysCallException
SysCallNumber
representation from a stringstr
- The stringNoSuchSysCallException