ant.compiler.trafo
Class ProcTransformer

java.lang.Object
  extended byant.compiler.ast.AbstractVisitor
      extended byant.compiler.ast.Transformer
          extended byant.compiler.trafo.ProcTransformer
All Implemented Interfaces:
Tree.Visitor

public class ProcTransformer
extends Transformer

Visitor that computes the transformation for procedure statements in the Ant Control Language.

proc name(pram, ...) {statements};

License: GPL

Author:
Bernhard Haumacher

Field Summary
(package private)  Tree.Call currentCall
           
(package private)  Tree.Proc currentProc
           
(package private)  ErrorLog log
           
(package private)  Tree root
           
(package private)  SemanticAnalyzer semantic
           
(package private)  int version
           
(package private)  NameTransformer versionizer
           
 
Fields inherited from class ant.compiler.ast.Transformer
 
Constructor Summary
ProcTransformer(ErrorLog log, Tree root)
           
 
Method Summary
protected  void afterUpdate(Tree before, Tree after)
           
 void visit(Tree.Call tree)
           
 void visit(Tree.Proc tree)
           
 
Methods inherited from class ant.compiler.ast.Transformer
getResult, setResult, visit, visit, visit, visit, visit, visit, visit, visitTree
 
Methods inherited from class ant.compiler.ast.AbstractVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitBinaryExpression, visitExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

ErrorLog log

root

Tree root

semantic

SemanticAnalyzer semantic

version

int version

currentCall

Tree.Call currentCall

currentProc

Tree.Proc currentProc

versionizer

NameTransformer versionizer
Constructor Detail

ProcTransformer

public ProcTransformer(ErrorLog log,
                       Tree root)
Method Detail

afterUpdate

protected void afterUpdate(Tree before,
                           Tree after)
Overrides:
afterUpdate in class Transformer

visit

public void visit(Tree.Proc tree)
Specified by:
visit in interface Tree.Visitor
Overrides:
visit in class AbstractVisitor

visit

public void visit(Tree.Call tree)
Specified by:
visit in interface Tree.Visitor
Overrides:
visit in class AbstractVisitor