org.jetbrains.kotlin.codegen.inline
Class InliningContext

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.inline.InliningContext
Direct Known Subclasses:
RegeneratedClassContext, RootInliningContext

public class InliningContext
extends java.lang.Object


Field Summary
 boolean classRegeneration
           
 boolean isInliningLambda
           
 NameGenerator nameGenerator
           
 ReifiedTypeInliner reifiedTypeInliner
           
 GenerationState state
           
 TypeRemapper typeRemapper
           
 
Constructor Summary
InliningContext(InliningContext parent, java.util.Map<java.lang.Integer,LambdaInfo> expressionMap, GenerationState state, NameGenerator nameGenerator, TypeRemapper typeRemapper, ReifiedTypeInliner reifiedTypeInliner, boolean isInliningLambda, boolean classRegeneration)
           
 
Method Summary
 InlineCallSiteInfo getCallSiteInfo()
           
 InliningContext getParent()
           
 RootInliningContext getRoot()
           
 boolean isRoot()
           
 InliningContext subInline(NameGenerator generator)
           
 InliningContext subInlineLambda(LambdaInfo lambdaInfo)
           
 InliningContext subInlineWithClassRegeneration(NameGenerator generator, java.util.Map<java.lang.String,java.lang.String> newTypeMappings, InlineCallSiteInfo callSiteInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public final GenerationState state

nameGenerator

public final NameGenerator nameGenerator

typeRemapper

public final TypeRemapper typeRemapper

reifiedTypeInliner

public final ReifiedTypeInliner reifiedTypeInliner

isInliningLambda

public final boolean isInliningLambda

classRegeneration

public final boolean classRegeneration
Constructor Detail

InliningContext

public InliningContext(@Nullable
                       InliningContext parent,
                       @NotNull
                       java.util.Map<java.lang.Integer,LambdaInfo> expressionMap,
                       @NotNull
                       GenerationState state,
                       @NotNull
                       NameGenerator nameGenerator,
                       @NotNull
                       TypeRemapper typeRemapper,
                       @NotNull
                       ReifiedTypeInliner reifiedTypeInliner,
                       boolean isInliningLambda,
                       boolean classRegeneration)
Method Detail

subInline

@NotNull
public InliningContext subInline(@NotNull
                                         NameGenerator generator)

subInlineLambda

@NotNull
public InliningContext subInlineLambda(@NotNull
                                               LambdaInfo lambdaInfo)

subInlineWithClassRegeneration

@NotNull
public InliningContext subInlineWithClassRegeneration(@NotNull
                                                              NameGenerator generator,
                                                              @NotNull
                                                              java.util.Map<java.lang.String,java.lang.String> newTypeMappings,
                                                              @NotNull
                                                              InlineCallSiteInfo callSiteInfo)

isRoot

public boolean isRoot()

getRoot

@NotNull
public RootInliningContext getRoot()

getParent

@Nullable
public InliningContext getParent()

getCallSiteInfo

@NotNull
public InlineCallSiteInfo getCallSiteInfo()