Java Doc for ToStringGenerationVisitor.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

All known Subclasses:   com.google.gwt.dev.jjs.impl.SourceGenerationVisitor,
ToStringGenerationVisitor
public class ToStringGenerationVisitor extends TextOutputVisitor (Code)
Implements a reasonable toString() for all JNodes. The goal is to print a recognizable declaration for large constructs (classes, methods) for easy use in a debugger. Expressions and Statements should look like Java code fragments.


Field Summary
final protected static  char[]CHARS_ABSTRACT
    
final protected static  char[]CHARS_ASSERT
    
final protected static  char[]CHARS_BREAK
    
final protected static  char[]CHARS_CASE
    
final protected static  char[]CHARS_CATCH
    
final protected static  char[]CHARS_CLASS
    
final protected static  char[]CHARS_COMMA
    
final protected static  char[]CHARS_CONTINUE
    
final protected static  char[]CHARS_DEFAULT
    
final protected static  char[]CHARS_DO
    
final protected static  char[]CHARS_DOTCLASS
    
final protected static  char[]CHARS_ELSE
    
final protected static  char[]CHARS_EMPTYDIMS
    
final protected static  char[]CHARS_EXTENDS
    
final protected static  char[]CHARS_FALSE
    
final protected static  char[]CHARS_FINAL
    
final protected static  char[]CHARS_FINALLY
    
final protected static  char[]CHARS_FOR
    
final protected static  char[]CHARS_IF
    
final protected static  char[]CHARS_IMPLEMENTS
    
final protected static  char[]CHARS_INSTANCEOF
    
final protected static  char[]CHARS_INTERFACE
    
final protected static  char[]CHARS_NATIVE
    
final protected static  char[]CHARS_NEW
    
final protected static  char[]CHARS_NULL
    
final protected static  char[]CHARS_PRIVATE
    
final protected static  char[]CHARS_PROTECTED
    
final protected static  char[]CHARS_PUBLIC
    
final protected static  char[]CHARS_RETURN
    
final protected static  char[]CHARS_SLASHSTAR
    
final protected static  char[]CHARS_STARSLASH
    
final protected static  char[]CHARS_STATIC
    
final protected static  char[]CHARS_SUPER
    
final protected static  char[]CHARS_SWITCH
    
final protected static  char[]CHARS_THIS
    
final protected static  char[]CHARS_THROW
    
final protected static  char[]CHARS_THROWS
    
final protected static  char[]CHARS_TRUE
    
final protected static  char[]CHARS_TRY
    
final protected static  char[]CHARS_WHILE
    

Constructor Summary
public  ToStringGenerationVisitor(TextOutput textOutput)
    

Method Summary
protected  voidcloseBlock()
    
protected static  booleanisInitializer(JMethod x)
    
protected  voidlparen()
    
protected  booleannestedStatementPop(JStatement statement)
    
protected  booleannestedStatementPush(JStatement statement)
    
protected  voidopenBlock()
    
protected  booleanparenPop(int parentPrec, JExpression child)
    
protected  booleanparenPop(JExpression parent, JExpression child)
    
protected  booleanparenPush(int parentPrec, JExpression child)
    
protected  booleanparenPush(JExpression parent, JExpression child)
    
protected  voidprintAbstractFlag(CanBeAbstract x)
    
protected  voidprintBooleanLiteral(boolean value)
    
protected  voidprintChar(char c)
    
protected  voidprintCharLiteral(char value)
    
protected  voidprintDoubleLiteral(double value)
    
protected  voidprintFinalFlag(CanBeFinal x)
    
protected  voidprintFloatLiteral(float value)
    
protected  voidprintLongLiteral(long value)
    
protected  voidprintMemberFinalFlag(CanBeFinal x)
    
protected  voidprintMethodHeader(JMethod x)
    
protected  voidprintName(HasName x)
    
protected  voidprintNativeFlag(CanBeNative x)
    
protected  voidprintParameterList(JMethod x)
    
protected  voidprintStaticFlag(CanBeStatic x)
    
protected  voidprintStringLiteral(String string)
    
protected  voidprintType(HasType hasType)
    
protected  voidprintTypeName(JType type)
    
protected  voidrparen()
    
protected  voidsemi()
    
protected  booleanshouldPrintMethodBody()
    
protected  voidspace()
    
public  booleanvisit(JAbsentArrayDimension x, Context ctx)
    
public  booleanvisit(JArrayRef x, Context ctx)
    
public  booleanvisit(JArrayType x, Context ctx)
    
public  booleanvisit(JAssertStatement x, Context ctx)
    
public  booleanvisit(JBinaryOperation x, Context ctx)
    
