Source Code Cross Referenced for Procedure.java in  » XML » saxonb » net » sf » saxon » instruct » 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 » XML » saxonb » net.sf.saxon.instruct 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sf.saxon.instruct;
002:
003:        import net.sf.saxon.expr.ComputedExpression;
004:        import net.sf.saxon.expr.Container;
005:        import net.sf.saxon.expr.Expression;
006:        import net.sf.saxon.expr.ExpressionTool;
007:        import net.sf.saxon.event.LocationProvider;
008:
009:        import java.io.Serializable;
010:
011:        /**
012:         * This object represents the compiled form of a user-written function, template, attribute-set, etc
013:         * (the source can be either an XSLT stylesheet function or an XQuery function).
014:         *
015:         * <p>It is assumed that type-checking, of both the arguments and the results,
016:         * has been handled at compile time. That is, the expression supplied as the body
017:         * of the function must be wrapped in code to check or convert the result to the
018:         * required type, and calls on the function must be wrapped at compile time to check or
019:         * convert the supplied arguments.
020:         */
021:
022:        public class Procedure implements  Serializable, Container,
023:                LocationProvider {
024:
025:            private Expression body;
026:            private Executable executable;
027:            private String systemId;
028:            private int lineNumber;
029:            private SlotManager stackFrameMap;
030:
031:            public Procedure() {
032:            };
033:
034:            public void setBody(Expression body) {
035:                this .body = body;
036:                ExpressionTool.makeParentReferences(body);
037:                if (body instanceof  ComputedExpression) {
038:                    ((ComputedExpression) body).setParentExpression(this );
039:                }
040:            }
041:
042:            public final Expression getBody() {
043:                return body;
044:            }
045:
046:            public void setStackFrameMap(SlotManager map) {
047:                stackFrameMap = map;
048:            }
049:
050:            public SlotManager getStackFrameMap() {
051:                return stackFrameMap;
052:            }
053:
054:            public final Executable getExecutable() {
055:                return executable;
056:            }
057:
058:            public void setExecutable(Executable executable) {
059:                this .executable = executable;
060:            }
061:
062:            /**
063:             * Get the LocationProvider allowing location identifiers to be resolved.
064:             */
065:
066:            public LocationProvider getLocationProvider() {
067:                return this ;
068:            }
069:
070:            public void setLineNumber(int lineNumber) {
071:                this .lineNumber = lineNumber;
072:            }
073:
074:            public void setSystemId(String systemId) {
075:                this .systemId = systemId;
076:            }
077:
078:            public int getLineNumber() {
079:                return lineNumber;
080:            }
081:
082:            public String getSystemId() {
083:                return systemId;
084:            }
085:
086:            public int getColumnNumber() {
087:                return -1;
088:            }
089:
090:            public String getPublicId() {
091:                return null;
092:            }
093:
094:            public String getSystemId(int locationId) {
095:                return systemId;
096:            }
097:
098:            public int getLineNumber(int locationId) {
099:                return lineNumber;
100:            }
101:
102:        }
103:
104:        //
105:        // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
106:        // you may not use this file except in compliance with the License. You may obtain a copy of the
107:        // License at http://www.mozilla.org/MPL/
108:        //
109:        // Software distributed under the License is distributed on an "AS IS" basis,
110:        // WITHOUT WARRANTY OF ANY KIND, either express or implied.
111:        // See the License for the specific language governing rights and limitations under the License.
112:        //
113:        // The Original Code is: all this file.
114:        //
115:        // The Initial Developer of the Original Code is Michael H. Kay
116:        //
117:        // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
118:        //
119:        // Contributor(s): none
120:        //
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.