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, outerExpression, STATIC
 
Constructor Summary
MethodContext(FunctionDescriptor contextType, OwnerKind contextKind, CodegenContext parentContext)
           
 
Method Summary
 StackValue getOuterExpression(StackValue prefix, boolean ignoreNoOuter)
           
 boolean isStatic()
           
 StackValue lookupInContext(DeclarationDescriptor d, StackValue result, GenerationState state, boolean ignoreNoOuter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.jet.codegen.context.CodegenContext
accessibleFunctionDescriptor, accessiblePropertyDescriptor, findChildContext, findParentContextWithDescriptor, getAccessor, getAccessors, getCallableDescriptorWithReceiver, getClassOrNamespaceDescriptor, getContextDescriptor, getContextKind, getEnclosingClass, getParentContext, getReceiverExpression, getThisDescriptor, hasThisDescriptor, initOuterExpression, intoAnonymousClass, intoClass, intoClosure, intoConstructor, intoFunction, intoNamespace, intoNamespacePart, 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)
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

toString

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