Java Doc for CodeGenerator.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » sc » 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 » Ajax » Laszlo 4.0.10 » org.openlaszlo.sc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.sc.CommonGenerator
      org.openlaszlo.sc.CodeGenerator

CodeGenerator
public class CodeGenerator extends CommonGenerator implements Translator(Code)

Inner Class :static class LabelMap
Inner Class :static class ForValue
Inner Class :abstract public static class Reference
Inner Class :abstract public static class MemberReference extends Reference
Inner Class :public static class VariableReference extends Reference
Inner Class :public static class PropertyReference extends MemberReference
Inner Class :public static class IndexReference extends MemberReference
Inner Class :public static class LiteralReference extends Reference

Field Summary
static  LessHalfAssedHashMapAssignOpTable
    
static  LessHalfAssedHashMapBinopInstrs
    
static  LessHalfAssedHashMapUnopInstrs
    
static  LessHalfAssedHashMapXfixInstrs
    
 StringprevStatFile
    
 intprevStatLine
    


Method Summary
 voidcheckUndefinedFunction(SimpleNode node, String reference)
    
 voidcheckUndefinedMethod(SimpleNode node, String methodName)
    
 SimpleNode[]meterFunctionEvent(SimpleNode node, String event, String name)
    
public  StringnewLabel(SimpleNode node)
    
public  StringnewLabel(SimpleNode node, String name)
    
 voidnoteCallSite(SimpleNode node)
    
 voidreport(String reportMethod, SimpleNode node, Object message)
    
 voidreport(String reportMethod, SimpleNode node, Object message, Instruction inst)
    
protected  voidsetRuntime(String runtime)
    
 voidshowStats(SimpleNode node)
    
public  SimpleNodetranslate(SimpleNode program)
    
 SimpleNodetranslateAbruptCompletion(SimpleNode node, String type, ASTIdentifier label)
    
 SimpleNodetranslateAndOrExpression(SimpleNode node, boolean isand, SimpleNode a, SimpleNode b)
    
 SimpleNodetranslateBinaryExpression(SimpleNode node, boolean isReferenced, ASTOperator op, SimpleNode a, SimpleNode b)
    
 SimpleNodetranslateControlStructure(SimpleNode node, Object[] seq)
    
 SimpleNodetranslateForInStatement(SimpleNode node, SimpleNode var, Instruction varset, SimpleNode obj, SimpleNode body)
    
 SimpleNodetranslateForStatement(SimpleNode node, SimpleNode[] children)
    
 voidtranslateFunction(SimpleNode node, boolean useName, SimpleNode[] children)
    
 SimpleNodetranslateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children)
    
 SimpleNodetranslateInclude(String userfname, String cpass)
    
 voidtranslateInternal(SimpleNode program, String cpass, boolean top)
    
 ObjecttranslateLiteralNode(SimpleNode node)
    
 ReferencetranslateReference(SimpleNode node)
    
 ReferencetranslateReference(SimpleNode node, int referenceCount)
    
 booleantranslateReferenceForCall(SimpleNode ast)
    
 booleantranslateReferenceForCall(SimpleNode ast, boolean checkDefined, SimpleNode node)
    
 SimpleNodetranslateXfixExpression(SimpleNode refnode, SimpleNode opnode, boolean isPrefix, boolean isReferenced)
    
public  voidunwindEnumeration(SimpleNode node)
    
public  SimpleNodevisitArrayLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitAssignmentExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitBinaryExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitConditionalExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitDoWhileStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitEmptyExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitExpression(SimpleNode node)
    
public  SimpleNodevisitExpression(SimpleNode node, boolean isReferenced)
    
