gnu.expr
Class InlineCalls

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

public class InlineCalls
extends ExpWalker


Field Summary
 
Fields inherited from class gnu.expr.ExpWalker
currentLambda, messages
 
Constructor Summary
InlineCalls(Compilation comp)
           
 
Method Summary
static void inlineCalls(Expression exp, Compilation comp)
           
protected  Expression walkApplyExp(ApplyExp exp)
           
 Expression walkApplyOnly(ApplyExp exp)
          Walk an ApplyExp assuming function and arguments have been walked.
protected  Expression walkIfExp(IfExp exp)
           
protected  Expression walkLambdaExp(LambdaExp exp)
           
protected  Expression walkLetExp(LetExp exp)
           
protected  Expression walkReferenceExp(ReferenceExp 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, walkClassExp, walkDeclarationType, walkDeclarationTypes, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkLangExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkScopeExp, walkSetExp, walkSynchronizedExp, walkThisExp, walkTryExp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineCalls

public InlineCalls(Compilation comp)
Method Detail

inlineCalls

public static void inlineCalls(Expression exp,
                               Compilation comp)

walkApplyExp

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

walkApplyOnly

public Expression walkApplyOnly(ApplyExp exp)
Walk an ApplyExp assuming function and arguments have been walked.


walkReferenceExp

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

walkIfExp

protected Expression walkIfExp(IfExp exp)
Overrides:
walkIfExp in class ExpWalker

walkLetExp

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

walkLambdaExp

protected Expression walkLambdaExp(LambdaExp exp)
Overrides:
walkLambdaExp in class ExpWalker