gnu.expr
Class FindCapturedVars

java.lang.Object
  extended by gnu.expr.ExpWalker
      extended by gnu.expr.FindCapturedVars

public class FindCapturedVars
extends ExpWalker


Constructor Summary
FindCapturedVars()
           
 
Method Summary
 void capture(Declaration decl)
           
static void findCapturedVars(Expression exp, Compilation comp)
           
protected  Expression walkApplyExp(ApplyExp exp)
           
protected  Expression walkClassExp(ClassExp exp)
           
 void walkDefaultArgs(LambdaExp exp)
           
protected  Expression walkFluidLetExp(FluidLetExp exp)
           
protected  Expression walkLetExp(LetExp exp)
           
protected  Expression walkModuleExp(ModuleExp exp)
           
protected  Expression walkReferenceExp(ReferenceExp exp)
           
protected  Expression walkSetExp(SetExp exp)
           
protected  Expression walkThisExp(ThisExp exp)
           
 
Methods inherited from class gnu.expr.ExpWalker
error, getColumn, getCompilation, getCurrentLambda, getFile, getLine, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkBeginExp, walkBlockExp, walkExitExp, walkExpression, walkExps, walkExps, walkIfExp, walkLambdaExp, walkLangExp, walkObjectExp, walkQuoteExp, walkScopeExp, walkSynchronizedExp, walkTryExp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindCapturedVars

public FindCapturedVars()
Method Detail

findCapturedVars

public static void findCapturedVars(Expression exp,
                                    Compilation comp)

walkApplyExp

protected Expression walkApplyExp(ApplyExp exp)
Overrides:
walkApplyExp in class ExpWalker

walkDefaultArgs

public void walkDefaultArgs(LambdaExp exp)
Overrides:
walkDefaultArgs in class ExpWalker

walkClassExp

protected Expression walkClassExp(ClassExp exp)
Overrides:
walkClassExp in class ExpWalker

walkModuleExp

protected Expression walkModuleExp(ModuleExp exp)
Overrides:
walkModuleExp in class ExpWalker

walkFluidLetExp

protected Expression walkFluidLetExp(FluidLetExp exp)
Overrides:
walkFluidLetExp in class ExpWalker

walkLetExp

protected Expression walkLetExp(LetExp exp)
Overrides:
walkLetExp in class ExpWalker

capture

public void capture(Declaration decl)

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp)
Overrides:
walkReferenceExp in class ExpWalker

walkThisExp

protected Expression walkThisExp(ThisExp exp)
Overrides:
walkThisExp in class ExpWalker

walkSetExp

protected Expression walkSetExp(SetExp exp)
Overrides:
walkSetExp in class ExpWalker