Examples of indexOfClassRef()


Examples of net.sf.rej.java.constantpool.ConstantPool.indexOfClassRef()

    public void execute() {
        this.cf.setAccessFlags(this.accessFlags.getValue());
        ConstantPool cp = this.cf.getPool();

        int classIndex = cp.indexOfClassRef(this.className);
        if (classIndex == -1) {
            classIndex = cp.optionalAddClassRef(this.className);
            this.createdPoolIndices.add(classIndex);
        }
        this.cf.setThisClass(classIndex);
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPool.indexOfClassRef()

        }
        this.cf.setThisClass(classIndex);

        int superIndex = 0;
        if (this.superName != null) {
          superIndex = cp.indexOfClassRef(this.superName);
          if (superIndex == -1) {
            superIndex = cp.optionalAddClassRef(this.superName);
            this.createdPoolIndices.add(superIndex);
          }
        }
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPool.indexOfClassRef()

        List<Interface> newInterfaceList = new ArrayList<Interface>();
        newInterfaceList.addAll(this.remainingInterfaces);
        for (int i=0; i < this.newInterfaceNames.size(); i++) {
          String interfaceName = this.newInterfaceNames.get(i);
          int index = cp.indexOfClassRef(interfaceName);
          if (index == -1) {
            index = cp.optionalAddClassRef(interfaceName);
            this.createdPoolIndices.add(index);
          }
          newInterfaceList.add(new Interface(index, cp));
View Full Code Here

Examples of net.sf.rej.java.constantpool.ConstantPool.indexOfClassRef()

        }

        List<ExceptionDescriptor> exceptionList = new ArrayList<ExceptionDescriptor>();
        for (int i=0; i < this.exceptionNames.size(); i++) {
          String exceptionName = this.exceptionNames.get(i);
          int exIndex = cp.indexOfClassRef(exceptionName);
          if (exIndex == -1) {
            exIndex = cp.forceAddClassRef(exceptionName);
                this.createdPoolItems.add(exIndex);
          }
          exceptionList.add(new ExceptionDescriptor(cp, exIndex));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.