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


java.lang.Object
   xtc.tree.Visitor
      xtc.lang.jeannie.CodeGenerator

CodeGenerator
public class CodeGenerator extends Visitor (Code)
A visitor that constructs separate C and Java ASTs from a JNI AST. Assumes that the input AST has been simplified with jeannie.AstSimplifier, and its types have been analyzed with jeannie.Analyzer.
author:
   Martin Hirzel

Inner Class :final public static class Context
Inner Class :final public static class Out
Inner Class :final static class StringString
Inner Class :final static class Substitutions implements Iterable<StringString>

Field Summary
final  JeannieCFactory_astFactoryC
    
final  JeannieJavaFactory_astFactoryJava
    
final  Substitutions_cSubstitutions
    
final  Stack<Context>_contexts
    
final  Map<String, Integer>_freshIdCount
    
final  Substitutions_javaSubstitutions
    
final  Runtime_runtime
    
final  SymbolTable_table
    
 Set<String>_usedIdentifiers
    

Constructor Summary
public  CodeGenerator(Runtime runtime, SymbolTable table)
    

Method Summary
public static  GNodesetLoc(Locatable loc, GNode n)
     Set location from loc to n, return n.
final public  Outvisit(LineMarker m)
    
final public  Outvisit(Node n)
     Catch-all visit method.
final public  OutvisitBasicForControl(GNode n)
     Visit a BasicForControl = Modifiers Type Declarators [Expression] [ExpressionList] / null null [ExpressionList] [Expression] [ExpressionList] (gosling_et_al_2000 §8.3).
final public  OutvisitCDeclarations(GNode n)
     Visit a CDeclarations = ExternalDeclaration* Annotations.
final public  OutvisitCInCBlock(GNode n)
     Visit a CInCBlock = LocalLabelDeclaration* JeannieC.DeclarationOrStatement* Annotations.
final public  OutvisitCInJavaBlock(GNode n)
     Visit a CInJavaBlock = CInCBlock.
final public  OutvisitCInJavaExpression(GNode n)
     Visit a CInJavaExpression = JeannieC.UnaryExpression.
final public  OutvisitCancelStatement(GNode n)
     Visit a CancelStatement = JeannieC.PrimaryIdentifier.
final public  OutvisitClassBody(GNode n)
     Visit a ClassBody = Declaration* (gosling_et_al_2000 §8.1.5, §9.1.3, §15.9).
final public  OutvisitCommitStatement(GNode n)
     Visit a CommitStatement = JeannieC.PrimaryIdentifier.
final public  OutvisitCompilationUnit(GNode n)
     Visit a CompilationUnit = CDeclarations [PackageDeclaration] ImportDeclaration* JeannieJava.Declaration* (gosling_et_al_2000 §7.3).
final public  OutvisitDeclaration(GNode n)
     Visit a JeannieC.Declaration = ["__extension__"] DeclarationSpecifiers [InitializedDeclaratorList].
final public  OutvisitFieldDeclaration(GNode n)
     Visit a FieldDeclaration = Modifiers Type Declarators (gosling_et_al_2000 §8.3).
final public  OutvisitForStatement(GNode n)
     Visit a ForStatement = (Declaration / [Expression]) [Expression] [Expression] Statement.
final public  OutvisitFunctionCall(GNode n)
     Visit a FunctionCall = (PrimaryIdentifier / JeannieC.PostfixExpression) JeannieC.ExpressionList.
final public  OutvisitFunctionDeclarator(GNode n)
     Visit a FunctionDeclarator = (ParameterTypeList / IdentifierList) JavaThrows.
final public  OutvisitFunctionDefinition(GNode n)
     Visit a FunctionDefinition = ["__extension__"] [DeclarationSpecifiers] Declarator [DeclarationList] CompoundStatement.
final public  OutvisitJavaImports(GNode n)
     Visit a JavaImports = ImportDeclaration*.
final public  OutvisitJavaInCBlock(GNode n)
     Visit a JavaInCBlock = JavaInJavaBlock.
