dpt.symbtab
Class JavaVector

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--dpt.symbtab.JavaVector

public final class JavaVector
extends java.util.Vector

An extended Vector class to provide simple lookup and type resolution methods

See Also:
Serialized Form

Field Summary
private  boolean resolvingRefs
          prevent nested resolutions...
private  boolean resolvingTypes
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JavaVector()
          Constructor to create a new Java vector
 
Method Summary
 void addElement(Definition o)
          Add a new element to the vector (used for debugging)
 Definition getElement(java.lang.String name)
          get an element from the
 java.lang.String GetItem(int TypID)
           
 java.util.Vector GetItems(int TypID, java.lang.String modifier)
           
 java.lang.String GetLocation(int TypID, java.lang.String sName)
           
(package private)  void list(IndentingPrintWriter out)
          list the names of all elements in the vector
(package private)  void listIndented(IndentingPrintWriter out, java.lang.String title)
          list the names of all elements in the vector, but first print a title for the section and indent the following lines
(package private)  void report(IndentingPrintWriter out)
          Write information about each element in the vector to the report,
(package private)  void reportIndented(IndentingPrintWriter out, java.lang.String title)
          Write information about each element in the vector to the report, but first write a header line for this section and indent
 void resolveRefs(SymbolTable symbolTable)
          Resolve references that are stored as JavaTokens
 void resolveTypes(SymbolTable symbolTable)
          Resolve the types of dummy elements in the vector
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, 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, registerNatives, wait, wait, wait
 

Field Detail

resolvingRefs

private boolean resolvingRefs
prevent nested resolutions...

resolvingTypes

private boolean resolvingTypes
Constructor Detail

JavaVector

public JavaVector()
Constructor to create a new Java vector
Method Detail

addElement

public void addElement(Definition o)
Add a new element to the vector (used for debugging)

getElement

public Definition getElement(java.lang.String name)
get an element from the

list

void list(IndentingPrintWriter out)
list the names of all elements in the vector

listIndented

void listIndented(IndentingPrintWriter out,
                  java.lang.String title)
list the names of all elements in the vector, but first print a title for the section and indent the following lines

GetItem

public java.lang.String GetItem(int TypID)

GetLocation

public java.lang.String GetLocation(int TypID,
                                    java.lang.String sName)

GetItems

public java.util.Vector GetItems(int TypID,
                                 java.lang.String modifier)

report

void report(IndentingPrintWriter out)
Write information about each element in the vector to the report,

reportIndented

void reportIndented(IndentingPrintWriter out,
                    java.lang.String title)
Write information about each element in the vector to the report, but first write a header line for this section and indent

resolveRefs

public void resolveRefs(SymbolTable symbolTable)
Resolve references that are stored as JavaTokens

resolveTypes

public void resolveTypes(SymbolTable symbolTable)
Resolve the types of dummy elements in the vector