org.jetbrains.kotlin.codegen
Class AnnotationCodegen

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.AnnotationCodegen

public abstract class AnnotationCodegen
extends java.lang.Object


Nested Class Summary
static class AnnotationCodegen.JvmFlagAnnotation
           
 
Field Summary
static java.util.List<AnnotationCodegen.JvmFlagAnnotation> FIELD_FLAGS
           
static java.util.List<AnnotationCodegen.JvmFlagAnnotation> METHOD_FLAGS
           
 
Method Summary
static AnnotationCodegen forAnnotationDefaultValue(org.jetbrains.org.objectweb.asm.MethodVisitor mv, InnerClassConsumer innerClassConsumer, KotlinTypeMapper mapper)
           
static AnnotationCodegen forClass(org.jetbrains.org.objectweb.asm.ClassVisitor cv, InnerClassConsumer innerClassConsumer, KotlinTypeMapper mapper)
           
static AnnotationCodegen forField(org.jetbrains.org.objectweb.asm.FieldVisitor fv, InnerClassConsumer innerClassConsumer, KotlinTypeMapper mapper)
           
static AnnotationCodegen forMethod(org.jetbrains.org.objectweb.asm.MethodVisitor mv, InnerClassConsumer innerClassConsumer, KotlinTypeMapper mapper)
           
static AnnotationCodegen forParameter(int parameter, org.jetbrains.org.objectweb.asm.MethodVisitor mv, InnerClassConsumer innerClassConsumer, KotlinTypeMapper mapper)
           
 void genAnnotations(Annotated annotated, org.jetbrains.org.objectweb.asm.Type returnType)
           
 void genAnnotations(Annotated annotated, org.jetbrains.org.objectweb.asm.Type returnType, AnnotationUseSiteTarget allowedTarget)
           
 void generateAnnotationDefaultValue( value, KotlinType expectedType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_FLAGS

public static final java.util.List<AnnotationCodegen.JvmFlagAnnotation> FIELD_FLAGS

METHOD_FLAGS

public static final java.util.List<AnnotationCodegen.JvmFlagAnnotation> METHOD_FLAGS
Method Detail

genAnnotations

public void genAnnotations(@Nullable
                           Annotated annotated,
                           @Nullable
                           org.jetbrains.org.objectweb.asm.Type returnType)
Parameters:
returnType - can be null if not applicable (e.g. annotated is a class)

genAnnotations

public void genAnnotations(@Nullable
                           Annotated annotated,
                           @Nullable
                           org.jetbrains.org.objectweb.asm.Type returnType,
                           @Nullable
                           AnnotationUseSiteTarget allowedTarget)

generateAnnotationDefaultValue

public void generateAnnotationDefaultValue(@NotNull
                                            value,
                                           @NotNull
                                           KotlinType expectedType)

forClass

public static AnnotationCodegen forClass(@NotNull
                                         org.jetbrains.org.objectweb.asm.ClassVisitor cv,
                                         @NotNull
                                         InnerClassConsumer innerClassConsumer,
                                         @NotNull
                                         KotlinTypeMapper mapper)

forMethod

public static AnnotationCodegen forMethod(@NotNull
                                          org.jetbrains.org.objectweb.asm.MethodVisitor mv,
                                          @NotNull
                                          InnerClassConsumer innerClassConsumer,
                                          @NotNull
                                          KotlinTypeMapper mapper)

forField

public static AnnotationCodegen forField(@NotNull
                                         org.jetbrains.org.objectweb.asm.FieldVisitor fv,
                                         @NotNull
                                         InnerClassConsumer innerClassConsumer,
                                         @NotNull
                                         KotlinTypeMapper mapper)

forParameter

public static AnnotationCodegen forParameter(int parameter,
                                             @NotNull
                                             org.jetbrains.org.objectweb.asm.MethodVisitor mv,
                                             @NotNull
                                             InnerClassConsumer innerClassConsumer,
                                             @NotNull
                                             KotlinTypeMapper mapper)

forAnnotationDefaultValue

public static AnnotationCodegen forAnnotationDefaultValue(@NotNull
                                                          org.jetbrains.org.objectweb.asm.MethodVisitor mv,
                                                          @NotNull
                                                          InnerClassConsumer innerClassConsumer,
                                                          @NotNull
                                                          KotlinTypeMapper mapper)