You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@locus.apache.org on 2000/09/21 22:43:16 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/processor/javacc/visitor SinglePassMode.java
jvanzyl 00/09/21 13:43:15
Removed: src/java/org/apache/velocity/processor/javacc/visitor
SinglePassMode.java
Log:
- SinglePassMode.java is no longer required because the AST can walk
and render itself. Other visitors will definitely be used for
source to source translation vis-a-vis taking the original AST
and "compiling" certain portions of it. Source to source
translation or transforming the node structure would be useful
in replacing references with object that can quickly resolve
values from reflection metadata, or to unroll loops in the
case an list type object is to be cached for a period of
time. Or even turning the original AST into bytecode. All
these things are possible and can be done with visitors,
but the actual "rendering" of the node structure will be
done by the AST walking itself. This makes the code cleaner
and avoids some concurrency problems I was with a visitor
doing the rendering.