public enum EncogOpcodeRegistry extends java.lang.Enum<EncogOpcodeRegistry>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ProgramExtensionTemplate ext)
Add an opcode.
|
static java.lang.String |
createKey(java.lang.String functionName,
int argCount)
Construct a lookup key for the hash map.
|
java.util.Collection<ProgramExtensionTemplate> |
findAllOpcodes() |
ProgramExtensionTemplate |
findOpcode(java.lang.String name,
int args)
Find the specified opcode.
|
static EncogOpcodeRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncogOpcodeRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncogOpcodeRegistry INSTANCE
public static EncogOpcodeRegistry[] values()
for (EncogOpcodeRegistry c : EncogOpcodeRegistry.values()) System.out.println(c);
public static EncogOpcodeRegistry 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 java.lang.String createKey(java.lang.String functionName,
int argCount)
functionName - The name of the opcode.argCount - The number of parameters this opcode accepts.public void add(ProgramExtensionTemplate ext)
ext - The opcode to add.public java.util.Collection<ProgramExtensionTemplate> findAllOpcodes()
public ProgramExtensionTemplate findOpcode(java.lang.String name, int args)
name - The name of the opcode.args - The number of arguments.