Files
kotlin/compiler/testData/loadJava/compiledJava/annotations/CustomAnnotation.txt
Alexander Udalov 7368ca09b9 Resolve static enum members from compiled Java
For static members, a corresponding package is now created for every enum, as
it's done for every other class. All static members of enum classes are
resolved into the package, EXCEPT its enum entries, valueOf() and values()
methods, which are put into the enum's class descriptor.
2013-03-15 16:00:56 +04:00

27 lines
1.1 KiB
Plaintext

package test
public trait CustomAnnotation : java.lang.Object {
public final annotation class MyAnnotation : jet.Annotation {
public constructor MyAnnotation(/*0*/ value : test.CustomAnnotation.MyEnum?)
public abstract fun value() : test.CustomAnnotation.MyEnum?
}
public final enum class MyEnum : jet.Enum<test.CustomAnnotation.MyEnum> {
private constructor MyEnum()
public final override /*1*/ /*fake_override*/ fun name() : jet.String
public final override /*1*/ /*fake_override*/ fun ordinal() : jet.Int
public class object <class-object-for-MyEnum> {
private constructor <class-object-for-MyEnum>()
public final val ONE : test.CustomAnnotation.MyEnum
public final fun valueOf(/*0*/ value : jet.String) : test.CustomAnnotation.MyEnum
public final fun values() : jet.Array<test.CustomAnnotation.MyEnum>
}
}
test.CustomAnnotation.MyAnnotation(value = MyEnum.ONE: test.CustomAnnotation.MyEnum) public open class MyTest : java.lang.Object {
public constructor MyTest()
}
}