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)
           
 JetType getCaptureReceiverType()
           
 ClassDescriptor getCaptureThis()
           
 java.util.Map<DeclarationDescriptor,EnclosedValueDescriptor> getCaptureVariables()
           
 ClassDescriptor getEnclosingClass()
           
 ReceiverParameterDescriptor getEnclosingReceiverDescriptor()
           
 java.util.List<com.intellij.openapi.util.Pair<java.lang.String,org.jetbrains.org.objectweb.asm.Type>> getRecordedFields()
           
 void recordField(java.lang.String name, org.jetbrains.org.objectweb.asm.Type type)
           
 void setCapturedParameterOffsetInConstructor(DeclarationDescriptor descriptor, int offset)
           
 void setCaptureReceiver()
           
 void setCaptureThis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEnclosingClass

@Nullable
public ClassDescriptor getEnclosingClass()

getCaptureThis

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

setCaptureThis

public void setCaptureThis()

getCaptureReceiverType

public JetType 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

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

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()