Source Code Cross Referenced for TypedLambdaTypes.java in  » Parser » Rats-Parser-Generators » xtc » lang » 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 » Parser » Rats Parser Generators » xtc.lang 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // ===========================================================================
002:        // This file has been generated by
003:        // Typical, version 1.13.1,
004:        // (C) 2004-2007 Robert Grimm and New York University,
005:        // on Monday, October 15, 2007 at 8:59:39 PM.
006:        // Edit at your own risk.
007:        // ===========================================================================
008:
009:        package xtc.lang;
010:
011:        import xtc.typical.Record;
012:        import xtc.typical.Variant;
013:        import xtc.typical.Tuple;
014:
015:        /** Types for TypedLambda. */
016:        public class TypedLambdaTypes {
017:            /** Implementation of constructor 'IntegerT' in variant 'raw_type'. */
018:            public static class IntegerT extends raw_type<Tuple.T0> {
019:                public IntegerT() {
020:                    tuple = new Tuple.T0();
021:                }
022:
023:                public final Tag tag() {
024:                    return Tag.IntegerT;
025:                }
026:
027:                public boolean isIntegerT() {
028:                    return true;
029:                }
030:
031:                public String getName() {
032:                    return "IntegerT";
033:                }
034:
035:                public String toString() {
036:                    return "IntegerT";
037:                }
038:            }
039:
040:            /** Implementation of constructor 'StringT' in variant 'raw_type'. */
041:            public static class StringT extends raw_type<Tuple.T0> {
042:                public StringT() {
043:                    tuple = new Tuple.T0();
044:                }
045:
046:                public final Tag tag() {
047:                    return Tag.StringT;
048:                }
049:
050:                public boolean isStringT() {
051:                    return true;
052:                }
053:
054:                public String getName() {
055:                    return "StringT";
056:                }
057:
058:                public String toString() {
059:                    return "StringT";
060:                }
061:            }
062:
063:            /** Implementation of constructor 'FunctionT' in variant 'raw_type'. */
064:            public static class FunctionT
065:                    extends
066:                    raw_type<Tuple.T2<TypedLambdaTypes.raw_type<?>, TypedLambdaTypes.raw_type<?>>> {
067:                public FunctionT(TypedLambdaTypes.raw_type<?> member1,
068:                        TypedLambdaTypes.raw_type<?> member2) {
069:                    tuple = new Tuple.T2<TypedLambdaTypes.raw_type<?>, TypedLambdaTypes.raw_type<?>>(
070:                            member1, member2);
071:                }
072:
073:                public final Tag tag() {
074:                    return Tag.FunctionT;
075:                }
076:
077:                public boolean isFunctionT() {
078:                    return true;
079:                }
080:
081:                public String getName() {
082:                    return "FunctionT";
083:                }
084:
085:                public String toString() {
086:                    return "FunctionT of " + tuple.toString();
087:                }
088:            }
089:
090:            /** Superclass of all constructors in variant 'raw_type'. */
091:            public static abstract class raw_type<T extends Tuple> extends
092:                    Variant<T> {
093:                public static enum Tag {
094:                    IntegerT, StringT, FunctionT
095:                }
096:
097:                protected raw_type() {
098:                }
099:
100:                public abstract Tag tag();
101:
102:                public boolean isIntegerT() {
103:                    return false;
104:                }
105:
106:                public boolean isStringT() {
107:                    return false;
108:                }
109:
110:                public boolean isFunctionT() {
111:                    return false;
112:                }
113:            }
114:
115:            /** Implementation of record 'type'. */
116:            public static class type implements  Record {
117:                public TypedLambdaTypes.raw_type<?> type;
118:
119:                public type(TypedLambdaTypes.raw_type<?> type) {
120:                    this .type = type;
121:                }
122:
123:                public boolean equals(Object o) {
124:                    if (o == null) {
125:                        return false;
126:                    }
127:                    if (!(o instanceof  type)) {
128:                        return false;
129:                    }
130:
131:                    type other = (type) o;
132:                    boolean res = true;
133:
134:                    res = res && type.equals(other.type);
135:                    return res;
136:                }
137:
138:                public String toString() {
139:                    return "{" + (null == type ? "?" : type.toString()) + "}";
140:                }
141:            }
142:
143:            private TypedLambdaTypes() {
144:            }
145:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.