Java Doc for Typing.java in  » Scripting » Nice » mlsub » typing » 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 » Nice » mlsub.typing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   mlsub.typing.Typing

Typing
final public class Typing (Code)
Static class for comparing types
version:
   $Date: 2004/06/29 18:38:18 $
author:
   Daniel Bonniot


Field Summary
public static  booleandbg
    
static  intlevel
    


Method Summary
public static  voidassertAbs(TypeConstructor t, Interface i)
    
public static  voidassertAbs(TypeConstructor t, Interface[] is)
    
public static  voidassertImp(TypeConstructor t, Interface i, boolean initial)
    
public static  voidassertImp(TypeConstructor t, Interface[] is, boolean initial)
    
public static  voidassertLeq(Interface i, Interface j)
    
public static  voidassertLeq(Interface itf, Interface[] is)
    
public static  voidcreateInitialContext()
    
public static  intenter()
     Enters a new typing context.
public static  intenter(boolean tentative)
    
public static  intenter(String message)
    
public static  voideq(Monotype m1, Monotype m2)
    
public static  voidimplies()
    
public static  voidin(Polytype type, Monotype domain)
     Test if a polytype is in a domain.
public static  voidin(Polytype[] types, Monotype[] domains)
    
public static  voidinitialLeq(TypeConstructor t, TypeConstructor[] ts)
    
public static  voidinitialLeq(TypeConstructor t1, TypeConstructor t2)
    
public static  voidintroduce(Element e)
    
public static  voidintroduce(Element[] elements)
    
public static  voidintroduceTypeSymbols(TypeSymbol[] elements)
    
public static  booleanisInRigidContext()
    
static  booleanisTop(Monotype m)
    
public static  intleave()
     Leaves the last typing context.
public static  intleave(boolean tentative, boolean commit)
    
public static  voidleq(Collection c1, Collection c2)
    
public static  voidleq(TypeConstructor t, Collection c)
    
public static  voidleq(TypeConstructor t, Monotype m)
    
public static  voidleq(TypeConstructor[] ts, Monotype[] ms)
    
public static  voidleq(Monotype m, TypeConstructor t)
    
public static  voidleq(Polytype t1, Polytype t2)
    
public static  voidleq(Polytype t1, Monotype m2)
     Particular case.
public static  voidleq(Monotype m1, Monotype m2)
    
public static  voidleq(Monotype[] ms1, Monotype[] ms2)
    
public static  voidleq(Monotype[] ms1, Monotype[] ms2, boolean dispatchable)
    
public static  voidleq(TypeConstructor t1, TypeConstructor t2)
    
public static  voidleq(Domain d1, Domain d2)
     Test if d1 is a subdomain of d2.
public static  voidleq(Domain d1, Domain d2, boolean dispatchable)
     Test if d1 is a subdomain of d2.
public static  voidleqHead(Monotype[] vars, Monotype[] base)
     Assert that the vars are matching the base head constructors.
public static  TypeConstructorlowestInstance(TypeConstructor tc)
     Find an instance of the parameter that can exist at runtime (isConcrete() is true).
public static  voidreleaseInitialContext()
    
public static  booleansmaller(Domain d1, Domain d2)
    
public static  booleansmaller(Domain d1, Domain d2, boolean dispatchable)
    
public static  voidstartNewCompilation()
     Called before each independant compilation. This must clear any side-effect of previous compilations.
public static  booleantestLeq(TypeConstructor t1, TypeConstructor t2)
    
public static  booleantestRigidLeq(TypeConstructor t1, TypeConstructor t2)
    

Field Detail
dbg
public static boolean dbg(Code)



level
static int level(Code)





Method Detail
assertAbs
public static void assertAbs(TypeConstructor t, Interface i) throws TypingEx(Code)



assertAbs
public static void assertAbs(TypeConstructor t, Interface[] is) throws TypingEx(Code)



assertImp
public static void assertImp(TypeConstructor t, Interface i, boolean initial) throws TypingEx(Code)



assertImp
public static void assertImp(TypeConstructor t, Interface[] is, boolean initial) throws TypingEx(Code)



assertLeq
public static void assertLeq(Interface i, Interface j) throws KindingEx(Code)
Interfaces assertions



assertLeq
public static void assertLeq(Interface itf, Interface[] is) throws KindingEx(Code)



createInitialContext
public static void createInitialContext()(Code)



enter
public static int enter()(Code)
Enters a new typing context. If an enter() completed successfully, a matching leave() MUST be issued some time later by the caller.