final public  OutvisitJavaInCExpression(GNode n)
     Visit a JavaInCExpression = JeannieJava.UnaryExpression.
final public  OutvisitJavaInCStatement(GNode n)
     Visit a JavaInCStatement = TryStatement / SynchronizedStatement / ThrowStatement.
final public  OutvisitJavaInJavaBlock(GNode n)
     Visit a JavaInJavaBlock = JeannieJava.DeclarationOrStatement*.
final public  OutvisitJavaThrows(GNode n)
     Visit a JavaThrows = [ThrowsClause].
final public  OutvisitJavaType(GNode n)
     Visit a JavaType = Java.TypeName.
final public  OutvisitMethodDeclaration(GNode n)
     Visit a MethodDeclaration = Modifiers null Type Identifier FormalParameters [Dimensions] [ThrowsClause] [Block] (gosling_et_al_2000 §8.4, 8.8, 9.4).
final public  OutvisitPrimaryIdentifier(GNode n)
     Visit a PrimaryIdentifier = Identifier (gosling_et_al_2000 §6.5).
final public  OutvisitReturnStatement(GNode n)
     Visit a ReturnStatement = [Expression] (gosling_et_al_2000 §14.16).
final public  OutvisitThisExpression(GNode n)
     Visit a ThisExpression = [Expression] (gosling_et_al_2000 §15.8.3, §15.8.4).
final public  OutvisitTranslationUnit(GNode n)
     Visit a TranslationUnit = [JavaImports] ExternalDeclaration* Annotations.
final public  OutvisitWithStatement(GNode n)
     Visit a WithStatement = (JeannieC.Declaration / JeannieC.AssignmentExpression) CInCBlock.

Field Detail
_astFactoryC
final JeannieCFactory _astFactoryC(Code)



_astFactoryJava
final JeannieJavaFactory _astFactoryJava(Code)



_cSubstitutions
final Substitutions _cSubstitutions(Code)



_contexts
final Stack<Context> _contexts(Code)



_freshIdCount
final Map<String, Integer> _freshIdCount(Code)



_javaSubstitutions
final Substitutions _javaSubstitutions(Code)



_runtime
final Runtime _runtime(Code)



_table
final SymbolTable _table(Code)



_usedIdentifiers
Set<String> _usedIdentifiers(Code)




Constructor Detail
CodeGenerator
public CodeGenerator(Runtime runtime, SymbolTable table)(Code)




Method Detail
setLoc
public static GNode setLoc(Locatable loc, GNode n)(Code)
Set location from loc to n, return n.



visit
final public Out visit(LineMarker m)(Code)



visit
final public Out visit(Node n)(Code)
Catch-all visit method.



visitBasicForControl
final public Out visitBasicForControl(GNode n)(Code)
Visit a BasicForControl = Modifiers Type Declarators [Expression] [ExpressionList] / null null [ExpressionList] [Expression] [ExpressionList] (gosling_et_al_2000 §8.3).



visitCDeclarations
final public Out visitCDeclarations(GNode n)(Code)
Visit a CDeclarations = ExternalDeclaration* Annotations.



visitCInCBlock
final public Out visitCInCBlock(GNode n)(Code)
Visit a CInCBlock = LocalLabelDeclaration* JeannieC.DeclarationOrStatement* Annotations.



visitCInJavaBlock
final public Out visitCInJavaBlock(GNode n)(Code)
Visit a CInJavaBlock = CInCBlock.



visitCInJavaExpression
final public Out visitCInJavaExpression(GNode n)(Code)
Visit a CInJavaExpression = JeannieC.UnaryExpression.



visitCancelStatement
final public Out visitCancelStatement(GNode n)(Code)
Visit a CancelStatement = JeannieC.PrimaryIdentifier.



visitClassBody
final public Out visitClassBody(GNode n)(Code)
Visit a ClassBody = Declaration* (gosling_et_al_2000 §8.1.5, §9.1.3, §15.9).



