类的使用
cn.taketoday.bytecode.ByteVector
使用ByteVector的程序包
-
cn.taketoday.bytecode中ByteVector的使用
声明为ByteVector的cn.taketoday.bytecode中的字段修饰符和类型字段说明private final ByteVectorAnnotationWriter.annotationThe 'annotation' or 'type_annotation' JVMS structure corresponding to the annotation values visited so far.private ByteVectorSymbolTable.bootstrapMethodsThe content of the BootstrapMethods attribute 'bootstrap_methods' array corresponding to this SymbolTable.private final ByteVectorMethodWriter.codeThe 'code' field of the Code attribute.private final ByteVectorSymbolTable.constantPoolThe content of the ClassFile's constant_pool JVMS structure corresponding to this SymbolTable.private ByteVectorClassWriter.debugExtensionThe debug_extension field of the SourceDebugExtension attribute, or null.private ByteVectorMethodWriter.defaultValueThe default_value field of the AnnotationDefault attribute, or null.private final ByteVectorModuleWriter.exportsThe binary content of the 'exports' array of the JVMS Module attribute.private ByteVectorClassWriter.innerClassesThe 'classes' array of the InnerClasses attribute, or null.private ByteVectorMethodWriter.lineNumberTableThe line_number_table array of the LineNumberTable code attribute, or null.private ByteVectorMethodWriter.localVariableTableThe local_variable_table array of the LocalVariableTable code attribute, or null.private ByteVectorMethodWriter.localVariableTypeTableThe local_variable_type_table array of the LocalVariableTypeTable code attribute, or null.private ByteVectorClassWriter.nestMemberClassesThe 'classes' array of the NestMembers attribute, or null.private final ByteVectorModuleWriter.opensThe binary content of the 'opens' array of the JVMS Module attribute.private final ByteVectorModuleWriter.packageIndexThe binary content of the 'package_index' array of the JVMS ModulePackages attribute.private ByteVectorMethodWriter.parametersThe 'parameters' array of the MethodParameters attribute, or null.private ByteVectorClassWriter.permittedSubclassesThe 'classes' array of the PermittedSubclasses attribute, or null.private final ByteVectorModuleWriter.providesThe binary content of the 'provides' array of the JVMS Module attribute.private final ByteVectorModuleWriter.requiresThe binary content of the 'requires' array of the JVMS Module attribute.private ByteVectorMethodWriter.stackMapTableEntriesThe 'entries' array of the StackMapTable code attribute.private final ByteVectorModuleWriter.usesIndexThe binary content of the 'uses_index' array of the JVMS Module attribute.修饰符和类型方法说明(专用程序包) final ByteVectorByteVector.encodeUtf8(String stringValue, int offset, int maxByteLength) Puts an UTF8 string into this byte vector.(专用程序包) final ByteVectorByteVector.put11(int byteValue1, int byteValue2) Puts two bytes into this byte vector.(专用程序包) final ByteVectorByteVector.put112(int byteValue1, int byteValue2, int shortValue) Puts two bytes and a short into this byte vector.(专用程序包) final ByteVectorByteVector.put12(int byteValue, int shortValue) Puts a byte and a short into this byte vector.(专用程序包) final ByteVectorByteVector.put122(int byteValue, int shortValue1, int shortValue2) Puts one byte and two shorts into this byte vector.ByteVector.putByte(int byteValue) Puts a byte into this byte vector.ByteVector.putByteArray(byte[] byteArrayValue, int byteOffset, int byteLength) Puts an array of bytes into this byte vector.ByteVector.putInt(int intValue) Puts an int into this byte vector.ByteVector.putLong(long longValue) Puts a long into this byte vector.ByteVector.putShort(int shortValue) Puts a short into this byte vector.Puts an UTF8 string into this byte vector.protected ByteVectorAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals) Returns the byte array form of the content of this attribute.参数类型为ByteVector的cn.taketoday.bytecode中的方法修饰符和类型方法说明(专用程序包) final voidLabel.put(ByteVector code, int sourceInsnBytecodeOffset, boolean wideReference) Puts a reference to this label in the bytecode of a method.(专用程序包) static voidTypePath.put(TypePath typePath, ByteVector output) Puts the type_path JVMS structure corresponding to the given TypePath into the given ByteVector.(专用程序包) static voidFrame.putAbstractType(SymbolTable symbolTable, int abstractType, ByteVector output) Put the given abstract type in the given ByteVector, using the JVMS verification_type_info format used in StackMapTable attributes.(专用程序包) voidAnnotationWriter.putAnnotations(int attributeNameIndex, ByteVector output) Puts a Runtime[In]Visible[Type]Annotations attribute containing this annotations and all its predecessors (seeAnnotationWriter.previousAnnotationin the given ByteVector.(专用程序包) static voidAnnotationWriter.putAnnotations(SymbolTable symbolTable, AnnotationWriter lastRuntimeVisibleAnnotation, AnnotationWriter lastRuntimeInvisibleAnnotation, AnnotationWriter lastRuntimeVisibleTypeAnnotation, AnnotationWriter lastRuntimeInvisibleTypeAnnotation, ByteVector output) Puts the Runtime[In]Visible[Type]Annotations attributes containing the given annotations and all their predecessors (seeAnnotationWriter.previousAnnotationin the given ByteVector.(专用程序包) final voidAttribute.putAttributes(SymbolTable symbolTable, byte[] code, int codeLength, int maxStack, int maxLocals, ByteVector output) Puts all the attributes of the attribute list that begins with this attribute, in the given byte vector.(专用程序包) static voidAttribute.putAttributes(SymbolTable symbolTable, int accessFlags, int signatureIndex, ByteVector output) Puts all the attributes that correspond to the given field, method or class access flags and signature, in the given byte vector.(专用程序包) final voidAttribute.putAttributes(SymbolTable symbolTable, ByteVector output) Puts all the attributes of the attribute list that begins with this attribute, in the given byte vector.(专用程序包) voidModuleWriter.putAttributes(ByteVector output) Puts the Module, ModulePackages and ModuleMainClass attributes generated by this ModuleWriter in the given ByteVector.(专用程序包) voidSymbolTable.putBootstrapMethods(ByteVector output) Puts this symbol table's BootstrapMethods attribute in the given ByteVector.(专用程序包) voidSymbolTable.putConstantPool(ByteVector output) Puts this symbol table's constant_pool array in the given ByteVector, preceded by the constant_pool_count value.(专用程序包) static voidHandler.putExceptionTable(Handler firstHandler, ByteVector output) Puts the JVMS exception_table corresponding to the Handler list that begins with the given element.(专用程序包) voidFieldWriter.putFieldInfo(ByteVector output) Puts the content of the field_info JVMS structure generated by this FieldWriter into the given ByteVector.(专用程序包) voidMethodWriter.putMethodInfo(ByteVector output) Puts the content of the method_info JVMS structure generated by this MethodWriter into the given ByteVector.(专用程序包) static voidAnnotationWriter.putParameterAnnotations(int attributeNameIndex, AnnotationWriter[] annotationWriters, int annotableParameterCount, ByteVector output) Puts a Runtime[In]VisibleParameterAnnotations attribute containing all the annotation lists from the given AnnotationWriter sub-array in the given ByteVector.(专用程序包) voidRecordComponentWriter.putRecordComponentInfo(ByteVector output) Puts the content of the record component generated by this RecordComponentWriter into the given ByteVector.(专用程序包) static voidTypeReference.putTarget(int targetTypeAndInfo, ByteVector output) Puts the given target_type and target_info JVMS structures into the given ByteVector.abstract voidAnnotationValueHolder.write(ByteVector annotation, SymbolTable symbolTable) voidClassValueHolder.write(ByteVector annotation, SymbolTable symbolTable) voidEnumValueHolder.write(ByteVector annotation, SymbolTable symbolTable) 参数类型为ByteVector的cn.taketoday.bytecode中的构造器限定符构造器说明(专用程序包)AnnotationWriter(SymbolTable symbolTable, boolean useNamedValues, ByteVector annotation, AnnotationWriter previousAnnotation) Constructs a newAnnotationWriter. -
cn.taketoday.bytecode.commons中ByteVector的使用
修饰符和类型方法说明protected ByteVectorModuleHashesAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals) protected ByteVectorModuleResolutionAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals) protected ByteVectorModuleTargetAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)