public void visitBootstrapMethodInfo(Clazz clazz, BootstrapMethodInfo bootstrapMethodInfo) { dataOutput.writeUnsignedShort(bootstrapMethodInfo.u2methodHandleIndex); // Write the bootstrap method arguments. dataOutput.writeUnsignedShort(bootstrapMethodInfo.u2methodArgumentCount); for (int index = 0; index < bootstrapMethodInfo.u2methodArgumentCount; index++) { dataOutput.writeUnsignedShort(bootstrapMethodInfo.u2methodArguments[index]); } }
public void visitLocalVariableInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableInfo localVariableInfo) { dataOutput.writeUnsignedShort(localVariableInfo.u2startPC); dataOutput.writeUnsignedShort(localVariableInfo.u2length); dataOutput.writeUnsignedShort(localVariableInfo.u2nameIndex); dataOutput.writeUnsignedShort(localVariableInfo.u2descriptorIndex); dataOutput.writeUnsignedShort(localVariableInfo.u2index); }
public void visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo) { dataOutput.writeUnsignedShort(localVariableTypeInfo.u2startPC); dataOutput.writeUnsignedShort(localVariableTypeInfo.u2length); dataOutput.writeUnsignedShort(localVariableTypeInfo.u2nameIndex); dataOutput.writeUnsignedShort(localVariableTypeInfo.u2signatureIndex); dataOutput.writeUnsignedShort(localVariableTypeInfo.u2index); }
public void visitLocalVariableTargetElement(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, LocalVariableTargetInfo localVariableTargetInfo, LocalVariableTargetElement localVariableTargetElement) { dataOutput.writeUnsignedShort(localVariableTargetElement.u2startPC); dataOutput.writeUnsignedShort(localVariableTargetElement.u2length); dataOutput.writeUnsignedShort(localVariableTargetElement.u2index); }
public void visitNameAndTypeConstant(Clazz clazz, NameAndTypeConstant nameAndTypeConstant) { dataOutput.writeUnsignedShort(nameAndTypeConstant.u2nameIndex); dataOutput.writeUnsignedShort(nameAndTypeConstant.u2descriptorIndex); }
public void visitRequiresInfo(Clazz clazz, RequiresInfo requiresInfo) { dataOutput.writeUnsignedShort(requiresInfo.u2requiresIndex); dataOutput.writeUnsignedShort(requiresInfo.u2requiresFlags); dataOutput.writeUnsignedShort(requiresInfo.u2requiresVersionIndex); }
public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo) { dataOutput.writeUnsignedShort(innerClassesInfo.u2innerClassIndex); dataOutput.writeUnsignedShort(innerClassesInfo.u2outerClassIndex); dataOutput.writeUnsignedShort(innerClassesInfo.u2innerNameIndex); dataOutput.writeUnsignedShort(innerClassesInfo.u2innerClassAccessFlags); }
public void visitUninitializedType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, UninitializedType uninitializedType) { dataOutput.writeUnsignedShort(uninitializedType.u2newInstructionOffset); } }
public void visitPackageConstant(Clazz clazz, PackageConstant packageConstant) { dataOutput.writeUnsignedShort(packageConstant.u2nameIndex); } }
public void visitProgramField(ProgramClass programClass, ProgramField programField) { // Write the general field information. // Ignore the higher bits outside the short range - these are for // internal purposes only. dataOutput.writeUnsignedShort(programField.u2accessFlags & 0xffff); dataOutput.writeUnsignedShort(programField.u2nameIndex); dataOutput.writeUnsignedShort(programField.u2descriptorIndex); // Write the field attributes. dataOutput.writeUnsignedShort(programField.u2attributesCount); programField.attributesAccept(programClass, this); }
public void visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod) { // Write the general method information. // Ignore the higher bits outside the short range - these are for // internal purposes only. dataOutput.writeUnsignedShort(programMethod.u2accessFlags & 0xffff); dataOutput.writeUnsignedShort(programMethod.u2nameIndex); dataOutput.writeUnsignedShort(programMethod.u2descriptorIndex); // Write the method attributes. dataOutput.writeUnsignedShort(programMethod.u2attributesCount); programMethod.attributesAccept(programClass, this); }
public void visitStackMapTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapTableAttribute stackMapTableAttribute) { // Write the stack map frames. dataOutput.writeUnsignedShort(stackMapTableAttribute.u2stackMapFramesCount); stackMapTableAttribute.stackMapFramesAccept(clazz, method, codeAttribute, this); }
public void visitStackMapAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapAttribute stackMapAttribute) { // Write the stack map frames (only full frames, without tag). dataOutput.writeUnsignedShort(stackMapAttribute.u2stackMapFramesCount); stackMapAttribute.stackMapFramesAccept(clazz, method, codeAttribute, stackMapFrameBodyWriter); }
public void visitAnyTypeAnnotationsAttribute(Clazz clazz, TypeAnnotationsAttribute typeAnnotationsAttribute) { // Write the type annotations. dataOutput.writeUnsignedShort(typeAnnotationsAttribute.u2annotationsCount); typeAnnotationsAttribute.typeAnnotationsAccept(clazz, this); }
public void visitSameZeroFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SameZeroFrame sameZeroFrame) { if (sameZeroFrame.getTag() == StackMapFrame.SAME_ZERO_FRAME_EXTENDED) { dataOutput.writeUnsignedShort(sameZeroFrame.u2offsetDelta); } }
public void visitBootstrapMethodsAttribute(Clazz clazz, BootstrapMethodsAttribute bootstrapMethodsAttribute) { // Write the bootstrap methods. dataOutput.writeUnsignedShort(bootstrapMethodsAttribute.u2bootstrapMethodsCount); bootstrapMethodsAttribute.bootstrapMethodEntriesAccept(clazz, this); }
public void visitLocalVariableTypeTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeTableAttribute localVariableTypeTableAttribute) { // Write the local variable types. dataOutput.writeUnsignedShort(localVariableTypeTableAttribute.u2localVariableTypeTableLength); localVariableTypeTableAttribute.localVariablesAccept(clazz, method, codeAttribute, this); }
public void visitLocalVariableTargetInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, TypeAnnotation typeAnnotation, LocalVariableTargetInfo localVariableTargetInfo) { // Write the local variable target elements. dataOutput.writeUnsignedShort(localVariableTargetInfo.u2tableLength); localVariableTargetInfo.targetElementsAccept(clazz, method, codeAttribute, typeAnnotation, this); }
public void visitArrayElementValue(Clazz clazz, Annotation annotation, ArrayElementValue arrayElementValue) { // Write the element values. dataOutput.writeUnsignedShort(arrayElementValue.u2elementValuesCount); arrayElementValue.elementValuesAccept(clazz, annotation, attributeBodyWriter); } }
public void visitSameOneFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SameOneFrame sameOneFrame) { if (sameOneFrame.getTag() == StackMapFrame.SAME_ONE_FRAME_EXTENDED) { dataOutput.writeUnsignedShort(sameOneFrame.u2offsetDelta); } // Write the verification type of the stack entry. sameOneFrame.stackItemAccept(clazz, method, codeAttribute, offset, this); }