ubc.cs.JLog.Parser
Class pVariableRegistry

java.lang.Object
  extended by ubc.cs.JLog.Parser.pVariableRegistry

public class pVariableRegistry
extends java.lang.Object

Hashtable for pVar variables and their associated jVariables. This class is used to ensure that the reference to a single named variable in the parse stream (usually at the level of a rule or command), which my be represented by several pVar packets, only produce a single instance of jVariable.

Author:
Glendon Holst

Field Summary
protected  java.util.Hashtable variables
           
 
Constructor Summary
pVariableRegistry()
           
 
Method Summary
 jVariable getVariable(ubc.cs.JLog.Parser.pVar v)
           
 jVariable getVariable(java.lang.String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variables

protected java.util.Hashtable variables
Constructor Detail

pVariableRegistry

public pVariableRegistry()
Method Detail

getVariable

public jVariable getVariable(ubc.cs.JLog.Parser.pVar v)

getVariable

public jVariable getVariable(java.lang.String v)