| 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.
|
SourceGenerationVisitor | public SourceGenerationVisitor(TextOutput textOutput)(Code) | | |
printTypeName | protected void printTypeName(JType type)(Code) | | |
shouldPrintMethodBody | protected boolean shouldPrintMethodBody()(Code) | | |
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)
|
|
|