Examples of optionalAddUtf8()


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

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

        int nameIndex = cp.indexOfUtf8(this.fieldName);
        if (nameIndex == -1) {
            nameIndex = cp.optionalAddUtf8(this.fieldName);
            this.createdNameIndex = nameIndex;
        }

        int descIndex = cp.indexOfUtf8(this.desc.getRawDesc());
        if (descIndex == -1) {
View Full Code Here

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

            this.createdNameIndex = nameIndex;
        }

        int descIndex = cp.indexOfUtf8(this.desc.getRawDesc());
        if (descIndex == -1) {
            descIndex = cp.optionalAddUtf8(this.desc.getRawDesc());
            this.createdDescIndex = descIndex;
        }

        this.field = fieldFactory.createField(this.cf, this.accessFlags, nameIndex, descIndex);
View Full Code Here

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

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

        int nameIndex = cp.indexOfUtf8(this.methodName);
        if (nameIndex == -1) {
            nameIndex = cp.optionalAddUtf8(this.methodName);
            this.createdPoolItems.add(nameIndex);
        }

        int descIndex = cp.indexOfUtf8(this.desc.getRawDesc());
        if (descIndex == -1) {
View Full Code Here

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

            this.createdPoolItems.add(nameIndex);
        }

        int descIndex = cp.indexOfUtf8(this.desc.getRawDesc());
        if (descIndex == -1) {
            descIndex = cp.optionalAddUtf8(this.desc.getRawDesc());
            this.createdPoolItems.add(descIndex);
        }

        int codeAttrNameIndex = cp.indexOfUtf8("Code");
        if (codeAttrNameIndex == -1) {
View Full Code Here

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

            this.createdPoolItems.add(descIndex);
        }

        int codeAttrNameIndex = cp.indexOfUtf8("Code");
        if (codeAttrNameIndex == -1) {
            codeAttrNameIndex = cp.optionalAddUtf8("Code");
            this.createdPoolItems.add(codeAttrNameIndex);
        }

        int exAttrNameIndex = cp.indexOfUtf8("Exceptions");
        if (exAttrNameIndex == -1) {
View Full Code Here

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

            this.createdPoolItems.add(codeAttrNameIndex);
        }

        int exAttrNameIndex = cp.indexOfUtf8("Exceptions");
        if (exAttrNameIndex == -1) {
            exAttrNameIndex = cp.optionalAddUtf8("Exceptions");
            this.createdPoolItems.add(exAttrNameIndex);
        }

        List<ExceptionDescriptor> exceptionList = new ArrayList<ExceptionDescriptor>();
        for (int i=0; i < this.exceptionNames.size(); i++) {
View Full Code Here

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

      ClassFile cf = factory.createClass(rt.name(), superClass);
      ConstantPool cp = cf.getPool();
      FieldFactory fieldFactory = new FieldFactory();
      for (IField field : rt.visibleFields()) {
        AccessFlags flags = new AccessFlags(field.modifiers());
        Field fieldToAdd = fieldFactory.createField(cf, flags, cp.optionalAddUtf8(field.name()), cp.optionalAddUtf8(field.signature()));
        cf.add(fieldToAdd);
      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
View Full Code Here

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

      ClassFile cf = factory.createClass(rt.name(), superClass);
      ConstantPool cp = cf.getPool();
      FieldFactory fieldFactory = new FieldFactory();
      for (IField field : rt.visibleFields()) {
        AccessFlags flags = new AccessFlags(field.modifiers());
        Field fieldToAdd = fieldFactory.createField(cf, flags, cp.optionalAddUtf8(field.name()), cp.optionalAddUtf8(field.signature()));
        cf.add(fieldToAdd);
      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
View Full Code Here

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

      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
        AccessFlags flags = new AccessFlags(method.modifiers());
        net.sf.rej.java.Method methodToAdd = methodFactory.createMethod(cf, flags, cp.optionalAddUtf8(method.name()), cp.optionalAddUtf8(method.signature()), cp.optionalAddUtf8("Code"), 0, 0, cp.optionalAddUtf8("Exceptions"), new ArrayList<ExceptionDescriptor>());
        cf.add(methodToAdd);
      }

      SystemFacade.getInstance().setStatus("Class definition pulled from VM: " + sf.location().declaringType().name());
      Event event = new Event(EventType.CLASS_OPEN);
View Full Code Here

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

      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
        AccessFlags flags = new AccessFlags(method.modifiers());
        net.sf.rej.java.Method methodToAdd = methodFactory.createMethod(cf, flags, cp.optionalAddUtf8(method.name()), cp.optionalAddUtf8(method.signature()), cp.optionalAddUtf8("Code"), 0, 0, cp.optionalAddUtf8("Exceptions"), new ArrayList<ExceptionDescriptor>());
        cf.add(methodToAdd);
      }

      SystemFacade.getInstance().setStatus("Class definition pulled from VM: " + sf.location().declaringType().name());
      Event event = new Event(EventType.CLASS_OPEN);
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.