Package com.strobel.decompiler.languages

Examples of com.strobel.decompiler.languages.TypeDecompilationResults


        if (writeToFile) {
            System.out.printf("Decompiling %s...\n", typeName);
        }

        final TypeDecompilationResults results = settings.getLanguage().decompileType(resolvedType, output, options);

        writer.flush();
        writer.close();

        // If we're writing to a file and we were asked to include line numbers in any way,
        // then reformat the file to include that line number information.
        final List<LineNumberPosition> lineNumberPositions = results.getLineNumberPositions();

        if ((commandLineOptions.getIncludeLineNumbers() || commandLineOptions.getStretchLines()) && (writer instanceof FileOutputWriter)) {
            final EnumSet<LineNumberOption> lineNumberOptions = EnumSet.noneOf(LineNumberOption.class);

            if (commandLineOptions.getIncludeLineNumbers()) {
View Full Code Here


    @Override
    public TypeDecompilationResults decompileType(final TypeDefinition type, final ITextOutput output, final DecompilationOptions options) {
        final AstBuilder astBuilder = buildAst(type, options);
        final List<LineNumberPosition> lineNumberPositions = astBuilder.generateCode(output);

        return new TypeDecompilationResults(lineNumberPositions);
    }
View Full Code Here

TOP

Related Classes of com.strobel.decompiler.languages.TypeDecompilationResults

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.