Source Code Cross Referenced for GroovyCodeVisitor.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » ast » 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 » Scripting » groovy 1.0 » org.codehaus.groovy.ast 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:         $Id: GroovyCodeVisitor.java 3891 2006-07-07 10:49:57Z blackdrag $
004:
005:
006:
007:         Copyright 2003 (C) James Strachan and Bob Mcwhirter. All Rights Reserved.
008:
009:
010:
011:         Redistribution and use of this software and associated documentation
012:
013:         ("Software"), with or without modification, are permitted provided
014:
015:         that the following conditions are met:
016:
017:
018:
019:         1. Redistributions of source code must retain copyright
020:
021:            statements and notices.  Redistributions must also contain a
022:
023:            copy of this document.
024:
025:
026:
027:         2. Redistributions in binary form must reproduce the
028:
029:            above copyright notice, this list of conditions and the
030:
031:            following disclaimer in the documentation and/or other
032:
033:            materials provided with the distribution.
034:
035:
036:
037:         3. The name "groovy" must not be used to endorse or promote
038:
039:            products derived from this Software without prior written
040:
041:            permission of The Codehaus.  For written permission,
042:
043:            please contact info@codehaus.org.
044:
045:
046:
047:         4. Products derived from this Software may not be called "groovy"
048:
049:            nor may "groovy" appear in their names without prior written
050:
051:            permission of The Codehaus. "groovy" is a registered
052:
053:            trademark of The Codehaus.
054:
055:
056:
057:         5. Due credit should be given to The Codehaus -
058:
059:            http://groovy.codehaus.org/
060:
061:
062:
063:         THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS
064:
065:         ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
066:
067:         NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
068:
069:         FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
070:
071:         THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
072:
073:         INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
074:
075:         (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
076:
077:         SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
078:
079:         HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
080:
081:         STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
082:
083:         ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
084:
085:         OF THE POSSIBILITY OF SUCH DAMAGE.
086:
087:
088:
089:         */
090:
091:        package org.codehaus.groovy.ast;
092:
093:        import org.codehaus.groovy.ast.expr.*;
094:
095:        import org.codehaus.groovy.ast.stmt.*;
096:
097:        /**
098:
099:         * An implementation of the visitor pattern for working with ASTNodes
100:
101:         * 
102:
103:         * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
104:
105:         * @version $Revision: 3891 $
106:
107:         */
108:
109:        public interface GroovyCodeVisitor {
110:
111:            // statements
112:
113:            //-------------------------------------------------------------------------
114:
115:            public void visitBlockStatement(BlockStatement statement);
116:
117:            public void visitForLoop(ForStatement forLoop);
118:
119:            public void visitWhileLoop(WhileStatement loop);
120:
121:            public void visitDoWhileLoop(DoWhileStatement loop);
122:
123:            public void visitIfElse(IfStatement ifElse);
124:
125:            public void visitExpressionStatement(ExpressionStatement statement);
126:
127:            public void visitReturnStatement(ReturnStatement statement);
128:
129:            public void visitAssertStatement(AssertStatement statement);
130:
131:            public void visitTryCatchFinally(TryCatchStatement finally1);
132:
133:            public void visitSwitch(SwitchStatement statement);
134:
135:            public void visitCaseStatement(CaseStatement statement);
136:
137:            public void visitBreakStatement(BreakStatement statement);
138:
139:            public void visitContinueStatement(ContinueStatement statement);
140:
141:            public void visitThrowStatement(ThrowStatement statement);
142:
143:            public void visitSynchronizedStatement(
144:                    SynchronizedStatement statement);
145:
146:            public void visitCatchStatement(CatchStatement statement);
147:
148:            // expressions
149:
150:            //-------------------------------------------------------------------------
151:
152:            public void visitMethodCallExpression(MethodCallExpression call);
153:
154:            public void visitStaticMethodCallExpression(
155:                    StaticMethodCallExpression expression);
156:
157:            public void visitConstructorCallExpression(
158:                    ConstructorCallExpression expression);
159:
160:            public void visitTernaryExpression(TernaryExpression expression);
161:
162:            public void visitBinaryExpression(BinaryExpression expression);
163:
164:            public void visitPrefixExpression(PrefixExpression expression);
165:
166:            public void visitPostfixExpression(PostfixExpression expression);
167:
168:            public void visitBooleanExpression(BooleanExpression expression);
169:
170:            public void visitClosureExpression(ClosureExpression expression);
171:
172:            public void visitTupleExpression(TupleExpression expression);
173:
174:            public void visitMapExpression(MapExpression expression);
175:
176:            public void visitMapEntryExpression(MapEntryExpression expression);
177:
178:            public void visitListExpression(ListExpression expression);
179:
180:            public void visitRangeExpression(RangeExpression expression);
181:
182:            public void visitPropertyExpression(PropertyExpression expression);
183:
184:            public void visitAttributeExpression(
185:                    AttributeExpression attributeExpression);
186:
187:            public void visitFieldExpression(FieldExpression expression);
188:
189:            public void visitMethodPointerExpression(
190:                    MethodPointerExpression expression);
191:
192:            public void visitConstantExpression(ConstantExpression expression);
193:
194:            public void visitClassExpression(ClassExpression expression);
195:
196:            public void visitVariableExpression(VariableExpression expression);
197:
198:            public void visitDeclarationExpression(
199:                    DeclarationExpression expression);
200:
201:            public void visitRegexExpression(RegexExpression expression);
202:
203:            public void visitGStringExpression(GStringExpression expression);
204:
205:            public void visitArrayExpression(ArrayExpression expression);
206:
207:            public void visitSpreadExpression(SpreadExpression expression);
208:
209:            public void visitSpreadMapExpression(SpreadMapExpression expression);
210:
211:            public void visitNotExpression(NotExpression expression);
212:
213:            public void visitNegationExpression(NegationExpression expression);
214:
215:            public void visitBitwiseNegExpression(
216:                    BitwiseNegExpression expression);
217:
218:            public void visitCastExpression(CastExpression expression);
219:
220:            public void visitArgumentlistExpression(
221:                    ArgumentListExpression expression);
222:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.