net.sourceforge.nrl.parser.model
Class VariableContext
java.lang.Object
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":
- Additional frames required for block-type statements like "if". The
frames can be pushed and popped as necessary.
- Author:
- Christian Nentwich
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VariableContext
public VariableContext()
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-2013. All Rights Reserved.