https://github.com/mebigfatguy/asm-delegate
A set of classes to be used with asm that allow for delegating visitors to a set of visitors.
https://github.com/mebigfatguy/asm-delegate
asm bytecode-parser java
Last synced: 4 months ago
JSON representation
A set of classes to be used with asm that allow for delegating visitors to a set of visitors.
- Host: GitHub
- URL: https://github.com/mebigfatguy/asm-delegate
- Owner: mebigfatguy
- License: apache-2.0
- Created: 2019-11-28T15:05:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T18:30:55.000Z (about 2 years ago)
- Last Synced: 2025-03-02T04:15:13.719Z (about 1 year ago)
- Topics: asm, bytecode-parser, java
- Language: Java
- Homepage:
- Size: 38.1 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# asm-delegate
A set of classes that allow for delegating visitors to a set of visitors. This allows you do use many visitors in one pass of a ClassReader, but keep the logic for each time of scan separate in their own visitor. Used Like
```java
MyClassVisitor1 v1 = new MyClassVisitor1();
MyClassVisitor2 v2 = new MyClassVisitor2();
MyClassVisitor3 v3 = new MyClassVisitor3();
DelegatingClassVisitor dcv = new DelegatingClassVisitor(Opcodes.ASM7, v1, v2, v3);
ClassReader r = new ClassReader(inputStream, 0);
r.accept(dcv);
```
Delegating visitors are available for all asm visitors: Class, Field, Method, Annotation, Module
Available on maven central with coordinates
| | |
|------------|------------------------------|
| GroupId | com.mebigfatguy.asm-delegate |
| ArtifactId | asm-delegate |
| Version | 0.2.0 |