|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--dpt.symbtab.JavaVector
An extended Vector class to provide simple lookup and type resolution methods
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 |
|
Field Detail |
private boolean resolvingRefs
private boolean resolvingTypes
Constructor Detail |
public JavaVector()
Method Detail |
public void addElement(Definition o)
public Definition getElement(java.lang.String name)
void list(IndentingPrintWriter out)
void listIndented(IndentingPrintWriter out, java.lang.String title)
public java.lang.String GetItem(int TypID)
public java.lang.String GetLocation(int TypID, java.lang.String sName)
public java.util.Vector GetItems(int TypID, java.lang.String modifier)
void report(IndentingPrintWriter out)
void reportIndented(IndentingPrintWriter out, java.lang.String title)
public void resolveRefs(SymbolTable symbolTable)
public void resolveTypes(SymbolTable symbolTable)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |