jcaas
Class Insertor

java.lang.Object
  extended by jcaas.Insertor

public class Insertor
extends java.lang.Object

Author:
bradley The Insertor class allows for the manipulation of a Java class file in order to add the instructions necessary to keep track of the Blackboard variables

Field Summary
static int test
           
 
Constructor Summary
Insertor(org.apache.bcel.generic.InstructionList list)
          Constructs a new Insertor object
 
Method Summary
 void insert(org.apache.bcel.generic.InstructionList list, int index)
          The insert method is stores each added InstructionList in order to add them in reverser order.
 org.apache.bcel.generic.InstructionList merge()
          The merge method takes the set of IndexedList and adds them, in order, to the original InstructionList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

test

public static int test
Constructor Detail

Insertor

public Insertor(org.apache.bcel.generic.InstructionList list)
Constructs a new Insertor object

Parameters:
list - - the original InstructionList
Method Detail

insert

public void insert(org.apache.bcel.generic.InstructionList list,
                   int index)
The insert method is stores each added InstructionList in order to add them in reverser order. This is necessary to maintain proper ordering of the original InstructionList

Parameters:
list - - set of Instructions to be added
index - - where to add the new Instructions

merge

public org.apache.bcel.generic.InstructionList merge()
The merge method takes the set of IndexedList and adds them, in order, to the original InstructionList

Returns:
- the new, annotated InstructionList