|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.clef.decl.DeclTable
public class DeclTable
This class maps from an integer value to a Clef Declaration.
$Id: DeclTable.java,v 1.13 2007-01-04 16:59:43 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 | |
---|---|
DeclTable(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<Declaration> |
elements()
Return an enumeration of all of the elements in the map. |
Declaration |
get(long key)
Find an entry in the map. |
Declaration |
put(long key,
Declaration 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 DeclTable(int capacity)
capacity
- initial capacity - should be primeMethod Detail |
---|
public void clear()
public void clear(int flag)
put(long, scale.clef.decl.Declaration, int)
public Declaration put(long key, Declaration value, int flag)
key
- map from this key to the valueflag
- is a separate integer value attached to the mapping
public Declaration get(long key)
key
- map from this key to the value
public java.util.Enumeration<Declaration> elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |