Java Doc for JavaTypeConverter.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 Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   xtc.lang.JavaTypeConverter

JavaTypeConverter
final public class JavaTypeConverter (Code)
Java type conversions and promotions.
author:
   Martin Hirzel
See Also:    JLS 2 §5




Method Summary
public static  TypeconvertAssigning(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Perform assignment conversion.
public static  TypeconvertCasting(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Perform casting conversion.
public static  TypeconvertIdentity(Type tgt, Type src)
     Perform identity conversion.
public static  TypeconvertParameterPassing(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Perform method invocation conversion.
public static  TypeconvertString(SymbolTable tab, Type src)
     Perform string conversion.
public static  booleanisAssignable(SymbolTable tab, List<File> paths, Type tgt, Type src)
    
public static  booleanisCastable(SymbolTable tab, List<File> paths, Type tgt, Type src)
    
public static  booleanisIdentical(Type x, Type y)
    
public static  booleanisNarrowerPrimitive(Type tgt, Type src)
    
public static  booleanisNarrowerReference(SymbolTable tab, List<File> paths, Type tgt, Type src)
    
public static  booleanisParameterPassable(SymbolTable tab, List<File> paths, Type tgt, Type src)
    
public static  booleanisPromotableBinaryNumeric(Type other, Type src)
    
public static  booleanisReturnTypeSubstitutable(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Is src return-type substitutable for tgt? This method implements Java 3 Language Specification §8.4.5, unlike the rest of this type checker, which deals with Java 2 only.
public static  booleanisWiderPrimitive(Type tgt, Type src)
    
public static  booleanisWiderReference(SymbolTable tab, List<File> paths, Type tgt, Type src)
    
public static strictfp  TypenarrowPrimitive(Type tgt, Type src)
     Perform narrowing primitive conversion.
public static  TypenarrowReference(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Perform narrowing reference conversion.
public static  TypepromoteBinaryNumeric(Type other, Type src)
     Perform binary numeric promotion.
public static  TypepromoteUnaryNumeric(Type src)
     Perform unary numeric promotion.
public static strictfp  TypewidenPrimitive(Type tgt, Type src)
     Perform widening primitive conversion.
public static  TypewidenReference(SymbolTable tab, List<File> paths, Type tgt, Type src)
     Perform widening reference conversion.



Method Detail
convertAssigning
public static Type convertAssigning(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Perform assignment conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. May resolve other aliases, such as supertypes, method parameter and return types, etc. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.2



convertCasting
public static Type convertCasting(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Perform casting conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. May resolve other aliases, such as supertypes, method parameter and return types, etc. The converted type, or null if this kind of conversion does notapply.
See Also:    JLS 2 §5.5



convertIdentity
public static Type convertIdentity(Type tgt, Type src)(Code)
Perform identity conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.1



convertParameterPassing
public static Type convertParameterPassing(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Perform method invocation conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. May resolve other aliases, such as supertypes, method parameter and return types, etc. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.3



convertString
public static Type convertString(SymbolTable tab, Type src)(Code)
Perform string conversion. May resolve JavaEntities.tString(tab) if that is an alias. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.6
See Also:    JLS 2 §5.4
See Also:    JLS 2 §15.18.1



isAssignable
public static boolean isAssignable(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)



isCastable
public static boolean isCastable(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)



isIdentical
public static boolean isIdentical(Type x, Type y)(Code)



isNarrowerPrimitive
public static boolean isNarrowerPrimitive(Type tgt, Type src)(Code)



isNarrowerReference
public static boolean isNarrowerReference(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)



isParameterPassable
public static boolean isParameterPassable(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)



isPromotableBinaryNumeric
public static boolean isPromotableBinaryNumeric(Type other, Type src)(Code)



isReturnTypeSubstitutable
public static boolean isReturnTypeSubstitutable(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Is src return-type substitutable for tgt? This method implements Java 3 Language Specification §8.4.5, unlike the rest of this type checker, which deals with Java 2 only.



isWiderPrimitive
public static boolean isWiderPrimitive(Type tgt, Type src)(Code)



isWiderReference
public static boolean isWiderReference(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)



narrowPrimitive
public static strictfp Type narrowPrimitive(Type tgt, Type src)(Code)
Perform narrowing primitive conversion. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.3



narrowReference
public static Type narrowReference(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Perform narrowing reference conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. May resolve other aliases, such as supertypes, method parameter and return types, etc. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.5



promoteBinaryNumeric
public static Type promoteBinaryNumeric(Type other, Type src)(Code)
Perform binary numeric promotion. Given a binary expression "a op b", this method should be called twice: once with src=a and other=b, and once with src=b and other=a.
Parameters:
  src - The type of the operand that is being promoted.
Parameters:
  other - The type of the other operand. The converted type of the src operand, or null if this kind ofconversion does not apply.
See Also:    JLS 2 §5.6.2



promoteUnaryNumeric
public static Type promoteUnaryNumeric(Type src)(Code)
Perform unary numeric promotion. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.6.1



widenPrimitive
public static strictfp Type widenPrimitive(Type tgt, Type src)(Code)
Perform widening primitive conversion. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.2



widenReference
public static Type widenReference(SymbolTable tab, List<File> paths, Type tgt, Type src)(Code)
Perform widening reference conversion. Assumes that src and tgt are either not aliases, or if aliases, are already resolved. May resolve other aliases, such as supertypes, method parameter and return types, etc. The converted type, or null if this kind of conversion does not apply.
See Also:    JLS 2 §5.1.4



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.