org.jetbrains.kotlin.codegen.context
Class MethodContext
java.lang.Object
org.jetbrains.kotlin.codegen.context.CodegenContext<CallableMemberDescriptor>
org.jetbrains.kotlin.codegen.context.MethodContext
- Direct Known Subclasses:
- ConstructorContext
public class MethodContext
- extends CodegenContext<CallableMemberDescriptor>
Methods inherited from class org.jetbrains.kotlin.codegen.context.CodegenContext |
accessibleDescriptor, computeOuterExpression, findChildContext, findParentContextWithDescriptor, getAccessor, getAccessorForSuperCallIfNeeded, getAccessors, getCallableDescriptorWithReceiver, getClassOrPackageParentContext, getContextDescriptor, getContextKind, getEnclosingClass, getFirstCrossInlineOrNonInlineContext, getState, getThisDescriptor, hasThisDescriptor, intoAnonymousClass, intoClass, intoClosure, intoConstructor, intoDefaultImplsClass, intoFunction, intoInlinedLambda, intoMultifileClass, intoMultifileClassPart, intoPackagePart, intoScript, shouldAddChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodContext
protected MethodContext(@NotNull
FunctionDescriptor functionDescriptor,
@NotNull
OwnerKind contextKind,
@NotNull
CodegenContext parentContext,
@Nullable
MutableClosure closure)
getParentContext
@NotNull
public CodegenContext getParentContext()
- Overrides:
getParentContext
in class CodegenContext<CallableMemberDescriptor>
getReceiverExpression
public StackValue getReceiverExpression(JetTypeMapper typeMapper)
lookupInContext
public StackValue lookupInContext(DeclarationDescriptor d,
@Nullable
StackValue result,
GenerationState state,
boolean ignoreNoOuter)
- Overrides:
lookupInContext
in class CodegenContext<CallableMemberDescriptor>
generateReceiver
@Nullable
public StackValue generateReceiver(@NotNull
CallableDescriptor descriptor,
@NotNull
GenerationState state,
boolean ignoreNoOuter)
getOuterExpression
public StackValue getOuterExpression(StackValue prefix,
boolean ignoreNoOuter)
- Overrides:
getOuterExpression
in class CodegenContext<CallableMemberDescriptor>
getMethodStartLabel
@Nullable
public org.jetbrains.org.objectweb.asm.Label getMethodStartLabel()
setMethodStartLabel
public void setMethodStartLabel(@NotNull
org.jetbrains.org.objectweb.asm.Label methodStartLabel)
getMethodEndLabel
@Nullable
public org.jetbrains.org.objectweb.asm.Label getMethodEndLabel()
setMethodEndLabel
public void setMethodEndLabel(@NotNull
org.jetbrains.org.objectweb.asm.Label methodEndLabel)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isInlineMethodContext
public boolean isInlineMethodContext()
- Overrides:
isInlineMethodContext
in class CodegenContext<CallableMemberDescriptor>
getFunctionDescriptor
@NotNull
public FunctionDescriptor getFunctionDescriptor()