org.jetbrains.kotlin.codegen
Class ClosureCodegen
java.lang.Object
org.jetbrains.kotlin.codegen.MemberCodegen<JetElement>
org.jetbrains.kotlin.codegen.ClosureCodegen
public class ClosureCodegen
- extends MemberCodegen<JetElement>
Methods inherited from class org.jetbrains.kotlin.codegen.MemberCodegen |
createOrGetClInitCodegen, genClassOrObject, genClassOrObject, generate, generateInitializers, generatePropertyMetadataArrayFieldIfNeeded, generateReflectionObjectField, generateSyntheticParts, genFunctionOrProperty, getClassName, getContext, getInlineNameGenerator, getOrCreateSourceMapper, getParentCodegen, getReifiedTypeParametersUsages, toString, writeOuterClassAndEnclosingMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClosureCodegen
public ClosureCodegen(@NotNull
GenerationState state,
@NotNull
JetElement element,
@Nullable
SamType samType,
@NotNull
ClosureContext context,
@NotNull
JvmAnnotationNames.KotlinSyntheticClass.Kind syntheticClassKind,
@NotNull
FunctionGenerationStrategy strategy,
@NotNull
MemberCodegen<?> parentCodegen,
@NotNull
ClassBuilder classBuilder)
generateDeclaration
protected void generateDeclaration()
- Specified by:
generateDeclaration
in class MemberCodegen<JetElement>
classForInnerClassRecord
@Nullable
protected ClassDescriptor classForInnerClassRecord()
- Overrides:
classForInnerClassRecord
in class MemberCodegen<JetElement>
generateBody
protected void generateBody()
- Specified by:
generateBody
in class MemberCodegen<JetElement>
generateKotlinAnnotation
protected void generateKotlinAnnotation()
- Specified by:
generateKotlinAnnotation
in class MemberCodegen<JetElement>
done
protected void done()
- Overrides:
done
in class MemberCodegen<JetElement>
putInstanceOnStack
@NotNull
public StackValue putInstanceOnStack(@NotNull
ExpressionCodegen codegen,
@Nullable
FunctionDescriptor functionReferenceTarget)
calculateConstructorParameters
@NotNull
public static java.util.List<FieldInfo> calculateConstructorParameters(@NotNull
JetTypeMapper typeMapper,
@NotNull
CalculatedClosure closure,
@NotNull
org.jetbrains.org.objectweb.asm.Type ownerType)
getErasedInvokeFunction
@NotNull
public static FunctionDescriptor getErasedInvokeFunction(@NotNull
FunctionDescriptor elementDescriptor)