Java Doc for SourceGenerationVisitor.java in  » Ajax » GWT » com » google » gwt » dev » jjs » impl » 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 » GWT » com.google.gwt.dev.jjs.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.google.gwt.dev.jjs.impl.TextOutputVisitor
   com.google.gwt.dev.jjs.impl.ToStringGenerationVisitor
      com.google.gwt.dev.jjs.impl.SourceGenerationVisitor

SourceGenerationVisitor
public class SourceGenerationVisitor extends ToStringGenerationVisitor (Code)
Generates Java source from our AST. ToStringGenerationVisitor is for relatively short toString() results, for easy viewing in a debugger. This subclass delves into the bodies of classes, interfaces, and methods to produce the whole source tree. The goal is not to generate the input source tree. Rather, the goal is to produce a set of classes that can be pasted into an enclosing class and compiled with a standard Java compiler. In practice, there are cases that require hand-editting to actually get a full compilation, due to Java's built-in reliance on particular built-in types. Known to be broken: Our generated String, Class, and Throwable are not compatable with the real ones, which breaks string literals, class literals, try/catch/throw, and overrides of Object methods.



Constructor Summary
public  SourceGenerationVisitor(TextOutput textOutput)
    

Method Summary
protected  voidprintMemberFinalFlag(CanBeFinal x)
    
protected  voidprintTypeName(JType type)
    
protected  booleanshouldPrintMethodBody()
    
public  booleanvisit(JClassType x, Context ctx)
    
public  booleanvisit(JField x, Context ctx)
    
public  booleanvisit(JInterfaceType x, Context ctx)
    
public  booleanvisit(JProgram x, Context ctx)
    
public  booleanvisit(JsniMethodBody x, Context ctx)
    


Constructor Detail
SourceGenerationVisitor
public SourceGenerationVisitor(TextOutput textOutput)(Code)




Method Detail
printMemberFinalFlag
protected void printMemberFinalFlag(CanBeFinal x)(Code)



printTypeName
protected void printTypeName(JType type)(Code)



shouldPrintMethodBody
protected boolean shouldPrintMethodBody()(Code)



visit
public boolean visit(JClassType x, Context ctx)(Code)



visit
public boolean visit(JField x, Context ctx)(Code)



visit
public boolean visit(JInterfaceType x, Context ctx)(Code)



visit
public boolean visit(JProgram x, Context ctx)(Code)



visit
public boolean visit(JsniMethodBody x, Context ctx)(Code)



Fields inherited from com.google.gwt.dev.jjs.impl.ToStringGenerationVisitor
final protected static char[] CHARS_ABSTRACT(Code)(Java Doc)
final protected static char[] CHARS_ASSERT(Code)(Java Doc)
final protected static char[] CHARS_BREAK(Code)(Java Doc)
final protected static char[] CHARS_CASE(Code)(Java Doc)
final protected static char[] CHARS_CATCH(Code)(Java Doc)
final protected static char[] CHARS_CLASS(Code)(Java Doc)
final protected static char[] CHARS_COMMA(Code)(Java Doc)
final protected static char[] CHARS_CONTINUE(Code)(Java Doc)
final protected static char[] CHARS_DEFAULT(Code)(Java Doc)
final protected static char[] CHARS_DO(Code)(Java Doc)
final protected static char[] CHARS_DOTCLASS(Code)(Java Doc)
final protected static char[] CHARS_ELSE(Code)(Java Doc)
final protected static char[] CHARS_EMPTYDIMS(Code)(Java Doc)
final protected static char[] CHARS_EXTENDS(Code)(Java Doc)
final protected static char[] CHARS_FALSE(Code)(Java Doc)
final protected static char[] CHARS_FINAL(Code)(Java Doc)
final protected static char[] CHARS_FINALLY(Code)(Java Doc)
final protected static char[] CHARS_FOR(Code)(Java Doc)
final protected static char[] CHARS_IF(Code)(Java Doc)
final protected static char[] CHARS_IMPLEMENTS(Code)(Java Doc)
final protected static char[] CHARS_INSTANCEOF(Code)(Java Doc)
final protected static char[] CHARS_INTERFACE(Code)(Java Doc)
final protected static char[] CHARS_NATIVE(Code)(Java Doc)
final protected static char[] CHARS_NEW(Code)(Java Doc)
final protected static char[] CHARS_NULL(Code)(Java Doc)
final protected static char[] CHARS_PRIVATE(Code)(Java Doc)
final protected static char[] CHARS_PROTECTED(Code)(Java Doc)
final protected static char[] CHARS_PUBLIC(Code)(Java Doc)
final protected static char[] CHARS_RETURN(Code)(Java Doc)
final protected static char[] CHARS_SLASHSTAR(Code)(Java Doc)
final protected static char[] CHARS_STARSLASH(Code)(Java Doc)
final protected static char[] CHARS_STATIC(Code)(Java Doc)
final protected static char[] CHARS_SUPER(Code)(Java Doc)
final protected static char[] CHARS_SWITCH(Code)(Java Doc)
final protected static char[] CHARS_THIS(Code)(Java Doc)
final protected static char[] CHARS_THROW(Code)(Java Doc)
final protected static char[] CHARS_THROWS(Code)(Java Doc)
final protected static char[] CHARS_TRUE(Code)(Java Doc)
final protected static char[] CHARS_TRY(Code)(Java Doc)
final protected static char[] CHARS_WHILE(Code)(Java Doc)

