public void visitSyntheticAttribute(Clazz clazz, SyntheticAttribute syntheticAttribute) { syntheticAttribute.u2attributeNameIndex = remapConstantIndex(syntheticAttribute.u2attributeNameIndex); }
public void visitSignatureAttribute(Clazz clazz, SignatureAttribute signatureAttribute) { signatureAttribute.u2attributeNameIndex = remapConstantIndex(signatureAttribute.u2attributeNameIndex); signatureAttribute.u2signatureIndex = remapConstantIndex(signatureAttribute.u2signatureIndex); }
public void visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo) { localVariableTypeInfo.u2nameIndex = remapConstantIndex(localVariableTypeInfo.u2nameIndex); localVariableTypeInfo.u2signatureIndex = remapConstantIndex(localVariableTypeInfo.u2signatureIndex); }
public void visitClassElementValue(Clazz clazz, Annotation annotation, ClassElementValue classElementValue) { classElementValue.u2elementNameIndex = remapConstantIndex(classElementValue.u2elementNameIndex); classElementValue.u2classInfoIndex = remapConstantIndex(classElementValue.u2classInfoIndex); }
/** * Remaps all constant pool indices in the given array. */ private void remapConstantIndexArray(int[] array, int length) { for (int index = 0; index < length; index++) { array[index] = remapConstantIndex(array[index]); } }
public void visitUnknownAttribute(Clazz clazz, UnknownAttribute unknownAttribute) { unknownAttribute.u2attributeNameIndex = remapConstantIndex(unknownAttribute.u2attributeNameIndex); // There's not much else we can do with unknown attributes. }
public void visitSourceFileAttribute(Clazz clazz, SourceFileAttribute sourceFileAttribute) { sourceFileAttribute.u2attributeNameIndex = remapConstantIndex(sourceFileAttribute.u2attributeNameIndex); sourceFileAttribute.u2sourceFileIndex = remapConstantIndex(sourceFileAttribute.u2sourceFileIndex); }
public void visitDeprecatedAttribute(Clazz clazz, DeprecatedAttribute deprecatedAttribute) { deprecatedAttribute.u2attributeNameIndex = remapConstantIndex(deprecatedAttribute.u2attributeNameIndex); }
public void visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo) { if (exceptionInfo.u2catchType != 0) { exceptionInfo.u2catchType = remapConstantIndex(exceptionInfo.u2catchType); } }
public void visitConstantElementValue(Clazz clazz, Annotation annotation, ConstantElementValue constantElementValue) { constantElementValue.u2elementNameIndex = remapConstantIndex(constantElementValue.u2elementNameIndex); constantElementValue.u2constantValueIndex = remapConstantIndex(constantElementValue.u2constantValueIndex); }
public void visitMethodHandleConstant(Clazz clazz, MethodHandleConstant methodHandleConstant) { methodHandleConstant.u2referenceIndex = remapConstantIndex(methodHandleConstant.u2referenceIndex); }
public void visitPackageConstant(Clazz clazz, PackageConstant packageConstant) { packageConstant.u2nameIndex = remapConstantIndex(packageConstant.u2nameIndex); }
public void visitMethodTypeConstant(Clazz clazz, MethodTypeConstant methodTypeConstant) { methodTypeConstant.u2descriptorIndex = remapConstantIndex(methodTypeConstant.u2descriptorIndex); }
public void visitConstantValueAttribute(Clazz clazz, Field field, ConstantValueAttribute constantValueAttribute) { constantValueAttribute.u2attributeNameIndex = remapConstantIndex(constantValueAttribute.u2attributeNameIndex); constantValueAttribute.u2constantValueIndex = remapConstantIndex(constantValueAttribute.u2constantValueIndex); }
public void visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo) { localVariableTypeInfo.u2nameIndex = remapConstantIndex(localVariableTypeInfo.u2nameIndex); localVariableTypeInfo.u2signatureIndex = remapConstantIndex(localVariableTypeInfo.u2signatureIndex); }
public void visitStackMapTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapTableAttribute stackMapTableAttribute) { stackMapTableAttribute.u2attributeNameIndex = remapConstantIndex(stackMapTableAttribute.u2attributeNameIndex); // Remap the constant pool references of the stack map frames. stackMapTableAttribute.stackMapFramesAccept(clazz, method, codeAttribute, this); }
public void visitLocalVariableTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTableAttribute localVariableTableAttribute) { localVariableTableAttribute.u2attributeNameIndex = remapConstantIndex(localVariableTableAttribute.u2attributeNameIndex); // Remap the constant pool references of the local variables. localVariableTableAttribute.localVariablesAccept(clazz, method, codeAttribute, this); }
public void visitLocalVariableTypeTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeTableAttribute localVariableTypeTableAttribute) { localVariableTypeTableAttribute.u2attributeNameIndex = remapConstantIndex(localVariableTypeTableAttribute.u2attributeNameIndex); // Remap the constant pool references of the local variables. localVariableTypeTableAttribute.localVariablesAccept(clazz, method, codeAttribute, this); }
public void visitStackMapAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapAttribute stackMapAttribute) { stackMapAttribute.u2attributeNameIndex = remapConstantIndex(stackMapAttribute.u2attributeNameIndex); // Remap the constant pool references of the stack map frames. stackMapAttribute.stackMapFramesAccept(clazz, method, codeAttribute, this); }
public void visitAnnotationElementValue(Clazz clazz, Annotation annotation, AnnotationElementValue annotationElementValue) { annotationElementValue.u2elementNameIndex = remapConstantIndex(annotationElementValue.u2elementNameIndex); // Remap the constant pool references of the annotation. annotationElementValue.annotationAccept(clazz, this); }