public  SimpleNodevisitExpressionList(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitForInStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitForStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitForVarStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitFunctionCallParameters(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitFunctionDeclaration(SimpleNode node, SimpleNode[] ast)
    
public  SimpleNodevisitFunctionExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitIdentifier(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitIfStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitNewExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitObjectLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitPostfixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitPrefixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitProgram(SimpleNode node, SimpleNode[] directives, String cpass)
    
public  SimpleNodevisitProgram(SimpleNode node, SimpleNode[] directives, String cpass, boolean top)
    
public  SimpleNodevisitPropertyIdentifierReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitPropertyValueReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitReturnStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitSuperCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitSwitchStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitThisReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitThrowStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitTryStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitUnaryExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)
    
public  SimpleNodevisitVariableDeclaration(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitWhileStatement(SimpleNode node, SimpleNode[] children)
    
public  SimpleNodevisitWithStatement(SimpleNode node, SimpleNode[] children)
    

Field Detail
AssignOpTable
static LessHalfAssedHashMap AssignOpTable(Code)



BinopInstrs
static LessHalfAssedHashMap BinopInstrs(Code)



UnopInstrs
static LessHalfAssedHashMap UnopInstrs(Code)



XfixInstrs
static LessHalfAssedHashMap XfixInstrs(Code)



prevStatFile
String prevStatFile(Code)



prevStatLine
int prevStatLine(Code)





Method Detail
checkUndefinedFunction
void checkUndefinedFunction(SimpleNode node, String reference)(Code)



checkUndefinedMethod
void checkUndefinedMethod(SimpleNode node, String methodName)(Code)



meterFunctionEvent
SimpleNode[] meterFunctionEvent(SimpleNode node, String event, String name)(Code)



newLabel
public String newLabel(SimpleNode node)(Code)



newLabel
public String newLabel(SimpleNode node, String name)(Code)



noteCallSite
void noteCallSite(SimpleNode node)(Code)



report
void report(String reportMethod, SimpleNode node, Object message)(Code)



report
void report(String reportMethod, SimpleNode node, Object message, Instruction inst)(Code)



setRuntime
protected void setRuntime(String runtime)(Code)



showStats
void showStats(SimpleNode node)(Code)



translate
public SimpleNode translate(SimpleNode program)(Code)



translateAbruptCompletion
SimpleNode translateAbruptCompletion(SimpleNode node, String type, ASTIdentifier label)(Code)



translateAndOrExpression
SimpleNode translateAndOrExpression(SimpleNode node, boolean isand, SimpleNode a, SimpleNode b)(Code)



translateBinaryExpression
SimpleNode translateBinaryExpression(SimpleNode node, boolean isReferenced, ASTOperator op, SimpleNode a, SimpleNode b)(Code)



translateControlStructure
SimpleNode translateControlStructure(SimpleNode node, Object[] seq)(Code)



translateForInStatement
SimpleNode translateForInStatement(SimpleNode node, SimpleNode var, Instruction varset, SimpleNode obj, SimpleNode body)(Code)



translateForStatement
SimpleNode translateForStatement(SimpleNode node, SimpleNode[] children)(Code)



translateFunction
void translateFunction(SimpleNode node, boolean useName, SimpleNode[] children)(Code)



translateFunctionInternal
SimpleNode translateFunctionInternal(SimpleNode node, boolean useName, SimpleNode[] children)(Code)



translateInclude
SimpleNode translateInclude(String userfname, String cpass)(Code)



translateInternal
void translateInternal(SimpleNode program, String cpass, boolean top)(Code)



translateLiteralNode
Object translateLiteralNode(SimpleNode node)(Code)



translateReference
Reference translateReference(SimpleNode node)(Code)



translateReference
Reference translateReference(SimpleNode node, int referenceCount)(Code)



translateReferenceForCall
boolean translateReferenceForCall(SimpleNode ast)(Code)



translateReferenceForCall
boolean translateReferenceForCall(SimpleNode ast, boolean checkDefined, SimpleNode node)(Code)



translateXfixExpression
SimpleNode translateXfixExpression(SimpleNode refnode, SimpleNode opnode, boolean isPrefix, boolean isReferenced)(Code)



unwindEnumeration
public void unwindEnumeration(SimpleNode node)(Code)



visitArrayLiteral
public SimpleNode visitArrayLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitAssignmentExpression
public SimpleNode visitAssignmentExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitBinaryExpressionSequence
public SimpleNode visitBinaryExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitCallExpression
public SimpleNode visitCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitConditionalExpression
public SimpleNode visitConditionalExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitDoWhileStatement
public SimpleNode visitDoWhileStatement(SimpleNode node, SimpleNode[] children)(Code)



visitEmptyExpression
public SimpleNode visitEmptyExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitExpression
public SimpleNode visitExpression(SimpleNode node)(Code)



visitExpression
public SimpleNode visitExpression(SimpleNode node, boolean isReferenced)(Code)



visitExpressionList
public SimpleNode visitExpressionList(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitForInStatement
public SimpleNode visitForInStatement(SimpleNode node, SimpleNode[] children)(Code)



visitForStatement
public SimpleNode visitForStatement(SimpleNode node, SimpleNode[] children)(Code)



visitForVarStatement
public SimpleNode visitForVarStatement(SimpleNode node, SimpleNode[] children)(Code)



visitFunctionCallParameters
public SimpleNode visitFunctionCallParameters(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitFunctionDeclaration
public SimpleNode visitFunctionDeclaration(SimpleNode node, SimpleNode[] ast)(Code)



visitFunctionExpression
public SimpleNode visitFunctionExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitIdentifier
public SimpleNode visitIdentifier(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitIfStatement
public SimpleNode visitIfStatement(SimpleNode node, SimpleNode[] children)(Code)



visitLiteral
public SimpleNode visitLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitNewExpression
public SimpleNode visitNewExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitObjectLiteral
public SimpleNode visitObjectLiteral(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitPostfixExpression
public SimpleNode visitPostfixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitPrefixExpression
public SimpleNode visitPrefixExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitProgram
public SimpleNode visitProgram(SimpleNode node, SimpleNode[] directives, String cpass)(Code)



visitProgram
public SimpleNode visitProgram(SimpleNode node, SimpleNode[] directives, String cpass, boolean top)(Code)



visitPropertyIdentifierReference
public SimpleNode visitPropertyIdentifierReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitPropertyValueReference
public SimpleNode visitPropertyValueReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitReturnStatement
public SimpleNode visitReturnStatement(SimpleNode node, SimpleNode[] children)(Code)



visitSuperCallExpression
public SimpleNode visitSuperCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitSwitchStatement
public SimpleNode visitSwitchStatement(SimpleNode node, SimpleNode[] children)(Code)



visitThisReference
public SimpleNode visitThisReference(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitThrowStatement
public SimpleNode visitThrowStatement(SimpleNode node, SimpleNode[] children)(Code)



visitTryStatement
public SimpleNode visitTryStatement(SimpleNode node, SimpleNode[] children)(Code)



visitUnaryExpression
public SimpleNode visitUnaryExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)



visitVariableDeclaration
public SimpleNode visitVariableDeclaration(SimpleNode node, SimpleNode[] children)(Code)



visitWhileStatement
public SimpleNode visitWhileStatement(SimpleNode node, SimpleNode[] children)(Code)



visitWithStatement
public SimpleNode visitWithStatement(SimpleNode node, SimpleNode[] children)(Code)



Fields inherited from org.openlaszlo.sc.CommonGenerator
static Set NonCodeGenerationOptions(Code)(Java Doc)
InstructionCollector collector(Code)(Java Doc)
TranslationContext context(Code)(Java Doc)
boolean debugVisit(Code)(Java Doc)
static java.util.regex.Pattern includePattern(Code)(Java Doc)
Compiler.OptionMap options(Code)(Java Doc)
String runtime(Code)(Java Doc)

Methods inherited from org.openlaszlo.sc.CommonGenerator
protected Integer UUID()(Code)(Java Doc)
public SimpleNode dispatchExpression(SimpleNode node, boolean isReferenced)(Code)(Java Doc)
Boolean evaluateCompileTimeConditional(SimpleNode node)(Code)(Java Doc)
String getCodeGenerationOptionsKey(List ignore)(Code)(Java Doc)
public InstructionCollector getCollector()(Code)(Java Doc)
public TranslationContext getContext()(Code)(Java Doc)
public Compiler.OptionMap getOptions()(Code)(Java Doc)
String includeFileToSourceString(File file, String userfname)(Code)(Java Doc)
File includeNameToFile(String userfname)(Code)(Java Doc)
boolean isExpressionType(SimpleNode node)(Code)(Java Doc)
ParseResult parseFile(File file, String userfname, String source)(Code)(Java Doc)
static SimpleNode parseFragment(String code)(Code)(Java Doc)
public void setOptions(Compiler.OptionMap options)(Code)(Java Doc)
abstract protected void setRuntime(String runtime)(Code)(Java Doc)
abstract void showStats(SimpleNode node)(Code)(Java Doc)
abstract SimpleNode translateAbruptCompletion(SimpleNode node, String type, ASTIdentifier label)(Code)(Java Doc)
abstract SimpleNode translateAndOrExpression(SimpleNode node, boolean isand, SimpleNode a, SimpleNode b)(Code)(Java Doc)
public void translateClassDirectivesBlock(SimpleNode[] dirs, String classnameString, List props, List classProps, List stmts)(Code)(Java Doc)
abstract SimpleNode translateForInStatement(SimpleNode node, SimpleNode var, Instructions.Instruction varset, SimpleNode obj, SimpleNode body)(Code)(Java Doc)
public SimpleNode translateSuperCallExpression(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitAndExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitBreakStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitChildren(SimpleNode node)(Code)(Java Doc)
public SimpleNode visitClassDefinition(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitContinueStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitDirectiveBlock(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitForVarInStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitIfDirective(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitLabeledStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitModifiedDefinition(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitOrExpressionSequence(SimpleNode node, boolean isReferenced, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitPragmaDirective(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitStatement(SimpleNode node)(Code)(Java Doc)
public SimpleNode visitStatement(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitStatementList(SimpleNode node, SimpleNode[] stmts)(Code)(Java Doc)
public SimpleNode visitVariableDeclarationList(SimpleNode node, SimpleNode[] children)(Code)(Java Doc)
public SimpleNode visitVariableStatement(SimpleNode node, SimpleNode[] children)(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.