Package net.sf.rej.gui.editor.row

Examples of net.sf.rej.gui.editor.row.LabelRow


        DecompilationContext dc = code.createDecompilationContext();
        dc.setPosition(0);
        for (Instruction instruction : code.getInstructions()) {

          if (instruction instanceof Label) {
            LabelRow lr = new LabelRow((Label) instruction, mdr);
            lr.setParentCode(code);
            this.rows.add(lr);
            mdr.addCodeRow(lr);
          } else {
            int lineNumber = -1;
View Full Code Here


      MethodDefRow mdr = null;
      if (row instanceof CodeRow) {
        CodeRow cr = (CodeRow) row;
        mdr = cr.getEnclosingMethodDef();
      } else if (row instanceof LabelRow) {
        LabelRow lr = (LabelRow) row;
        mdr = lr.getEnclosingMethodDef();
      } else if (row instanceof LocalVariableDefRow) {
        LocalVariableDefRow lvdr = (LocalVariableDefRow) row;
        mdr = lvdr.getEnclosingMethodDef();
      } else if (row instanceof MethodDefRow) {
        mdr = (MethodDefRow) row;
View Full Code Here

      dc.setPosition(0);
      for (int j = 0; j < instructions.size(); j++) {
        Instruction instruction = (Instruction) instructions.get(j);

        if (instruction instanceof Label) {
          LabelRow lr = new LabelRow((Label) instruction, mdr);
          lr.setParentCode(code);
          list.add(lr);
          mdr.addCodeRow(lr);
        } else {
          int lineNumber = -1;
View Full Code Here

    List<EditorRow> list = new ArrayList<EditorRow>();
   
    for (Instruction instruction : instructions) {

      if (instruction instanceof Label) {
        LabelRow lr = new LabelRow((Label) instruction, mdr);
        lr.setParentCode(code);
        list.add(lr);
        mdr.addCodeRow(lr);
      } else {
        int lineNumber = -1;
View Full Code Here

    if (erA instanceof LocalVariableDefRow) {
      LocalVariableDefRow lvdrA = (LocalVariableDefRow) erA;
      LocalVariableDefRow lvdrB = (LocalVariableDefRow) erB;
      return lvdrA.getLocalVariable().getName().equals(lvdrB.getLocalVariable().getName());
    } else if (erA instanceof LabelRow) {
      LabelRow lrA = (LabelRow) erA;
      LabelRow lrB = (LabelRow) erB;
      return lrA.getLabel().getId().equals(lrB.getLabel().getId());
    } else if (erA instanceof CodeRow) {
      CodeRow crA = (CodeRow) erA;
      CodeRow crB = (CodeRow) erB;
      Instruction instA = crA.getInstruction();
      Instruction instB = crB.getInstruction();
View Full Code Here

            } else {
                sd.drawDefault(ia.getShortName(ret.getType()));
            }
            sd.drawDefault(ret.getDimensions() + " " + lv.getName() + " (#" + lv.getIndex() + " " + lv.getStartPc() + " - " + lv.getEndPc() + ")");
        } else if (er instanceof LabelRow) {
            LabelRow lr = (LabelRow)er;
          sd.drawIndent();
          sd.drawIndent();
            sd.drawDefault(lr.getLabel().getId() + ":");
        } else if (er instanceof CodeRow) {
            CodeRow cr = (CodeRow)er;
           
            // execution row
            if (cr.isExecutionRow()) {
View Full Code Here

TOP

Related Classes of net.sf.rej.gui.editor.row.LabelRow

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.