org.jetbrains.kotlin.codegen.binding
Class MutableClosure

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.binding.MutableClosure
All Implemented Interfaces:
CalculatedClosure

public final class MutableClosure
extends java.lang.Object
implements CalculatedClosure


Method Summary
 void captureVariable(EnclosedValueDescriptor value)
           
 int getCapturedParameterOffsetInConstructor(DeclarationDescriptor descriptor)
           
 KotlinType getCaptureReceiverType()
           
 ClassDescriptor getCaptureThis()
           
 java.util.Map<DeclarationDescriptor,EnclosedValueDescriptor> getCaptureVariables()
           
 ClassDescriptor getClosureClass()
           
 ClassDescriptor getEnclosingClass()
           
 ReceiverParameterDescriptor getEnclosingReceiverDescriptor()
           
 java.util.List<com.intellij.openapi.util.Pair<java.lang.String,org.jetbrains.org.objectweb.asm.Type>> getRecordedFields()
           
 boolean isSuspend()
           
 boolean isSuspendLambda()
           
 void recordField(java.lang.String name, org.jetbrains.org.objectweb.asm.Type type)
           
 void setCapturedParameterOffsetInConstructor(DeclarationDescriptor descriptor, int offset)
           
 void setCaptureReceiver()
           
 void setCaptureReceiverType(KotlinType type)
           
 void setCaptureThis()
           
 void setSuspend(boolean suspend)
           
 void setSuspendLambda()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClosureClass

@NotNull
public ClassDescriptor getClosureClass()
Specified by:
getClosureClass in interface CalculatedClosure

getEnclosingClass

@Nullable
public ClassDescriptor getEnclosingClass()

getCaptureThis

public ClassDescriptor getCaptureThis()
Specified by:
getCaptureThis in interface CalculatedClosure

setCaptureThis

public void setCaptureThis()

getCaptureReceiverType

public KotlinType getCaptureReceiverType()
Specified by:
getCaptureReceiverType in interface CalculatedClosure

setCaptureReceiver

public void setCaptureReceiver()

getCaptureVariables

@NotNull
public java.util.Map<DeclarationDescriptor,EnclosedValueDescriptor> getCaptureVariables()
Specified by:
getCaptureVariables in interface CalculatedClosure

setCaptureReceiverType

public void setCaptureReceiverType(@NotNull
                                   KotlinType type)

getRecordedFields

@NotNull
public java.util.List<com.intellij.openapi.util.Pair<java.lang.String,org.jetbrains.org.objectweb.asm.Type>> getRecordedFields()
Specified by:
getRecordedFields in interface CalculatedClosure

isSuspend

public boolean isSuspend()
Specified by:
isSuspend in interface CalculatedClosure

setSuspend

public void setSuspend(boolean suspend)

isSuspendLambda

public boolean isSuspendLambda()
Specified by:
isSuspendLambda in interface CalculatedClosure

setSuspendLambda

public void setSuspendLambda()

recordField

public void recordField(java.lang.String name,
                        org.jetbrains.org.objectweb.asm.Type type)

captureVariable

public void captureVariable(EnclosedValueDescriptor value)

setCapturedParameterOffsetInConstructor

public void setCapturedParameterOffsetInConstructor(DeclarationDescriptor descriptor,
                                                    int offset)

getCapturedParameterOffsetInConstructor

public int getCapturedParameterOffsetInConstructor(DeclarationDescriptor descriptor)

getEnclosingReceiverDescriptor

@Nullable
public ReceiverParameterDescriptor getEnclosingReceiverDescriptor()