public  booleanvisit(JBlock x, Context ctx)
    
public  booleanvisit(JBooleanLiteral x, Context ctx)
    
public  booleanvisit(JBreakStatement x, Context ctx)
    
public  booleanvisit(JCaseStatement x, Context ctx)
    
public  booleanvisit(JCastOperation x, Context ctx)
    
public  booleanvisit(JCharLiteral x, Context ctx)
    
public  booleanvisit(JClassLiteral x, Context ctx)
    
public  booleanvisit(JClassType x, Context ctx)
    
public  booleanvisit(JConditional x, Context ctx)
    
public  booleanvisit(JContinueStatement x, Context ctx)
    
public  booleanvisit(JDoStatement x, Context ctx)
    
public  booleanvisit(JDoubleLiteral x, Context ctx)
    
public  booleanvisit(JExpressionStatement x, Context ctx)
    
public  booleanvisit(JField x, Context ctx)
    
public  booleanvisit(JFieldRef x, Context ctx)
    
public  booleanvisit(JFloatLiteral x, Context ctx)
    
public  booleanvisit(JForStatement x, Context ctx)
    
public  booleanvisit(JIfStatement x, Context ctx)
    
public  booleanvisit(JInstanceOf x, Context ctx)
    
public  booleanvisit(JInterfaceType x, Context ctx)
    
public  booleanvisit(JIntLiteral x, Context ctx)
    
public  booleanvisit(JLabel x, Context ctx)
    
public  booleanvisit(JLabeledStatement x, Context ctx)
    
public  booleanvisit(JLocal x, Context ctx)
    
public  booleanvisit(JLocalDeclarationStatement x, Context ctx)
    
public  booleanvisit(JLocalRef x, Context ctx)
    
public  booleanvisit(JLongLiteral x, Context ctx)
    
public  booleanvisit(JMethod x, Context ctx)
    
public  booleanvisit(JMethodCall x, Context ctx)
    
public  booleanvisit(JMultiExpression x, Context ctx)
    
public  booleanvisit(JNewArray x, Context ctx)
    
public  booleanvisit(JNewInstance x, Context ctx)
    
public  booleanvisit(JNullLiteral x, Context ctx)
    
public  booleanvisit(JNullType x, Context ctx)
    
public  booleanvisit(JParameter x, Context ctx)
    
public  booleanvisit(JParameterRef x, Context ctx)
    
public  booleanvisit(JPostfixOperation x, Context ctx)
    
public  booleanvisit(JPrefixOperation x, Context ctx)
    
public  booleanvisit(JPrimitiveType x, Context ctx)
    
public  booleanvisit(JProgram x, Context ctx)
    
public  booleanvisit(JReturnStatement x, Context ctx)
    
public  booleanvisit(JsniFieldRef x, Context ctx)
    
public  booleanvisit(JsniMethodBody x, Context ctx)
    
public  booleanvisit(JsniMethodRef x, Context ctx)
    
public  booleanvisit(JsonArray x, Context ctx)
    
public  booleanvisit(JsonObject x, Context ctx)
    
public  booleanvisit(JsonPropInit x, Context ctx)
    
public  booleanvisit(JStringLiteral x, Context ctx)
    
public  booleanvisit(JSwitchStatement x, Context ctx)
    
public  booleanvisit(JThisRef x, Context ctx)
    
public  booleanvisit(JThrowStatement x, Context ctx)
    
public  booleanvisit(JTryStatement x, Context ctx)
    
public  booleanvisit(JWhileStatement x, Context ctx)
    
protected  voidvisitCollectionWithCommas(Iterator<? extends JNode> iter)
    

Field Detail
CHARS_ABSTRACT
final protected static char[] CHARS_ABSTRACT(Code)



CHARS_ASSERT
final protected static char[] CHARS_ASSERT(Code)



CHARS_BREAK
final protected static char[] CHARS_BREAK(Code)



CHARS_CASE
final protected static char[] CHARS_CASE(Code)



CHARS_CATCH
final protected static char[] CHARS_CATCH(Code)



CHARS_CLASS
final protected static char[] CHARS_CLASS(Code)



CHARS_COMMA
final protected static char[] CHARS_COMMA(Code)



CHARS_CONTINUE
final protected static char[] CHARS_CONTINUE(Code)



CHARS_DEFAULT
final protected static char[] CHARS_DEFAULT(Code)



CHARS_DO
final protected static char[] CHARS_DO(Code)



CHARS_DOTCLASS
final protected static char[] CHARS_DOTCLASS(Code)



CHARS_ELSE
final protected static char[] CHARS_ELSE(Code)



