public enum ArgumentMode extends java.lang.Enum<ArgumentMode>
ArgumentMode
enumeration specifies how an argument of
an instructions or its primitives (addressing modes, operations, shortcuts)
is used (in, out, in/out).Enum Constant and Description |
---|
IN
IN argument. |
INOUT
IN/OUT argument. |
NA
Not applicable.
|
OUT
OUT argument. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText() |
boolean |
isIn() |
boolean |
isOut() |
static ArgumentMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgumentMode IN
IN
argument. Used for immediate values and addressing modes.public static final ArgumentMode OUT
OUT
argument. Used for addressing modes.public static final ArgumentMode INOUT
IN/OUT
argument. Used for addressing modes.public static final ArgumentMode NA
public static ArgumentMode[] values()
for (ArgumentMode c : ArgumentMode.values()) System.out.println(c);
public static ArgumentMode 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 java.lang.String getText()
public boolean isIn()
public boolean isOut()