ASM Mirror Descriptor

Addition to OW2 ASM library to support generating descriptors and signatures from TypeMirrors/Elements

Лицензия

Лицензия

Категории

Категории

ASM Библиотеки уровня приложения Bytecode Manipulation Mirror Introspection
Группа

Группа

io.soabase.asm-mirror-descriptor
Идентификатор

Идентификатор

asm-mirror-descriptor-parent
Последняя версия

Последняя версия

1
Дата

Дата

Тип

Тип

pom
Описание

Описание

ASM Mirror Descriptor
Addition to OW2 ASM library to support generating descriptors and signatures from TypeMirrors/Elements
Ссылка на сайт

Ссылка на сайт

https://github.com/soabase/asm-mirror-descriptor
Организация-разработчик

Организация-разработчик

ASM Mirror Descriptor
Система контроля версий

Система контроля версий

https://github.com/soabase/asm-mirror-descriptor

Скачать asm-mirror-descriptor-parent

Имя Файла Размер
asm-mirror-descriptor-parent-1.pom 9 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/io.soabase.asm-mirror-descriptor/asm-mirror-descriptor-parent/ -->
<dependency>
    <groupId>io.soabase.asm-mirror-descriptor</groupId>
    <artifactId>asm-mirror-descriptor-parent</artifactId>
    <version>1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.soabase.asm-mirror-descriptor/asm-mirror-descriptor-parent/
implementation 'io.soabase.asm-mirror-descriptor:asm-mirror-descriptor-parent:1'
// https://jarcasting.com/artifacts/io.soabase.asm-mirror-descriptor/asm-mirror-descriptor-parent/
implementation ("io.soabase.asm-mirror-descriptor:asm-mirror-descriptor-parent:1")
'io.soabase.asm-mirror-descriptor:asm-mirror-descriptor-parent:pom:1'
<dependency org="io.soabase.asm-mirror-descriptor" name="asm-mirror-descriptor-parent" rev="1">
  <artifact name="asm-mirror-descriptor-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.soabase.asm-mirror-descriptor', module='asm-mirror-descriptor-parent', version='1')
)
libraryDependencies += "io.soabase.asm-mirror-descriptor" % "asm-mirror-descriptor-parent" % "1"
[io.soabase.asm-mirror-descriptor/asm-mirror-descriptor-parent "1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.ow2.asm : asm jar 7.1

Модули Проекта

  • asm-mirror-descriptor
  • asm-mirror-descriptor-test-processor
  • asm-mirror-descriptor-test

Build Status Maven Central

ASM Mirror Descriptor

Addition to OW2 ASM library to support generating descriptors and signatures from TypeMirrors/Elements.

Background

The ASM library has classes that can process Java class files through a Visitor style API allowing users to examine or modify any part of a class. The ASM Mirror project adds comparable classes to do the same with TypeMirror and Element instances used during Annotation Processing.

Corresponding Classes

ASM Class ASM Mirror Class Description
ClassReader MirrorClassReader A parser to make a ClassVisitor visit a TypeMirror/Element instance.
Type MirrorType A Java field or method type.

Additional Classes

The Java spec requires "signatures" for generic descriptors. The ASM library has some internal utilities for generating these. The ASM mirror library provides SignatureMirrorType to generate generic signatures from TypeMirrors/Elements.

Usage

Usage is the same as for the ASM library except you pass in a TypeMirror element from an annotation processor instead of a class file. ASM Mirror calls a standard ASM ClassVistor E.g.

MirrorClassReader reader = new MirrorClassReader(processingEnv, element);
reader.accept(myClassVisitor);  // standard ASM ClassVisitor

Версии библиотеки

Версия
1