CHARS_EMPTYDIMS
final protected static char[] CHARS_EMPTYDIMS(Code)



CHARS_EXTENDS
final protected static char[] CHARS_EXTENDS(Code)



CHARS_FALSE
final protected static char[] CHARS_FALSE(Code)



CHARS_FINAL
final protected static char[] CHARS_FINAL(Code)



CHARS_FINALLY
final protected static char[] CHARS_FINALLY(Code)



CHARS_FOR
final protected static char[] CHARS_FOR(Code)



CHARS_IF
final protected static char[] CHARS_IF(Code)



CHARS_IMPLEMENTS
final protected static char[] CHARS_IMPLEMENTS(Code)



CHARS_INSTANCEOF
final protected static char[] CHARS_INSTANCEOF(Code)



CHARS_INTERFACE
final protected static char[] CHARS_INTERFACE(Code)



CHARS_NATIVE
final protected static char[] CHARS_NATIVE(Code)



CHARS_NEW
final protected static char[] CHARS_NEW(Code)



CHARS_NULL
final protected static char[] CHARS_NULL(Code)



CHARS_PRIVATE
final protected static char[] CHARS_PRIVATE(Code)



CHARS_PROTECTED
final protected static char[] CHARS_PROTECTED(Code)



CHARS_PUBLIC
final protected static char[] CHARS_PUBLIC(Code)



CHARS_RETURN
final protected static char[] CHARS_RETURN(Code)



CHARS_SLASHSTAR
final protected static char[] CHARS_SLASHSTAR(Code)



CHARS_STARSLASH
final protected static char[] CHARS_STARSLASH(Code)



CHARS_STATIC
final protected static char[] CHARS_STATIC(Code)



CHARS_SUPER
final protected static char[] CHARS_SUPER(Code)



CHARS_SWITCH
final protected static char[] CHARS_SWITCH(Code)



CHARS_THIS
final protected static char[] CHARS_THIS(Code)



CHARS_THROW
final protected static char[] CHARS_THROW(Code)



CHARS_THROWS
final protected static char[] CHARS_THROWS(Code)



CHARS_TRUE
final protected static char[] CHARS_TRUE(Code)



CHARS_TRY
final protected static char[] CHARS_TRY(Code)



CHARS_WHILE
final protected static char[] CHARS_WHILE(Code)




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




Method Detail
closeBlock
protected void closeBlock()(Code)



isInitializer
protected static boolean isInitializer(JMethod x)(Code)



lparen
protected void lparen()(Code)



nestedStatementPop
protected boolean nestedStatementPop(JStatement statement)(Code)



nestedStatementPush
protected boolean nestedStatementPush(JStatement statement)(Code)



openBlock
protected void openBlock()(Code)



parenPop
protected boolean parenPop(int parentPrec, JExpression child)(Code)



parenPop
protected boolean parenPop(JExpression parent, JExpression child)(Code)



parenPush
protected boolean parenPush(int parentPrec, JExpression child)(Code)



parenPush
protected boolean parenPush(JExpression parent, JExpression child)(Code)



printAbstractFlag
protected void printAbstractFlag(CanBeAbstract x)(Code)



printBooleanLiteral
protected void printBooleanLiteral(boolean value)(Code)



printChar
protected void printChar(char c)(Code)



printCharLiteral
protected void printCharLiteral(char value)(Code)



printDoubleLiteral
protected void printDoubleLiteral(double value)(Code)



printFinalFlag
protected void printFinalFlag(CanBeFinal x)(Code)



printFloatLiteral
protected void printFloatLiteral(float value)(Code)



printLongLiteral
protected void printLongLiteral(long value)(Code)



printMemberFinalFlag
protected void printMemberFinalFlag(CanBeFinal x)(Code)



printMethodHeader
protected void printMethodHeader(JMethod x)(Code)



printName
protected void printName(HasName x)(Code)



printNativeFlag
protected void printNativeFlag(CanBeNative x)(Code)



printParameterList
protected void printParameterList(JMethod x)(Code)



printStaticFlag
protected void printStaticFlag(CanBeStatic x)(Code)



printStringLiteral
protected void printStringLiteral(String string)(Code)



printType
protected void printType(HasType hasType)(Code)



printTypeName
protected void printTypeName(JType type)(Code)



rparen
protected void rparen()(Code)



semi
protected void semi()(Code)



shouldPrintMethodBody
protected boolean shouldPrintMethodBody()(Code)



space
protected void space()(Code)



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



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



visitCollectionWithCommas
protected void visitCollectionWithCommas(Iterator<? extends JNode> iter)(Code)



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.