org.jetbrains.jet.codegen.context
Class MethodContext

java.lang.Object
  extended by org.jetbrains.jet.codegen.context.CodegenContext
      extended by org.jetbrains.jet.codegen.context.MethodContext
Direct Known Subclasses:
ConstructorContext

public class MethodContext
extends CodegenContext


Field Summary
 
Fields inherited from class org.jetbrains.jet.codegen.context.CodegenContext
closure, STATIC
 
Constructor Summary
  MethodContext(FunctionDescriptor contextType, OwnerKind contextKind, CodegenContext parentContext)
           
protected MethodContext(FunctionDescriptor contextType, OwnerKind contextKind, CodegenContext parentContext, MutableClosure closure)
           
 
Method Summary
 org.jetbrains.asm4.Label getMethodStartLabel()
           
 StackValue getOuterExpression(StackValue prefix, boolean ignoreNoOuter)
           
 boolean isStatic()
           
 StackValue lookupInContext(DeclarationDescriptor d, StackValue result, GenerationState state, boolean ignoreNoOuter)
           
 void setMethodStartLabel(org.jetbrains.asm4.Label methodStartLabel)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.jet.codegen.context.CodegenContext
accessibleFunctionDescriptor, accessiblePropertyDescriptor, findChildContext, findParentContextWithDescriptor, getAccessor, getAccessor, getAccessors, getCallableDescriptorWithReceiver, getClassOrNamespaceDescriptor, getContextDescriptor, getContextKind, getEnclosingClass, getParentContext, getReceiverExpression, getThisDescriptor, hasThisDescriptor, initOuterExpression, intoAnonymousClass, intoClass, intoClosure, intoConstructor, intoFunction, intoNamespace, intoNamespaceFacade, intoScript, prepareFrame, recordSyntheticAccessorIfNeeded, recordSyntheticAccessorIfNeeded, shouldAddChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodContext

public MethodContext(@NotNull
                     FunctionDescriptor contextType,
                     @NotNull
                     OwnerKind contextKind,
                     @NotNull
                     CodegenContext parentContext)

MethodContext

protected MethodContext(@NotNull
                        FunctionDescriptor contextType,
                        @NotNull
                        OwnerKind contextKind,
                        @NotNull
                        CodegenContext parentContext,
                        @Nullable
                        MutableClosure closure)
Method Detail

lookupInContext

public StackValue lookupInContext(DeclarationDescriptor d,
                                  @Nullable
                                  StackValue result,
                                  GenerationState state,
                                  boolean ignoreNoOuter)
Overrides:
lookupInContext in class CodegenContext

isStatic

public boolean isStatic()
Specified by:
isStatic in class CodegenContext

getOuterExpression

public StackValue getOuterExpression(StackValue prefix,
                                     boolean ignoreNoOuter)
Overrides:
getOuterExpression in class CodegenContext

getMethodStartLabel

@Nullable
public org.jetbrains.asm4.Label getMethodStartLabel()

setMethodStartLabel

public void setMethodStartLabel(@NotNull
                                org.jetbrains.asm4.Label methodStartLabel)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object