Java Doc for NodeVisitor.java in  » Template-Engine » Tea » com » go » tea » parsetree » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Template Engine » Tea » com.go.tea.parsetree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.go.tea.parsetree.NodeVisitor

All known Subclasses:   com.go.tea.parsetree.TreeWalker,  com.go.tea.parsetree.TreeMutator,
NodeVisitor
public interface NodeVisitor (Code)
A NodeVisitor enables operations to be performed on a parse tree. The Visitor design pattern is discussed in detail in Design Patterns (ISBN 0-201-63361-2) by Gamma, Helm, Johnson and Vlissides.

The traditional operations performed on parse trees are type checking and code generation. The Visitor allows those operations to all be encapsulated into one place instead of having that functionality spread out into every Node subclass. It also makes it easy to target multiple languages by allowing any kind of code generation Visitor to be designed.

When using a Visitor to traverse a parse tree, the code responsible for moving the traversal into children nodes can either be placed in the nodes or in the Visitor implementation. The NodeVisitor places that responsibility onto NodeVisitor implementations because it is much more flexible. As a result, all Nodes have the same simple implementation for their "accept" method, but do not inherit it.

Every visit method in this interface returns an Object. The definition of that returned Object is left up to the specific implementation of the NodeVisitor. Most NodeVisitors can simply return null, but those that are modifying a parse tree or are using one to create another can use the returned Object to pass around newly created Nodes.
author:
   Brian S O'Neill
version:
   30 , 5/31/01
See Also:   Node.accept(NodeVisitor)





Method Summary
public  Objectvisit(Template node)
    
public  Objectvisit(Name node)
    
public  Objectvisit(TypeName node)
    
public  Objectvisit(Variable node)
    
public  Objectvisit(ExpressionList node)
    
public  Objectvisit(Statement node)
    
public  Objectvisit(StatementList node)
    
public  Objectvisit(Block node)
    
public  Objectvisit(AssignmentStatement node)
    
public  Objectvisit(ForeachStatement node)
    
public  Objectvisit(IfStatement node)
    
public  Objectvisit(SubstitutionStatement node)
    
public  Objectvisit(ExpressionStatement node)
    
public  Objectvisit(ReturnStatement node)
    
public  Objectvisit(ExceptionGuardStatement node)
    
public  Objectvisit(BreakStatement node)
    
public  Objectvisit(Expression node)
    
public  Objectvisit(ParenExpression node)
    
public  Objectvisit(NewArrayExpression node)
    
public  Objectvisit(FunctionCallExpression node)
    
public  Objectvisit(TemplateCallExpression node)
    
public  Objectvisit(VariableRef node)
    
public  Objectvisit(Lookup node)
    
public  Objectvisit(ArrayLookup node)
    
public  Objectvisit(NegateExpression node)
    
public  Objectvisit(NotExpression node)
    
public  Objectvisit(ConcatenateExpression node)
    
public  Objectvisit(ArithmeticExpression node)
    
public  Objectvisit(RelationalExpression node)
    
public  Objectvisit(AndExpression node)
    
public  Objectvisit(OrExpression node)
    
public  Objectvisit(NullLiteral node)
    
public  Objectvisit(BooleanLiteral node)
    
public  Objectvisit(StringLiteral node)
    
public  Objectvisit(NumberLiteral node)
    



Method Detail
visit
public Object visit(Template node)(Code)



visit
public Object visit(Name node)(Code)



visit
public Object visit(TypeName node)(Code)



visit
public Object visit(Variable node)(Code)



visit
public Object visit(ExpressionList node)(Code)



visit
public Object visit(Statement node)(Code)



visit
public Object visit(StatementList node)(Code)



visit
public Object visit(Block node)(Code)



visit
public Object visit(AssignmentStatement node)(Code)



visit
public Object visit(ForeachStatement node)(Code)



visit
public Object visit(IfStatement node)(Code)



visit
public Object visit(SubstitutionStatement node)(Code)



visit
public Object visit(ExpressionStatement node)(Code)



visit
public Object visit(ReturnStatement node)(Code)



visit
public Object visit(ExceptionGuardStatement node)(Code)



visit
public Object visit(BreakStatement node)(Code)



visit
public Object visit(Expression node)(Code)



visit
public Object visit(ParenExpression node)(Code)



visit
public Object visit(NewArrayExpression node)(Code)



visit
public Object visit(FunctionCallExpression node)(Code)



visit
public Object visit(TemplateCallExpression node)(Code)



visit
public Object visit(VariableRef node)(Code)



visit
public Object visit(Lookup node)(Code)



visit
public Object visit(ArrayLookup node)(Code)



visit
public Object visit(NegateExpression node)(Code)



visit
public Object visit(NotExpression node)(Code)



visit
public Object visit(ConcatenateExpression node)(Code)



visit
public Object visit(ArithmeticExpression node)(Code)



visit
public Object visit(RelationalExpression node)(Code)



visit
public Object visit(AndExpression node)(Code)



visit
public Object visit(OrExpression node)(Code)



visit
public Object visit(NullLiteral node)(Code)



visit
public Object visit(BooleanLiteral node)(Code)



visit
public Object visit(StringLiteral node)(Code)



visit
public Object visit(NumberLiteral node)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.