visitCommitStatement
final public Out visitCommitStatement(GNode n)(Code)
Visit a CommitStatement = JeannieC.PrimaryIdentifier.



visitCompilationUnit
final public Out visitCompilationUnit(GNode n)(Code)
Visit a CompilationUnit = CDeclarations [PackageDeclaration] ImportDeclaration* JeannieJava.Declaration* (gosling_et_al_2000 §7.3).



visitDeclaration
final public Out visitDeclaration(GNode n)(Code)
Visit a JeannieC.Declaration = ["__extension__"] DeclarationSpecifiers [InitializedDeclaratorList].



visitFieldDeclaration
final public Out visitFieldDeclaration(GNode n)(Code)
Visit a FieldDeclaration = Modifiers Type Declarators (gosling_et_al_2000 §8.3).



visitForStatement
final public Out visitForStatement(GNode n)(Code)
Visit a ForStatement = (Declaration / [Expression]) [Expression] [Expression] Statement.



visitFunctionCall
final public Out visitFunctionCall(GNode n)(Code)
Visit a FunctionCall = (PrimaryIdentifier / JeannieC.PostfixExpression) JeannieC.ExpressionList.



visitFunctionDeclarator
final public Out visitFunctionDeclarator(GNode n)(Code)
Visit a FunctionDeclarator = (ParameterTypeList / IdentifierList) JavaThrows.



visitFunctionDefinition
final public Out visitFunctionDefinition(GNode n)(Code)
Visit a FunctionDefinition = ["__extension__"] [DeclarationSpecifiers] Declarator [DeclarationList] CompoundStatement.



visitJavaImports
final public Out visitJavaImports(GNode n)(Code)
Visit a JavaImports = ImportDeclaration*.



visitJavaInCBlock
final public Out visitJavaInCBlock(GNode n)(Code)
Visit a JavaInCBlock = JavaInJavaBlock.



visitJavaInCExpression
final public Out visitJavaInCExpression(GNode n)(Code)
Visit a JavaInCExpression = JeannieJava.UnaryExpression.



visitJavaInCStatement
final public Out visitJavaInCStatement(GNode n)(Code)
Visit a JavaInCStatement = TryStatement / SynchronizedStatement / ThrowStatement.



visitJavaInJavaBlock
final public Out visitJavaInJavaBlock(GNode n)(Code)
Visit a JavaInJavaBlock = JeannieJava.DeclarationOrStatement*.



visitJavaThrows
final public Out visitJavaThrows(GNode n)(Code)
Visit a JavaThrows = [ThrowsClause].



visitJavaType
final public Out visitJavaType(GNode n)(Code)
Visit a JavaType = Java.TypeName.



visitMethodDeclaration
final public Out visitMethodDeclaration(GNode n)(Code)
Visit a MethodDeclaration = Modifiers null Type Identifier FormalParameters [Dimensions] [ThrowsClause] [Block] (gosling_et_al_2000 §8.4, 8.8, 9.4).



visitPrimaryIdentifier
final public Out visitPrimaryIdentifier(GNode n)(Code)
Visit a PrimaryIdentifier = Identifier (gosling_et_al_2000 §6.5).



visitReturnStatement
final public Out visitReturnStatement(GNode n)(Code)
Visit a ReturnStatement = [Expression] (gosling_et_al_2000 §14.16).



visitThisExpression
final public Out visitThisExpression(GNode n)(Code)
Visit a ThisExpression = [Expression] (gosling_et_al_2000 §15.8.3, §15.8.4).



visitTranslationUnit
final public Out visitTranslationUnit(GNode n)(Code)
Visit a TranslationUnit = [JavaImports] ExternalDeclaration* Annotations.



visitWithStatement
final public Out visitWithStatement(GNode n)(Code)
Visit a WithStatement = (JeannieC.Declaration / JeannieC.AssignmentExpression) CInCBlock.



Methods inherited from xtc.tree.Visitor
public Object dispatch(Node node)(Code)(Java Doc)

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.