fr.umlv.corosol.component.instruction.impl
Class DefaultJInstructionFactory

java.lang.Object
  extended by fr.umlv.corosol.component.impl.AbstractJVMComponent
      extended by fr.umlv.corosol.component.instruction.impl.DefaultJInstructionFactory
All Implemented Interfaces:
JInstructionFactory, JObject, JVMComponent

public class DefaultJInstructionFactory
extends AbstractJVMComponent
implements JInstructionFactory

This class is the default implementation of the JInstructionFactory interface.

Author:
Christophe Deleray

Constructor Summary
DefaultJInstructionFactory()
           
 
Method Summary
 JInstruction createInstruction(int opcode)
          Creates the JInstruction object corresponding to the specified opcode.
 java.lang.Class getComponentClass()
          Returns the class object describing this component.
 
Methods inherited from class fr.umlv.corosol.component.impl.AbstractJVMComponent
configure, replace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, replace
 

Constructor Detail

DefaultJInstructionFactory

public DefaultJInstructionFactory()
Method Detail

getComponentClass

public java.lang.Class getComponentClass()
Returns the class object describing this component.

Specified by:
getComponentClass in interface JVMComponent

createInstruction

public JInstruction createInstruction(int opcode)
Description copied from interface: JInstructionFactory
Creates the JInstruction object corresponding to the specified opcode.

Specified by:
createInstruction in interface JInstructionFactory
Parameters:
opcode - an instruction opcode
Returns:
a JInstruction object corresponding to the specified opcode