GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sjxxcode/asm-module: ✈️ ASM 4 教程中的示例代码,用于 ASM 学习,介绍了 ASM 中基本的使用说明。

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
asm_example
asm_example
 
 
doc
doc
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

asm-module

本工程中主要是针对 ASM 4 教程中的示例代码整合而来,将每个示例代码片段整合成可运行的 Java 运行程序,方便初学者学习使用。

  • 基础入门介绍文章AOP 利器 ASM 基础入门
  • ASM 开发指南中文译文:ASM 6 开发者指南
  • 个人总结的额外案例:asm-example

章节目录

第 2 章

2.2 接口与组件

  • 2.2.1 ClassReader 读取
  • 2.2.2 ClassVisitor 分析类
  • 2.2.3 ClassWriter 生成类
  • 2.2.4 转换类
  • 2.2.5 移除类成员
  • 2.2.6 添加类成员
  • 额外补充
    • FieldVisitor
    • CheckFieldInsn
    • TraceFieldInsn

2.3 工具

  • 2.3.1 Type
  • 2.3.2 TraceClassVisitor
  • 2.3.3 CheckClassAdapter

第 3 章

3.1 结构

  • 3.1.3 字节码指令

3.2 接口与组件

  • 3.2.1 MethodVisitor
  • 3.2.2 生成方法
  • 3.2.3 转换方法
  • 3.2.4 无状态转换
  • 3.2.5 有状态转换

3.3 工具

  • 3.3.1 基本工具
    • 1. Type
    • 2. TraceMethodVisitor
  • 3.3.2 AnalyzerAdapter
    • AddTimerMethodAdapter2
    • AddTimerMethodAdapter3
  • 3.3.3 LocalVariablesSorter
    • AddTimerMethodAdapter4
    • AddTimerMethodAdapter5
  • 3.3.4. AdviceAdapter

第 4 章

4.1 泛型

  • 4.1.2 接口与组件 SignatureVisitor

4.2 注解

  • 4.2.2 接口与组件

    • AnnotationVisitor 基础
    • 删除注解 RemoveAnnotationAdapter
    • 添加注解 AddAnnotationAdapter
  • 4.2.3 工具

    • 创建注解类 DeprecatedDump
    • TraceAnnotationVisitor
    • CheckAnnotationAdapter

第 5 章

  • 向后兼容/向下兼容

第 6 章

  • 6.1 接口组件介绍
    • 6.1.1 基本介绍
    • 6.1.2 生成类
    • 6.1.3 添加删除类成员
      • 删除类成员
      • 添加类成员
  • 6.2 组件合成
    • 6.2.1 基本介绍
    • 6.2.2 模式

第 7 章

  • 7.1 接口与组件
    • 7.1.1 介绍
    • 7.1.2 生成方法
    • 7.1.4 无状态转换和有状态转换
      • AddTimerTransformer
      • RemoveGetFieldPutFieldTransformer
      • RemoveGetFieldPutFieldTransformer2
    • 7.1.5 全局转换
  • 7.2 组件与合成
    • 7.2.2 模式

第 8 章

  • 8.1 介绍
  • 8.2 接口与组件
    • 8.2.1 基本数据流分析
    • 8.2.2 基本数据流校验器
    • 8.2.3 简单数据流校验器
      • RemoveUnusedCastAdapter
    • 8.2.4 自定义数据流分析
    • 8.2.5 控制流分析

第 9 章

  • 9.1 泛型
  • 9.2 注解

第 10 章

About

✈️ ASM 4 教程中的示例代码,用于 ASM 学习,介绍了 ASM 中基本的使用说明。

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.