gnu.expr
Class ResolveNames

java.lang.Object
  extended by gnu.expr.ExpWalker
      extended by gnu.expr.ResolveNames
Direct Known Subclasses:
XQResolveNames

public class ResolveNames
extends ExpWalker

This resolves references to lexical Declarations. So far it is only used for XQuery, which overrides it.


Field Summary
protected  NameLookup lookup
           
 
Constructor Summary
ResolveNames()
           
ResolveNames(Compilation comp)
           
 
Method Summary
 Declaration lookup(Expression exp, java.lang.Object symbol, boolean function)
           
protected  void push(ScopeExp exp)
           
 void resolveModule(ModuleExp exp)
           
protected  Expression walkReferenceExp(ReferenceExp exp)
           
protected  Expression walkScopeExp(ScopeExp exp)
           
protected  Expression walkSetExp(SetExp exp)
           
 
Methods inherited from class gnu.expr.ExpWalker
error, getColumn, getCompilation, getCurrentLambda, getFile, getLine, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkApplyExp, walkBeginExp, walkBlockExp, walkClassExp, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, walkLetExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkSynchronizedExp, walkThisExp, walkTryExp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lookup

protected NameLookup lookup
Constructor Detail

ResolveNames

public ResolveNames()

ResolveNames

public ResolveNames(Compilation comp)
Method Detail

resolveModule

public void resolveModule(ModuleExp exp)

push

protected void push(ScopeExp exp)

walkScopeExp

protected Expression walkScopeExp(ScopeExp exp)
Overrides:
walkScopeExp in class ExpWalker

lookup

public Declaration lookup(Expression exp,
                          java.lang.Object symbol,
                          boolean function)

walkReferenceExp

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

walkSetExp

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