Methods inherited from com.google.gwt.dev.jjs.impl.ToStringGenerationVisitor
protected void closeBlock()(Code)(Java Doc)
protected static boolean isInitializer(JMethod x)(Code)(Java Doc)
protected void lparen()(Code)(Java Doc)
protected boolean nestedStatementPop(JStatement statement)(Code)(Java Doc)
protected boolean nestedStatementPush(JStatement statement)(Code)(Java Doc)
protected void openBlock()(Code)(Java Doc)
protected boolean parenPop(int parentPrec, JExpression child)(Code)(Java Doc)
protected boolean parenPop(JExpression parent, JExpression child)(Code)(Java Doc)
protected boolean parenPush(int parentPrec, JExpression child)(Code)(Java Doc)
protected boolean parenPush(JExpression parent, JExpression child)(Code)(Java Doc)
protected void printAbstractFlag(CanBeAbstract x)(Code)(Java Doc)
protected void printBooleanLiteral(boolean value)(Code)(Java Doc)
protected void printChar(char c)(Code)(Java Doc)
protected void printCharLiteral(char value)(Code)(Java Doc)
protected void printDoubleLiteral(double value)(Code)(Java Doc)
protected void printFinalFlag(CanBeFinal x)(Code)(Java Doc)
protected void printFloatLiteral(float value)(Code)(Java Doc)
protected void printLongLiteral(long value)(Code)(Java Doc)
protected void printMemberFinalFlag(CanBeFinal x)(Code)(Java Doc)
protected void printMethodHeader(JMethod x)(Code)(Java Doc)
protected void printName(HasName x)(Code)(Java Doc)
protected void printNativeFlag(CanBeNative x)(Code)(Java Doc)
protected void printParameterList(JMethod x)(Code)(Java Doc)
protected void printStaticFlag(CanBeStatic x)(Code)(Java Doc)
protected void printStringLiteral(String string)(Code)(Java Doc)
protected void printType(HasType hasType)(Code)(Java Doc)
protected void printTypeName(JType type)(Code)(Java Doc)
protected void rparen()(Code)(Java Doc)
protected void semi()(Code)(Java Doc)
protected boolean shouldPrintMethodBody()(Code)(Java Doc)
protected void space()(Code)(Java Doc)
public boolean visit(JAbsentArrayDimension x, Context ctx)(Code)(Java Doc)
public boolean visit(JArrayRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JArrayType x, Context ctx)(Code)(Java Doc)
public boolean visit(JAssertStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JBinaryOperation x, Context ctx)(Code)(Java Doc)
public boolean visit(JBlock x, Context ctx)(Code)(Java Doc)
public boolean visit(JBooleanLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JBreakStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JCaseStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JCastOperation x, Context ctx)(Code)(Java Doc)
public boolean visit(JCharLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JClassLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JClassType x, Context ctx)(Code)(Java Doc)
public boolean visit(JConditional x, Context ctx)(Code)(Java Doc)
public boolean visit(JContinueStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JDoStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JDoubleLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JExpressionStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JField x, Context ctx)(Code)(Java Doc)
public boolean visit(JFieldRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JFloatLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JForStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JIfStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JInstanceOf x, Context ctx)(Code)(Java Doc)
public boolean visit(JInterfaceType x, Context ctx)(Code)(Java Doc)
public boolean visit(JIntLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JLabel x, Context ctx)(Code)(Java Doc)
public boolean visit(JLabeledStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JLocal x, Context ctx)(Code)(Java Doc)
public boolean visit(JLocalDeclarationStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JLocalRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JLongLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JMethod x, Context ctx)(Code)(Java Doc)
public boolean visit(JMethodCall x, Context ctx)(Code)(Java Doc)
public boolean visit(JMultiExpression x, Context ctx)(Code)(Java Doc)
public boolean visit(JNewArray x, Context ctx)(Code)(Java Doc)
public boolean visit(JNewInstance x, Context ctx)(Code)(Java Doc)
public boolean visit(JNullLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JNullType x, Context ctx)(Code)(Java Doc)
public boolean visit(JParameter x, Context ctx)(Code)(Java Doc)
public boolean visit(JParameterRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JPostfixOperation x, Context ctx)(Code)(Java Doc)
public boolean visit(JPrefixOperation x, Context ctx)(Code)(Java Doc)
public boolean visit(JPrimitiveType x, Context ctx)(Code)(Java Doc)
public boolean visit(JProgram x, Context ctx)(Code)(Java Doc)
public boolean visit(JReturnStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JsniFieldRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JsniMethodBody x, Context ctx)(Code)(Java Doc)
public boolean visit(JsniMethodRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JsonArray x, Context ctx)(Code)(Java Doc)
public boolean visit(JsonObject x, Context ctx)(Code)(Java Doc)
public boolean visit(JsonPropInit x, Context ctx)(Code)(Java Doc)
public boolean visit(JStringLiteral x, Context ctx)(Code)(Java Doc)
public boolean visit(JSwitchStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JThisRef x, Context ctx)(Code)(Java Doc)
public boolean visit(JThrowStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JTryStatement x, Context ctx)(Code)(Java Doc)
public boolean visit(JWhileStatement x, Context ctx)(Code)(Java Doc)
protected void visitCollectionWithCommas(Iterator<? extends JNode> iter)(Code)(Java Doc)

Methods inherited from com.google.gwt.dev.jjs.impl.TextOutputVisitor
public void indentIn()(Code)(Java Doc)
public void indentOut()(Code)(Java Doc)
public void newline()(Code)(Java Doc)
public void newlineOpt()(Code)(Java Doc)
public void print(char c)(Code)(Java Doc)
public void print(char[] s)(Code)(Java Doc)
public void print(String s)(Code)(Java Doc)
public void printOpt(char c)(Code)(Java Doc)
public void printOpt(char[] s)(Code)(Java Doc)
public void printOpt(String s)(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.