Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.hlasm
Class OrderedInstructionList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bycom.ibm.lpex.hlasm.OrderedInstructionList

All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable


public class OrderedInstructionList
extends Vector

This class is used to store a sorted list of all the valid instructions. The list is kept in order, so as to allow binary searches. Both an insertion and a search take log(n).

See Also:
Serialized Form


Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OrderedInstructionList()
          Constructor.
 
Method Summary
 void addInstruction(Instruction inst)
          Adds the specified instruction.
 Instruction findInstruction(String instructionName, boolean caseSensitive)
          Finds the specified instruction.
 Instruction getInstruction(int index)
          Returns the instruction at the specified position in the list.
 void removeAllInstructions()
          Clears the list.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

 

 

OrderedInstructionList

public OrderedInstructionList()

Constructor.

Method Detail

 

 

addInstruction

public void addInstruction(Instruction inst)

Adds the specified instruction. If already in the list, then a multi-level is added.


 

 

getInstruction

public Instruction getInstruction(int index)

Returns the instruction at the specified position in the list.


 

 

findInstruction

public Instruction findInstruction(String instructionName,
                                   boolean caseSensitive)

Finds the specified instruction.


 

 

removeAllInstructions

public void removeAllInstructions()

Clears the list.


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD