类的使用
cn.taketoday.bytecode.ByteVector

使用ByteVector的程序包
程序包
说明
CGLIB or ASM other byte code library
 
  • cn.taketoday.bytecodeByteVector的使用

    声明为ByteVectorcn.taketoday.bytecode中的字段
    修饰符和类型
    字段
    说明
    private final ByteVector
    AnnotationWriter.annotation
    The 'annotation' or 'type_annotation' JVMS structure corresponding to the annotation values visited so far.
    private ByteVector
    SymbolTable.bootstrapMethods
    The content of the BootstrapMethods attribute 'bootstrap_methods' array corresponding to this SymbolTable.
    private final ByteVector
    MethodWriter.code
    The 'code' field of the Code attribute.
    private final ByteVector
    SymbolTable.constantPool
    The content of the ClassFile's constant_pool JVMS structure corresponding to this SymbolTable.
    private ByteVector
    ClassWriter.debugExtension
    The debug_extension field of the SourceDebugExtension attribute, or null.
    private ByteVector
    MethodWriter.defaultValue
    The default_value field of the AnnotationDefault attribute, or null.
    private final ByteVector
    ModuleWriter.exports
    The binary content of the 'exports' array of the JVMS Module attribute.
    private ByteVector
    ClassWriter.innerClasses
    The 'classes' array of the InnerClasses attribute, or null.
    private ByteVector
    MethodWriter.lineNumberTable
    The line_number_table array of the LineNumberTable code attribute, or null.
    private ByteVector
    MethodWriter.localVariableTable
    The local_variable_table array of the LocalVariableTable code attribute, or null.
    private ByteVector
    The local_variable_type_table array of the LocalVariableTypeTable code attribute, or null.
    private ByteVector
    ClassWriter.nestMemberClasses
    The 'classes' array of the NestMembers attribute, or null.
    private final ByteVector
    ModuleWriter.opens
    The binary content of the 'opens' array of the JVMS Module attribute.
    private final ByteVector
    ModuleWriter.packageIndex
    The binary content of the 'package_index' array of the JVMS ModulePackages attribute.
    private ByteVector
    MethodWriter.parameters
    The 'parameters' array of the MethodParameters attribute, or null.
    private ByteVector
    The 'classes' array of the PermittedSubclasses attribute, or null.
    private final ByteVector
    ModuleWriter.provides
    The binary content of the 'provides' array of the JVMS Module attribute.
    private final ByteVector
    ModuleWriter.requires
    The binary content of the 'requires' array of the JVMS Module attribute.
    private ByteVector
    The 'entries' array of the StackMapTable code attribute.
    private final ByteVector
    ModuleWriter.usesIndex
    The binary content of the 'uses_index' array of the JVMS Module attribute.
    返回ByteVectorcn.taketoday.bytecode中的方法
    修饰符和类型
    方法
    说明
    (专用程序包) final ByteVector
    ByteVector.encodeUtf8(String stringValue, int offset, int maxByteLength)
    Puts an UTF8 string into this byte vector.
    (专用程序包) final ByteVector
    ByteVector.put11(int byteValue1, int byteValue2)
    Puts two bytes into this byte vector.
    (专用程序包) final ByteVector
    ByteVector.put112(int byteValue1, int byteValue2, int shortValue)
    Puts two bytes and a short into this byte vector.
    (专用程序包) final ByteVector
    ByteVector.put12(int byteValue, int shortValue)
    Puts a byte and a short into this byte vector.
    (专用程序包) final ByteVector
    ByteVector.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.
    ByteVector.putUTF8(String stringValue)
    Puts an UTF8 string into this byte vector.
    protected ByteVector
    Attribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
    Returns the byte array form of the content of this attribute.
    参数类型为ByteVectorcn.taketoday.bytecode中的方法
    修饰符和类型
    方法
    说明
    (专用程序包) final void
    Label.put(ByteVector code, int sourceInsnBytecodeOffset, boolean wideReference)
    Puts a reference to this label in the bytecode of a method.
    (专用程序包) static void
    TypePath.put(TypePath typePath, ByteVector output)
    Puts the type_path JVMS structure corresponding to the given TypePath into the given ByteVector.
    (专用程序包) static void
    Frame.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.
    (专用程序包) void
    AnnotationWriter.putAnnotations(int attributeNameIndex, ByteVector output)
    Puts a Runtime[In]Visible[Type]Annotations attribute containing this annotations and all its predecessors (see AnnotationWriter.previousAnnotation in the given ByteVector.
    (专用程序包) static void
    AnnotationWriter.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 (see AnnotationWriter.previousAnnotation in the given ByteVector.
    (专用程序包) final void
    Attribute.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 void
    Attribute.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 void
    Attribute.putAttributes(SymbolTable symbolTable, ByteVector output)
    Puts all the attributes of the attribute list that begins with this attribute, in the given byte vector.
    (专用程序包) void
    ModuleWriter.putAttributes(ByteVector output)
    Puts the Module, ModulePackages and ModuleMainClass attributes generated by this ModuleWriter in the given ByteVector.
    (专用程序包) void
    SymbolTable.putBootstrapMethods(ByteVector output)
    Puts this symbol table's BootstrapMethods attribute in the given ByteVector.
    (专用程序包) void
    SymbolTable.putConstantPool(ByteVector output)
    Puts this symbol table's constant_pool array in the given ByteVector, preceded by the constant_pool_count value.
    (专用程序包) static void
    Handler.putExceptionTable(Handler firstHandler, ByteVector output)
    Puts the JVMS exception_table corresponding to the Handler list that begins with the given element.
    (专用程序包) void
    FieldWriter.putFieldInfo(ByteVector output)
    Puts the content of the field_info JVMS structure generated by this FieldWriter into the given ByteVector.
    (专用程序包) void
    MethodWriter.putMethodInfo(ByteVector output)
    Puts the content of the method_info JVMS structure generated by this MethodWriter into the given ByteVector.
    (专用程序包) static void
    AnnotationWriter.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.
    (专用程序包) void
    RecordComponentWriter.putRecordComponentInfo(ByteVector output)
    Puts the content of the record component generated by this RecordComponentWriter into the given ByteVector.
    (专用程序包) static void
    TypeReference.putTarget(int targetTypeAndInfo, ByteVector output)
    Puts the given target_type and target_info JVMS structures into the given ByteVector.
    abstract void
    AnnotationValueHolder.write(ByteVector annotation, SymbolTable symbolTable)
     
    void
    ClassValueHolder.write(ByteVector annotation, SymbolTable symbolTable)
     
    void
    EnumValueHolder.write(ByteVector annotation, SymbolTable symbolTable)
     
    参数类型为ByteVectorcn.taketoday.bytecode中的构造器
    限定符
    构造器
    说明
    (专用程序包)
    AnnotationWriter(SymbolTable symbolTable, boolean useNamedValues, ByteVector annotation, AnnotationWriter previousAnnotation)
    Constructs a new AnnotationWriter.
  • cn.taketoday.bytecode.commonsByteVector的使用

    修饰符和类型
    方法
    说明
    protected ByteVector
    ModuleHashesAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
     
    protected ByteVector
    ModuleResolutionAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
     
    protected ByteVector
    ModuleTargetAttribute.write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)