net.sourceforge.nrl.parser.model
Class VariableContext

java.lang.Object
  extended by net.sourceforge.nrl.parser.model.VariableContext

public class VariableContext
extends Object

An implementation of a stack-based variable context that is used throughout the parser for processing model references.

The variable context consists of a number of "frames":


Constructor Summary
VariableContext()
           
 
Method Summary
 void bindToCurrentFrame(IVariable var)
           
 boolean isAlreadyDeclared(String varName)
           
 IVariable lookup(String name)
           
 void popFrame()
           
 void pushFrame()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableContext

public VariableContext()
Method Detail

bindToCurrentFrame

public void bindToCurrentFrame(IVariable var)

isAlreadyDeclared

public boolean isAlreadyDeclared(String varName)

lookup

public IVariable lookup(String name)

pushFrame

public void pushFrame()

popFrame

public void popFrame()


Copyright © 2006-2010 Christian Nentwich and others