Package net.sf.rej.java.constantpool

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


        }

      } else if (params.getType(i) == ParameterType.TYPE_CONSTANT_POOL_CLASS) {
        ConstantPoolInfo cpi = sc.getDc().getConstantPool().get(
            params.getInt(i));
        ClassInfo ci = (ClassInfo) cpi;
        boolean classNamesMatch = ci.getName().equals(className);

        if (classNamesMatch) {
          String instructionLine = instruction.getMnemonic() + " "
              + instruction.getParameters().getString(sc.getDc());
          Link link = new Link();
View Full Code Here


      return o;
    } else if (o instanceof ClassLocator) {
      ClassLocator cl = (ClassLocator) o;
      return cl.getFullName();
    } else {
      ClassInfo ci = (ClassInfo) ((Wrapper) o).getContent();
      value = this.cp.optionalAdd(ci);
    }

    return Integer.valueOf(value);
  }
View Full Code Here

    this.classInfoIndex = classInfoIndex;
    this.pool = pool;
  }
 
  public String getValue() {
    ClassInfo ci = (ClassInfo)this.pool.get(this.classInfoIndex);
    return ci.getName();
  }
View Full Code Here

            case TYPE_CONSTANT_READONLY:
            case TYPE_CONSTANT:
              copyParams.addValue(params.getObject(i));
              break;
            case TYPE_CONSTANT_POOL_CLASS: {
              ClassInfo ci = (ClassInfo) sourcePool.get(params.getInt(i));
                int index = destinationPool.optionalAddClassRef(ci.getName());
                copyParams.addValue(index);
                break;
            }
            case TYPE_CONSTANT_POOL_CONSTANT: {
              ConstantPoolInfo cpi = sourcePool.get(params.getInt(i));
View Full Code Here

  }
   
  @Override
  public void processConstantPoolInfo(IterationContext ic, ConstantPoolInfo cpi) {
    if(cpi.getType() == ConstantPoolInfo.CLASS) {
      ClassInfo ci = (ClassInfo)cpi;
      JavaType jt = new JavaType(ci.getName());
      String newClassName = this.advisor.newClassNameFor(jt.getType());
      if(newClassName != null) {
        this.oldClassNames.put(newClassName, jt.getType());
        Undoable u = new ModifyClassInfoAction(ic.getCf().getPool(), ci, newClassName + jt.getDimensions());
        if (this.batchMode) {
View Full Code Here

                sb.append(getInt(i));
                break;
            }
            case TYPE_CONSTANT_POOL_CLASS: {
                ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
                ClassInfo ci = (ClassInfo) cpi;
                sb.append(ci.getName());
                break;
            }
            case TYPE_CONSTANT_POOL_CONSTANT: {
                ConstantPoolInfo cpi = dc.getConstantPool().get(getInt(i));
                sb.append(cpi.getValue());
View Full Code Here

TOP

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

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.