enter
public static int enter(boolean tentative)(Code)

Parameters:
  tentative - when true, we will decide upon leaving if we want to commit the changes made to existential type variables or not.



enter
public static int enter(String message)(Code)
Enters a new typing context
Parameters:
  message - A debug message to know where we are



eq
public static void eq(Monotype m1, Monotype m2) throws TypingEx(Code)



implies
public static void implies() throws TypingEx(Code)



in
public static void in(Polytype type, Monotype domain) throws TypingEx(Code)
Test if a polytype is in a domain.



in
public static void in(Polytype[] types, Monotype[] domains) throws TypingEx(Code)
Checks wether types belong to domains
Parameters:
  types - a collection of Polytypes
Parameters:
  domains - a collection of domains
exception:
  TypingEx -



initialLeq
public static void initialLeq(TypeConstructor t, TypeConstructor[] ts) throws TypingEx(Code)



initialLeq
public static void initialLeq(TypeConstructor t1, TypeConstructor t2) throws TypingEx(Code)
Type constructors



introduce
public static void introduce(Element e)(Code)



introduce
public static void introduce(Element[] elements)(Code)



introduceTypeSymbols
public static void introduceTypeSymbols(TypeSymbol[] elements)(Code)



isInRigidContext
public static boolean isInRigidContext()(Code)



isTop
static boolean isTop(Monotype m)(Code)
Tools



leave
public static int leave() throws TypingEx(Code)
Leaves the last typing context.



leave
public static int leave(boolean tentative, boolean commit) throws TypingEx(Code)

Parameters:
  tentative - must match the parameter used when entering
Parameters:
  commit - if tentative is true, then commit selects whether we want to commit the changes made to existential type variables or not.



leq
public static void leq(Collection c1, Collection c2) throws TypingEx(Code)
Assertions



leq
public static void leq(TypeConstructor t, Collection c) throws TypingEx(Code)



leq
public static void leq(TypeConstructor t, Monotype m) throws TypingEx(Code)
Test that t is leq that m's head



leq
public static void leq(TypeConstructor[] ts, Monotype[] ms) throws TypingEx(Code)



leq
public static void leq(Monotype m, TypeConstructor t) throws TypingEx(Code)
Test that t is geq that m's head



leq
public static void leq(Polytype t1, Polytype t2) throws TypingEx(Code)
Testing Polytype <= Polytype



leq
public static void leq(Polytype t1, Monotype m2) throws TypingEx(Code)
Particular case.



leq
public static void leq(Monotype m1, Monotype m2) throws TypingEx(Code)
Monotypes



leq
public static void leq(Monotype[] ms1, Monotype[] ms2) throws TypingEx(Code)



leq
public static void leq(Monotype[] ms1, Monotype[] ms2, boolean dispatchable) throws TypingEx(Code)

Parameters:
  dispatchable - when true, we require that non dispatchable types beequal, not mere subtypes.



leq
public static void leq(TypeConstructor t1, TypeConstructor t2) throws TypingEx(Code)



leq
public static void leq(Domain d1, Domain d2) throws TypingEx(Code)
Test if d1 is a subdomain of d2.



leq
public static void leq(Domain d1, Domain d2, boolean dispatchable) throws TypingEx(Code)
Test if d1 is a subdomain of d2.
Parameters:
  dispatchable - when true, we require that non dispatchable types beequal, not mere subtypes.



leqHead
public static void leqHead(Monotype[] vars, Monotype[] base) throws TypingEx(Code)
Assert that the vars are matching the base head constructors.



lowestInstance
public static TypeConstructor lowestInstance(TypeConstructor tc)(Code)
Find an instance of the parameter that can exist at runtime (isConcrete() is true). It's better to return a lower (more precise) one.



releaseInitialContext
public static void releaseInitialContext()(Code)



smaller
public static boolean smaller(Domain d1, Domain d2)(Code)



smaller
public static boolean smaller(Domain d1, Domain d2, boolean dispatchable)(Code)

Parameters:
  dispatchable - when true, we require that non dispatchable types beequal, not mere subtypes.



startNewCompilation
public static void startNewCompilation()(Code)
Called before each independant compilation. This must clear any side-effect of previous compilations.



testLeq
public static boolean testLeq(TypeConstructor t1, TypeConstructor t2)(Code)



testRigidLeq
public static boolean testRigidLeq(TypeConstructor t1, TypeConstructor t2)(Code)
Rigid tests



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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