org.tritonus.saol.engine.opcodes
Class OpcodeClass

java.lang.Object
  extended by org.tritonus.saol.engine.opcodes.OpcodeClass

public class OpcodeClass
extends java.lang.Object

The Math Opcodes (Section 5.9.4).


Field Summary
static int TYPE_OPCODE_INSTANCE
          Opcode class type: one instance per opcode usage.
static int TYPE_RUNTIME_INSTANCE
          Opcode class type: one instance per renderer instance.
static int TYPE_STATIC
          Opcode class type: no instance needed.
 
Constructor Summary
OpcodeClass(java.lang.String strName, int nType)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Retrieves the name of the opcode class.
 int getType()
          Retrieves the type of the opcode class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_STATIC

public static final int TYPE_STATIC
Opcode class type: no instance needed. This means the opcode is implemented as a static method of the class. The Runtime system doesn't need to create an instance of the opcode class.

See Also:
Constant Field Values

TYPE_RUNTIME_INSTANCE

public static final int TYPE_RUNTIME_INSTANCE
Opcode class type: one instance per renderer instance.

See Also:
Constant Field Values

TYPE_OPCODE_INSTANCE

public static final int TYPE_OPCODE_INSTANCE
Opcode class type: one instance per opcode usage.

See Also:
Constant Field Values
Constructor Detail

OpcodeClass

public OpcodeClass(java.lang.String strName,
                   int nType)
Constructor.

Parameters:
strName - the name of the opcode class. A fully qualified class name is expected (package.class).
nType - the instantiation type of the class. One of TYPE_STATIC, TYPE_RUNTIME_INSTANCE and TYPE_OPCODE_INSTANCE.
Method Detail

getName

public java.lang.String getName()
Retrieves the name of the opcode class.

Returns:
the name that was set with the constructor. A fully qualified class name (package.class)

getType

public int getType()
Retrieves the type of the opcode class.

Returns:
the type that was set with the constructor. One of TYPE_STATIC, TYPE_RUNTIME_INSTANCE and TYPE_OPCODE_INSTANCE.