类的使用
cn.taketoday.bytecode.Context
使用Context的程序包
-
cn.taketoday.bytecode中Context的使用
参数类型为Context的cn.taketoday.bytecode中的方法修饰符和类型方法说明private voidClassReader.computeImplicitFrame(Context context) Computes the implicit frame of the method currently being parsed (as defined in the givenContext) and stores it in the given context.private voidClassReader.readCode(MethodVisitor methodVisitor, Context context, int codeOffset) Reads a JVMS 'Code' attribute and makes the given visitor visit it.private intClassReader.readField(ClassVisitor classVisitor, Context context, int fieldInfoOffset) Reads a JVMS field_info structure and makes the given visitor visit it.private intClassReader.readMethod(ClassVisitor classVisitor, Context context, int methodInfoOffset) Reads a JVMS method_info structure and makes the given visitor visit it.private voidClassReader.readModuleAttributes(ClassVisitor classVisitor, Context context, int moduleOffset, int modulePackagesOffset, String moduleMainClass) Reads the Module, ModulePackages and ModuleMainClass attributes and visit them.private voidClassReader.readParameterAnnotations(MethodVisitor methodVisitor, Context context, int runtimeParameterAnnotationsOffset, boolean visible) Reads a Runtime[In]VisibleParameterAnnotations attribute and makes the given visitor visit it.private intClassReader.readRecordComponent(ClassVisitor classVisitor, Context context, int recordComponentOffset) Reads a record component and visit it.private intClassReader.readStackMapFrame(int stackMapFrameOffset, boolean compressed, boolean expand, Context context) Reads a JVMS 'stack_map_frame' structure and stores the result in the givenContextobject.private int[]ClassReader.readTypeAnnotations(MethodVisitor methodVisitor, Context context, int runtimeTypeAnnotationsOffset, boolean visible) Parses a Runtime[In]VisibleTypeAnnotations attribute to find the offset of each type_annotation entry it contains, to find the corresponding labels, and to visit the try catch block annotations.private intClassReader.readTypeAnnotationTarget(Context context, int typeAnnotationOffset) Parses the header of a JVMS type_annotation structure to extract its target_type, target_info and target_path (the result is stored in the given context), and returns the start offset of the rest of the type_annotation structure.