gnu.expr
Class FindCapturedVars

java.lang.Object
  extended by gnu.expr.ExpWalker
      extended by gnu.expr.FindCapturedVars
All Implemented Interfaces:
SourceLocator, org.xml.sax.Locator

public class FindCapturedVars
extends ExpWalker


Field Summary
 
Fields inherited from class gnu.expr.ExpWalker
currentLambda, messages
 
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, getColumnNumber, getCompilation, getCurrentLambda, getFileName, getLineNumber, getMessages, getPublicId, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkBeginExp, walkBlockExp, walkDeclarationType, walkDeclarationTypes, 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