/** * Finds or creates a InvokeDynamicConstant constant pool entry with the * given bootstrap method constant pool entry index, method name, and * descriptor. * @return the constant pool index of the InvokeDynamicConstant. */ public int addInvokeDynamicConstant(int bootstrapMethodIndex, String name, String descriptor, Clazz[] referencedClasses) { return addInvokeDynamicConstant(bootstrapMethodIndex, addNameAndTypeConstant(name, descriptor), referencedClasses); }
/** * Finds or creates a FieldrefConstant constant pool entry with the given * class constant pool entry index, field name, and descriptor. * @return the constant pool index of the FieldrefConstant. */ public int addFieldrefConstant(int classIndex, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addFieldrefConstant(classIndex, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InvokeDynamicConstant constant pool entry with the * given bootstrap method constant pool entry index, method name, and * descriptor. * @return the constant pool index of the InvokeDynamicConstant. */ public int addInvokeDynamicConstant(int bootstrapMethodIndex, String name, String descriptor, Clazz[] referencedClasses) { return addInvokeDynamicConstant(bootstrapMethodIndex, addNameAndTypeConstant(name, descriptor), referencedClasses); }
/** * Finds or creates a MethodrefConstant constant pool entry with the given * class name, method name, and descriptor. * @return the constant pool index of the MethodrefConstant. */ public int addMethodrefConstant(String className, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addMethodrefConstant(className, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InterfaceMethodrefConstant constant pool entry with the * given class name, method name, and descriptor. * @return the constant pool index of the InterfaceMethodrefConstant. */ public int addInterfaceMethodrefConstant(String className, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addInterfaceMethodrefConstant(className, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InterfaceMethodrefConstant constant pool entry with the * given class constant pool entry index, method name, and descriptor. * @return the constant pool index of the InterfaceMethodrefConstant. */ public int addInterfaceMethodrefConstant(int classIndex, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addInterfaceMethodrefConstant(classIndex, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InvokeDynamicConstant constant pool entry with the * given bootstrap method constant pool entry index, method name, and * descriptor. * @return the constant pool index of the InvokeDynamicConstant. */ public int addInvokeDynamicConstant(int bootstrapMethodIndex, String name, String descriptor, Clazz[] referencedClasses) { return addInvokeDynamicConstant(bootstrapMethodIndex, addNameAndTypeConstant(name, descriptor), referencedClasses); }
/** * Finds or creates a MethodrefConstant constant pool entry with the given * class name, method name, and descriptor. * @return the constant pool index of the MethodrefConstant. */ public int addMethodrefConstant(String className, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addMethodrefConstant(className, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a MethodrefConstant constant pool entry with the given * class constant pool entry index, method name, and descriptor. * @return the constant pool index of the MethodrefConstant. */ public int addMethodrefConstant(int classIndex, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addMethodrefConstant(classIndex, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a FieldrefConstant constant pool entry with the given * class name, field name, and descriptor. * @return the constant pool index of the FieldrefConstant. */ public int addFieldrefConstant(String className, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addFieldrefConstant(className, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InterfaceMethodrefConstant constant pool entry with the * given class name, method name, and descriptor. * @return the constant pool index of the InterfaceMethodrefConstant. */ public int addInterfaceMethodrefConstant(String className, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addInterfaceMethodrefConstant(className, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a InterfaceMethodrefConstant constant pool entry with the * given class constant pool entry index, method name, and descriptor. * @return the constant pool index of the InterfaceMethodrefConstant. */ public int addInterfaceMethodrefConstant(int classIndex, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addInterfaceMethodrefConstant(classIndex, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
/** * Finds or creates a MethodrefConstant constant pool entry with the given * class constant pool entry index, method name, and descriptor. * @return the constant pool index of the MethodrefConstant. */ public int addMethodrefConstant(int classIndex, String name, String descriptor, Clazz referencedClass, Member referencedMember) { return addMethodrefConstant(classIndex, addNameAndTypeConstant(name, descriptor), referencedClass, referencedMember); }
public void visitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) { constantIndex = constantPoolEditor.addNameAndTypeConstant(nameAndTypeConstant.getName(clazz), nameAndTypeConstant.getType(clazz)); } }
public void visitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) { constantIndex = constantPoolEditor.addNameAndTypeConstant(nameAndTypeConstant.getName(clazz), nameAndTypeConstant.getType(clazz)); } }
public void visitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) { constantIndex = constantPoolEditor.addNameAndTypeConstant(nameAndTypeConstant.getName(clazz), nameAndTypeConstant.getType(clazz)); } }
public void visitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) { constantIndex = constantPoolEditor.addNameAndTypeConstant(nameAndTypeConstant.getName(clazz), nameAndTypeConstant.getType(clazz)); } }
public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant) { // Has the descriptor changed? String descriptor = invokeDynamicConstant.getType(clazz); String newDescriptor = newDescriptor(descriptor, invokeDynamicConstant.referencedClasses); if (!descriptor.equals(newDescriptor)) { String name = invokeDynamicConstant.getName(clazz); // Refer to a new NameAndType entry. invokeDynamicConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(name, newDescriptor); } }
public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant) { // Has the descriptor changed? String descriptor = invokeDynamicConstant.getType(clazz); String newDescriptor = newDescriptor(descriptor, invokeDynamicConstant.referencedClasses); if (!descriptor.equals(newDescriptor)) { String name = invokeDynamicConstant.getName(clazz); // Refer to a new NameAndType entry. invokeDynamicConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(name, newDescriptor); } }
public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant) { // Has the descriptor changed? String descriptor = invokeDynamicConstant.getType(clazz); String newDescriptor = newDescriptor(descriptor, invokeDynamicConstant.referencedClasses); if (!descriptor.equals(newDescriptor)) { String name = invokeDynamicConstant.getName(clazz); // Refer to a new NameAndType entry. invokeDynamicConstant.u2nameAndTypeIndex = new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(name, newDescriptor); } }