public void visitSourceFileAttribute(Clazz clazz, SourceFileAttribute sourceFileAttribute) { // Fix the source file attribute. sourceFileAttribute.u2sourceFileIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); }
public void visitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant) { constantIndex = constantPoolEditor.addUtf8Constant(utf8Constant.getString()); }
public void visitSourceDirAttribute(Clazz clazz, SourceDirAttribute sourceDirAttribute) { // Fix the source file attribute. sourceDirAttribute.u2sourceDirIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); } }
public void visitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant) { constantIndex = constantPoolEditor.addUtf8Constant(utf8Constant.getString()); }
public void visitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant) { constantIndex = constantPoolEditor.addUtf8Constant(utf8Constant.getString()); }
public void visitSourceFileAttribute(Clazz clazz, SourceFileAttribute sourceFileAttribute) { // Fix the source file attribute. sourceFileAttribute.u2sourceFileIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); }
public void visitSourceFileAttribute(Clazz clazz, SourceFileAttribute sourceFileAttribute) { // Fix the source file attribute. sourceFileAttribute.u2sourceFileIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); }
public void visitSourceDirAttribute(Clazz clazz, SourceDirAttribute sourceDirAttribute) { // Fix the source file attribute. sourceDirAttribute.u2sourceDirIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); } }
public void visitSourceDirAttribute(Clazz clazz, SourceDirAttribute sourceDirAttribute) { // Fix the source file attribute. sourceDirAttribute.u2sourceDirIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); } }
public void visitSourceDirAttribute(Clazz clazz, SourceDirAttribute sourceDirAttribute) { // Fix the source file attribute. sourceDirAttribute.u2sourceDirIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSourceFileAttribute); } }
public void visitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant) { constantIndex = constantPoolEditor.addUtf8Constant(utf8Constant.getString()); }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Update the Class entry if required. String newName = ClassObfuscator.newClassName(clazz); if (newName != null) { // Refer to a new Utf8 entry. classConstant.u2nameIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Update the Class entry if required. String newName = ClassObfuscator.newClassName(clazz); if (newName != null) { // Refer to a new Utf8 entry. classConstant.u2nameIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Update the Class entry if required. String newName = ClassObfuscator.newClassName(clazz); if (newName != null) { // Refer to a new Utf8 entry. classConstant.u2nameIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); } } }
public void visitClassConstant(Clazz clazz, ClassConstant classConstant) { // Update the Class entry if required. String newName = ClassObfuscator.newClassName(clazz); if (newName != null) { // Refer to a new Utf8 entry. classConstant.u2nameIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); } } }
public void visitSignatureAttribute(Clazz clazz, SignatureAttribute signatureAttribute) { // Compute the new signature. String signature = clazz.getString(signatureAttribute.u2signatureIndex); String newSignature = newDescriptor(signature, signatureAttribute.referencedClasses); if (!signature.equals(newSignature)) { signatureAttribute.u2signatureIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSignature); } }
public void visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo) { // Has the signature changed? String signature = clazz.getString(localVariableTypeInfo.u2signatureIndex); String newSignature = newDescriptor(signature, localVariableTypeInfo.referencedClasses); if (!signature.equals(newSignature)) { localVariableTypeInfo.u2signatureIndex = new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newSignature); } }
public void finishEditing() { endCodeFragment(); CodeAttribute codeAttribute = new CodeAttribute(constantPoolEditor.addUtf8Constant(ClassConstants.ATTR_Code)); visitCodeAttribute(programClass, method, codeAttribute); new AttributesEditor(programClass, method, false).addAttribute(codeAttribute); classEditor.addMethod(method); } }
public void finishEditing() { endCodeFragment(); CodeAttribute codeAttribute = new CodeAttribute(constantPoolEditor.addUtf8Constant(ClassConstants.ATTR_Code)); visitCodeAttribute(programClass, method, codeAttribute); new AttributesEditor(programClass, method, false).addAttribute(codeAttribute); classEditor.addMethod(method); } }
public void finishEditing() { endCodeFragment(); CodeAttribute codeAttribute = new CodeAttribute(constantPoolEditor.addUtf8Constant(ClassConstants.ATTR_Code)); visitCodeAttribute(programClass, method, codeAttribute); new AttributesEditor(programClass, method, false).addAttribute(codeAttribute); classEditor.addMethod(method); } }