Interface TopLevelTransformationContext

All Known Implementing Classes:
GosuClassTransformationContext, GosuFragmentTransformationContext, TransformationContextBase

public interface TopLevelTransformationContext
  • Method Details

    • maybeAssignOuterRef

      void maybeAssignOuterRef(List<IRStatement> statements)
    • maybePushSupersEnclosingThisRef

      void maybePushSupersEnclosingThisRef(List<IRExpression> arguments)
    • pushEnumNameAndOrdinal

      void pushEnumNameAndOrdinal(IType type, List<IRExpression> args)
    • initCapturedSymbolFields

      void initCapturedSymbolFields(List<IRStatement> statements)
    • initTypeVarFields

      void initTypeVarFields(List<IRStatement> statements)
    • initializeInstanceFields

      void initializeInstanceFields(List<IRStatement> statements)
    • addAssertionsStaticField

      void addAssertionsStaticField()
    • getGosuClass

      ICompilableTypeInternal getGosuClass()
    • getIrClass

      IRClass getIrClass()
    • setIrClass

      void setIrClass(IRClass irClass)
    • shouldUseReflection

      boolean shouldUseReflection(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility)
    • isIllegalProtectedCall

      boolean isIllegalProtectedCall(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility)
    • getOuterThisFieldName

      String getOuterThisFieldName()
    • getOuterThisParamName

      String getOuterThisParamName()
    • getSuperType

      IType getSuperType()
    • getEnclosingType

      ICompilableTypeInternal getEnclosingType()
    • getSourceFileRef

      String getSourceFileRef()
    • getSourceLine

      String getSourceLine(int lineNumber)
    • isNonStaticInnerClass

      boolean isNonStaticInnerClass()
    • compilingEnhancement

      boolean compilingEnhancement()
    • compilingEnum

      boolean compilingEnum()
    • compilingBlock

      boolean compilingBlock()
    • compilingProgram

      boolean compilingProgram()
    • getIRTypeForCurrentClass

      IRType getIRTypeForCurrentClass()
    • isExternalSymbol

      boolean isExternalSymbol(String name)
    • makeAndIndexTempSymbol

      IRSymbol makeAndIndexTempSymbol(IRType type)
    • makeAndIndexTempSymbol

      IRSymbol makeAndIndexTempSymbol(String strNameSuffix, IRType type)
    • getTypeParamIndex

      IRSymbol getTypeParamIndex(TypeVariableType type)
    • getSymbol

      IRSymbol getSymbol(String symbolName)
    • hasSymbol

      boolean hasSymbol(String strSymbol)
    • pushScope

      void pushScope(boolean bInitialInstanceMethodScope)
    • popScope

      void popScope()
    • putSymbol

      void putSymbol(IRSymbol symbol)
    • putSymbols

      void putSymbols(List<IRSymbol> symbols)
    • makeTempSymbolName

      String makeTempSymbolName()
    • isBlockInvoke

      boolean isBlockInvoke()
    • isFragmentEvaluation

      boolean isFragmentEvaluation()
    • compile

      IRStatement compile(IStatement stmt)
    • createSymbol

      IRSymbol createSymbol(String name, IRType type)
    • hasSuperBeenInvoked

      boolean hasSuperBeenInvoked()
    • isStatic

      boolean isStatic()
    • markInvokingSuper

      void markInvokingSuper()
    • markSuperInvoked

      void markSuperInvoked()
    • updateSuperInvokedAfterLastExpressionCompiles

      void updateSuperInvokedAfterLastExpressionCompiles()
    • getScopes

      Stack<IRScope> getScopes()
    • getCurrentFunctionName

      String getCurrentFunctionName()
    • isCurrentFunctionStatic

      boolean isCurrentFunctionStatic()
    • getCurrentFunctionReturnType

      IType getCurrentFunctionReturnType()
    • compileInitializerAssignment

      IRStatement compileInitializerAssignment(InitializerAssignment stmt, IRExpression root)
    • currentlyCompilingBlock

      boolean currentlyCompilingBlock()
    • getCurrentFunction

      DynamicFunctionSymbol getCurrentFunction()
    • incrementLazyTypeMethodCount

      int incrementLazyTypeMethodCount()