Package net.sf.rej.gui

Examples of net.sf.rej.gui.InstructionHints


     * @param out the stream in which to dump the code.
     * @param lnAttr LineNumberTableAttribute
     * @param lvAttr LocalVariableTableAttribute
     */
    public void printCode(PrintStream out, LineNumberTableAttribute lnAttr, LocalVariableTableAttribute lvAttr) {
      InstructionHints hints = new InstructionHints();
        out.println("---- code starts ----");
        DecompilationContext dc = createDecompilationContext();
        for (Instruction instruction : this.code) {
            String posStr = String.valueOf(dc.getPosition());
            while (posStr.length() < 5)
                posStr = " " + posStr;

            String hint = hints.getHint(instruction);
            if (hint.length() > 0)
                hint = "  (" + hint + ")";
            String lineNumberStr = "     ";
            if (lnAttr != null) {
                int lineNumber = lnAttr.getLineNumber(dc.getPosition());
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.InstructionHints

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.