Package net.sf.rej.java.constantpool

Examples of net.sf.rej.java.constantpool.ConstantPoolInfo


    for (Entry<Integer, ElementValue> entry : this.elementValues.entrySet()) {
      if (sb.length() > 0) {
        sb.append(", ");
      }
      int key = entry.getKey();
      ConstantPoolInfo nameInfo = this.pool.get(key);
      String name = nameInfo.getValue();
      ElementValue ev = entry.getValue();
      sb.append(name + " = " + ev.getValue());
    }
    String pairs = sb.toString();
    sb = new StringBuilder();
View Full Code Here


        this.cp = pool;
        List<Wrapper> al = new ArrayList<Wrapper>();
        this.imports = EditorFacade.getInstance().getImports(this.cf);

        for (int i = 0; i < this.cp.size(); i++) {
            ConstantPoolInfo cpi = this.cp.get(i);
            if (cpi != null) {
                if (cpi.getType() == ConstantPoolInfo.INTERFACE_METHOD_REF || cpi.getType() == ConstantPoolInfo.METHOD_REF) {
                    al.add(createWrapper((RefInfo) cpi));
                }
            }
        }
        this.model = new DefaultComboBoxModel(al.toArray());
View Full Code Here

    this.cp = pool;
   
    this.imports = EditorFacade.getInstance().getImports(this.cf);

    for (int i = 0; i < this.cp.size(); i++) {
      ConstantPoolInfo cpi = this.cp.get(i);
      if (cpi != null) {
        if (cpi.getType() == ConstantPoolInfo.CLASS) {
          this.model.addElement(createWrapper((ClassInfo) cpi));
        }
      }
    }
View Full Code Here

        if (me.getClickCount() == 2
            && me.getButton() == MouseEvent.BUTTON1
            && obj instanceof Wrapper) {
          Wrapper wrapper = (Wrapper) obj;
          ConstantPoolInfo cpi = (ConstantPoolInfo) wrapper
              .getContent();
          launchEditor(cpi);

        } else if (me.getButton() == MouseEvent.BUTTON3) {
          // TODO: Context menu
View Full Code Here

    }
  }
 
  private void splitSynchronize() {
    if (this.sync != null && isOpen) {
      ConstantPoolInfo cpi = getSelectedObject();
      this.sync.sync(cpi);
    }
  }
View Full Code Here

    super(nameIndex, pool);
  }

  @Override
  public String toString() {
    ConstantPoolInfo cpi = this.pool.get(this.constant);
    return "Constant: " + cpi.getValue();
  }
View Full Code Here

    ConstantPoolInfo cpi = this.pool.get(this.constant);
    return "Constant: " + cpi.getValue();
  }
 
  public String getValue() {
    ConstantPoolInfo cpi = this.pool.get(this.constant);
    return cpi.getValue();
  }
View Full Code Here

        ic.setCf(cf);
        agent.processClass(ic, cf);
       
        ConstantPool cp = cf.getPool();
        for (int i=0; i < cp.size(); i++) {
          ConstantPoolInfo cpi = cp.get(i);
          if (cpi != null) {
            agent.processConstantPoolInfo(ic, cpi);           
          }
        }
View Full Code Here

    public int getHandlerPc() {
        return this.handlerLabel.getPosition();
    }

    public String getType() {
        ConstantPoolInfo cpi = this.pool.get(this.catchType);
        if (cpi == null)
            return "(#" + this.catchType + ")";
        return cpi.getValue();
    }
View Full Code Here

                int index = destinationPool.optionalAddClassRef(ci.getName());
                copyParams.addValue(index);
                break;
            }
            case TYPE_CONSTANT_POOL_CONSTANT: {
              ConstantPoolInfo cpi = sourcePool.get(params.getInt(i));
              switch (cpi.getType()) {
              case ConstantPoolInfo.DOUBLE: {
                DoubleInfo di = (DoubleInfo)cpi;
                DoubleInfo diCopy = new DoubleInfo(di.getHighBytes(), di.getLowBytes(), destinationPool);
                int index = destinationPool.optionalAdd(diCopy);
                copyParams.addValue(index);
View Full Code Here

TOP

Related Classes of net.sf.rej.java.constantpool.ConstantPoolInfo

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.