Source Code Cross Referenced for ProcessingManager.java in  » Code-Analyzer » Spoon » spoon » processing » 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 » Code Analyzer » Spoon » spoon.processing 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* 
002:         * Spoon - http://spoon.gforge.inria.fr/
003:         * Copyright (C) 2006 INRIA Futurs <renaud.pawlak@inria.fr>
004:         * 
005:         * This software is governed by the CeCILL-C License under French law and
006:         * abiding by the rules of distribution of free software. You can use, modify 
007:         * and/or redistribute the software under the terms of the CeCILL-C license as 
008:         * circulated by CEA, CNRS and INRIA at http://www.cecill.info. 
009:         * 
010:         * This program is distributed in the hope that it will be useful, but WITHOUT 
011:         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
012:         * FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL-C License for more details.
013:         *  
014:         * The fact that you are presently reading this means that you have had
015:         * knowledge of the CeCILL-C license and that you accept its terms.
016:         */
017:
018:        package spoon.processing;
019:
020:        import java.util.Collection;
021:
022:        import spoon.reflect.declaration.CtElement;
023:
024:        /**
025:         * The processing manager defines the API to process a program model of a given
026:         * {@link spoon.reflect.Factory} with a set of processors. The program model has
027:         * been previously built using a {@link spoon.processing.Builder} - see
028:         * {@link spoon.processing.Builder#build()}. To use, add processors to
029:         * the manager, and then call the {@code process} method. The processors will be
030:         * removed from the manager once applied. Also, the method
031:         * {@link spoon.processing.Processor#processingDone()} is upcalled.
032:         * 
033:         * @see spoon.processing.Environment#getManager()
034:         */
035:        public interface ProcessingManager extends FactoryAccessor {
036:            /**
037:             * Adds a processor by instantiating its type (a class that must define an
038:             * empty constructor).
039:             * 
040:             * @see #getProcessors().
041:             */
042:            void addProcessor(Class<? extends Processor<?>> type);
043:
044:            /**
045:             * Adds a processor.
046:             * 
047:             * @see #getProcessors().
048:             */
049:            boolean addProcessor(Processor<?> p);
050:
051:            /**
052:             * Adds a processor by instantiating its type (a class that must define an
053:             * empty constructor and implement {@link Processor}).
054:             * 
055:             * @param qualifiedName
056:             *            the qualified name of the processor's type
057:             * @see #getProcessors().
058:             */
059:            void addProcessor(String qualifiedName);
060:
061:            /**
062:             * Returns {@code true} if the manager will apply a given processor type
063:             * when invoking one of the {@code process} methods. To be applied
064:             * processors are the ones that have been added with one of the
065:             * {@code addProcessor} methods.
066:             * 
067:             * @see #process(Collection)
068:             * @see #process()
069:             */
070:            boolean isToBeApplied(Class<? extends Processor<?>> type);
071:
072:            /**
073:             * Gets the processors that have been added to the manager and that will be
074:             * applied when invoking one of the {@code process} methods).
075:             * 
076:             * @see #process(Collection)
077:             * @see #process()
078:             */
079:            Collection<Processor<?>> getProcessors();
080:
081:            /**
082:             * Recursively processes a collection of {@link CtElement}s with this
083:             * manager. All the processors added to this manager (see
084:             * {@link #getProcessors()}) should be applied before the method returns
085:             * (blocking implementation) or before another call to a
086:             * <code>process</code> method (non-blocking implementation). Processors
087:             * that have been applied are removed from the manager and
088:             * {@link #getProcessors()} does not contain them anymore.
089:             */
090:            void process(Collection<? extends CtElement> elements);
091:
092:            /**
093:             * Recursively processes a {@link CtElement} with this manager. All the
094:             * processors added to this manager (see {@link #getProcessors()}) should
095:             * be applied before the method returns (blocking implementation) or before
096:             * another call to a <code>process</code> method (non-blocking
097:             * implementation). Processors that have been applied are removed from the
098:             * manager and {@link #getProcessors()} does not contain them anymore.
099:             */
100:            void process(CtElement element);
101:
102:            /**
103:             * Processes the entire factory's model with this manager. All the
104:             * processors added to this manager (see {@link #getProcessors()}) should
105:             * be applied before the method returns (blocking implementation) or before
106:             * another call to a <code>process</code> method (non-blocking
107:             * implementation). Processors that have been applied are removed from the
108:             * manager and {@link #getProcessors()} does not contain them anymore.
109:             */
110:            void process();
111:
112:            /**
113:             * Gets the processor which is currently achieving the processing task if
114:             * any.
115:             */
116:            Processor<?> getCurrentProcessor();
117:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.