Method and apparatus for a cross-platform translator from VB.net to java
a cross-platform translator and java technology, applied in the field of methods and apparatus for a cross-platform translator from vb.net to java, can solve the problems of impracticality of translating translators, lack of grappling with the abundance and complexity of platform differences, and focusing on language features with modestness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Benefits of technology
Problems solved by technology
Method used
Image
Examples
example 1
[0087]
1 Class Class123 Sub Sub14 Dim Obj1 As New UndeclaredType15 Obj1.function1(Timer( ))6 Dim IntValue As Integer = Timer( )7 End Sub8 End Class
[0088]In this example, function1 is an undeclared function because the definition of the class which contains the function, UndeclaredType1, is not available in the source which is input to the translation method. Thus the signature of function1 is unknown. Line 5: ‘Obj1.function1(Timer( ))’ has the effect of putting the parameter to function1 into the same unknown type set as the return type of Timer( ). That is, the parameter to function1 and the return type of Timer( ) are in the same unknown type set.
[0089]In one embodiment of the translation method of the present invention, the translate controller (120) controls the setting of the phase. During the type dependency phase of the translate controller of the invention (210), the unknown type sets are constructed for all objects of unknown type. For one embodiment of the translation...
example 2
[0103]
1 Class Class12 Sub Main3 Name1.method14 Name2.item1 = Name1.method15 Dim Name3 As Object = Name4.Name5.Name66 Dim Name7 As Object = new Name87 End Sub8 End Class
[0104]All of the names in Example 2 except Name3 and Name7 are undeclared. In one embodiment of translation method the present invention, ‘fixup undeclared name’ determines valid kinds for the undeclared names. Specifically, it determines that Name1 is a class name (980), method1 is a method name (970), Name2 is a class name (980), item1 is a setter name (940), Name4 is a namespace, Name5 is a class (980), Name6 is a method (970), and Name8 is a class (990). (Note that FIG. 9 does not break out the identification of namespaces, as namespaces are encountered as part of type names, and their processing is folded into the processing of type names.) The translation method of the present invention will generate the source code for classes Name1, Name2, Name4.Name5, and Name8, into the translation interfaces directory (...
example 3
[0105]
1 class Class1 { 2 public static void main(String[ ] args) { 3 Name1.method1( ); 4 Name2.set_item1(Name1.method1( )); 5 Object Name3 = Name4.Name5.Name6( ); 6 Object Name7 = new Name8 ( ); 7 } 8 }
[0106]Recall that the analysis of the expression by one embodiment of the translation method of the present invention is performed through three steps, where the first step is the translation of each operand (430, 450). The preceding discussion details the first step. The preceding discussion has shown how ‘translate operand’ first calls ‘get symbol’ for the operand (500) and then does any needed fixups (510). After any needed fixups have been performed, ‘translate operand’ formats the operand into the expression result and returns the symbol for the operand. Now the presentation of the first step of expression analysis for one embodiment of the translation method of the present invention, operand translation, is complete.
[0107]Referring again to FIG. 4, for one em...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com