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