reading annotations from bytecode
(without fields yet)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Retention(RetentionPolicy.CLASS)
|
||||
@interface Aaa {
|
||||
}
|
||||
|
||||
class HasAnnotatedMethod {
|
||||
@Aaa
|
||||
public void f() { }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
annotation class Aaa
|
||||
|
||||
open class HasAnnotatedMethod() {
|
||||
open Aaa fun f(): Unit { }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace test
|
||||
|
||||
open class test.HasAnnotatedMethod : jet.Any {
|
||||
final /*constructor*/ fun <init>(): test.HasAnnotatedMethod
|
||||
open test.Aaa() fun f(): jet.Tuple0
|
||||
}
|
||||
final annotation class test.Aaa : jet.Any {
|
||||
final /*constructor*/ fun <init>(): test.Aaa
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package test;
|
||||
|
||||
@interface SimpleAnnotation {
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
annotation class SimpleAnnotation
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace test
|
||||
|
||||
final annotation class test.SimpleAnnotation : jet.Any {
|
||||
final /*constructor*/ fun <init>(): test.SimpleAnnotation
|
||||
}
|
||||
Reference in New Issue
Block a user