|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.clef.type.TypeTable
public class TypeTable
This class maps from an integer value to a Type.
$Id: TypeTable.java,v 1.14 2007-01-04 16:52:13 burrill Exp $
Copyright 2006 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary | |
---|---|
TypeTable(int capacity)
|
Method Summary | |
---|---|
void |
clear()
Remove all entries from the map. |
void |
clear(int flag)
Remove all entries with the specified flag value from the map. |
java.util.Enumeration<Type> |
elements()
Return an enumeration of all of the elements in the map. |
Type |
get(long key)
Find an entry in the map. |
Type |
put(long key,
Type value,
int flag)
Place an entry in the map unless it is already there. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeTable(int capacity)
capacity
- initial capacity - should be primeMethod Detail |
---|
public void clear()
public void clear(int flag)
put(long, scale.clef.type.Type, int)
public Type put(long key, Type value, int flag)
key
- map from this key to the valueflag
- is a separate integer value attached to the mapping
public Type get(long key)
key
- map from this key to the value
public java.util.Enumeration<Type> elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |