reading annotations from bytecode

(without fields yet)
This commit is contained in:
Stepan Koltsov
2012-02-21 20:16:11 +04:00
parent 175b7230f1
commit aacf63ff6f
11 changed files with 127 additions and 11 deletions
@@ -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
}