cgp.translators
Class ContextScope

java.lang.Object
  |
  +--cgp.translators.ContextScope

public class ContextScope
extends java.lang.Object


Field Summary
private  java.util.HashMap table
           
 
Constructor Summary
ContextScope()
           
ContextScope(java.util.HashMap map)
           
 
Method Summary
 ContextScope copy()
          Copy this namespace.
 void def(java.lang.String name, notio.Concept value)
           
 notio.Concept get(java.lang.String name)
           
 java.lang.String[] getNames()
          Return the names in this namespace.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

table

private java.util.HashMap table
Constructor Detail

ContextScope

public ContextScope()

ContextScope

public ContextScope(java.util.HashMap map)
Method Detail

def

public void def(java.lang.String name,
                notio.Concept value)

get

public notio.Concept get(java.lang.String name)

getNames

public java.lang.String[] getNames()
Return the names in this namespace.

copy

public ContextScope copy()
Copy this namespace. The members themselves are not deep copied just the container. The latter can then be added to without polluting the original.