gnu.expr
Class ResolveNames
java.lang.Object
gnu.expr.ExpWalker
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.
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 |
lookup
protected NameLookup lookup
ResolveNames
public ResolveNames()
ResolveNames
public ResolveNames(Compilation comp)
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