Package com.strobel.decompiler.languages.java

Examples of com.strobel.decompiler.languages.java.JavaOutputVisitor


        if (!_haveTransformationsRun) {
            runTransformations();
        }

        _compileUnit.acceptVisitor(new InsertParenthesesVisitor(), null);
        _compileUnit.acceptVisitor(new JavaOutputVisitor(output, _context.getSettings().getFormattingOptions()), null);
    }
View Full Code Here


        if (isNull()) {
            return StringUtilities.EMPTY;
        }

        final ITextOutput output = new PlainTextOutput();
        final JavaOutputVisitor visitor = new JavaOutputVisitor(output, JavaFormattingOptions.createDefault());

        acceptVisitor(visitor, null);

        return output.toString();
    }
View Full Code Here

    public List<LineNumberPosition> generateCode(final ITextOutput output) {
        if (!_haveTransformationsRun) {
            runTransformations();
        }

        final JavaOutputVisitor visitor = new JavaOutputVisitor(output, _context.getSettings());
        _compileUnit.acceptVisitor(visitor, null);
        return visitor.getLineNumberPositions();
    }
View Full Code Here

        if (isNull()) {
            return StringUtilities.EMPTY;
        }

        final ITextOutput output = new PlainTextOutput();
        final JavaOutputVisitor visitor = new JavaOutputVisitor(output, DecompilerSettings.javaDefaults());

        acceptVisitor(visitor, null);

        return output.toString();
    }
View Full Code Here

  public String getSource( CompilationUnit sourceTree )
  {
    // render the AST into source
    StringWriter buf = new StringWriter();
    sourceTree.acceptVisitor( new InsertParenthesesVisitor(), null );
    sourceTree.acceptVisitor( new JavaOutputVisitor( new PlainTextOutput( buf ), m_settings ), null );
    return buf.toString();
  }
View Full Code Here

TOP

Related Classes of com.strobel.decompiler.languages.java.JavaOutputVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.