org.jetbrains.kotlin.codegen
Class AnnotationCodegen
java.lang.Object
org.jetbrains.kotlin.codegen.AnnotationCodegen
public abstract class AnnotationCodegen
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FIELD_FLAGS
public static final java.util.List<AnnotationCodegen.JvmFlagAnnotation> FIELD_FLAGS
METHOD_FLAGS
public static final java.util.List<AnnotationCodegen.JvmFlagAnnotation> METHOD_FLAGS
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)
generateAnnotationDefaultValue
public void generateAnnotationDefaultValue(@NotNull
CompileTimeConstant value,
@NotNull
JetType expectedType)
forClass
public static AnnotationCodegen forClass(org.jetbrains.org.objectweb.asm.ClassVisitor cv,
JetTypeMapper mapper)
forMethod
public static AnnotationCodegen forMethod(org.jetbrains.org.objectweb.asm.MethodVisitor mv,
JetTypeMapper mapper)
forField
public static AnnotationCodegen forField(org.jetbrains.org.objectweb.asm.FieldVisitor fv,
JetTypeMapper mapper)
forParameter
public static AnnotationCodegen forParameter(int parameter,
org.jetbrains.org.objectweb.asm.MethodVisitor mv,
JetTypeMapper mapper)
forAnnotationDefaultValue
public static AnnotationCodegen forAnnotationDefaultValue(org.jetbrains.org.objectweb.asm.MethodVisitor mv,
JetTypeMapper mapper)