public abstract class TransformationContextBase extends Object implements TopLevelTransformationContext
| Modifier | Constructor and Description |
|---|---|
protected |
TransformationContextBase(ICompilableTypeInternal compilingType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAssertionsStaticField, getIRTypeForCurrentClass, getOuterThisFieldName, getOuterThisParamName, getSourceFileRef, getSourceLine, initCapturedSymbolFields, initializeInstanceFields, initTypeVarFields, isExternalSymbol, isFragmentEvaluation, isIllegalProtectedCall, maybeAssignOuterRef, maybePushSupersEnclosingThisRef, pushEnumNameAndOrdinal, shouldUseReflectionprotected TransformationContextBase(ICompilableTypeInternal compilingType)
public void initBodyContext(boolean isStatic)
public void initBodyContext(boolean isStatic,
DynamicFunctionSymbol dfs)
public IRClass getIrClass()
getIrClass in interface TopLevelTransformationContextpublic void setIrClass(IRClass irClass)
setIrClass in interface TopLevelTransformationContextpublic IRStatement compile(IStatement stmt)
compile in interface TopLevelTransformationContextpublic IRStatement compileInitializerAssignment(InitializerAssignment stmt, IRExpression root)
compileInitializerAssignment in interface TopLevelTransformationContextpublic boolean currentlyCompilingBlock()
currentlyCompilingBlock in interface TopLevelTransformationContextpublic ICompilableTypeInternal getGosuClass()
getGosuClass in interface TopLevelTransformationContextpublic IType getSuperType()
getSuperType in interface TopLevelTransformationContextpublic ICompilableTypeInternal getEnclosingType()
getEnclosingType in interface TopLevelTransformationContextpublic boolean isNonStaticInnerClass()
isNonStaticInnerClass in interface TopLevelTransformationContextpublic boolean compilingEnhancement()
compilingEnhancement in interface TopLevelTransformationContextpublic boolean compilingEnum()
compilingEnum in interface TopLevelTransformationContextpublic boolean compilingBlock()
compilingBlock in interface TopLevelTransformationContextpublic boolean compilingProgram()
compilingProgram in interface TopLevelTransformationContextpublic IRSymbol makeAndIndexTempSymbol(IRType type)
makeAndIndexTempSymbol in interface TopLevelTransformationContextpublic IRSymbol makeAndIndexTempSymbol(String strNameSuffix, IRType type)
makeAndIndexTempSymbol in interface TopLevelTransformationContextpublic IRSymbol getTypeParamIndex(TypeVariableType type)
getTypeParamIndex in interface TopLevelTransformationContextpublic IRSymbol getSymbol(String symbolName)
getSymbol in interface TopLevelTransformationContextpublic boolean hasSymbol(String strSymbol)
hasSymbol in interface TopLevelTransformationContextpublic void pushScope(boolean bInitialInstanceMethodScope)
pushScope in interface TopLevelTransformationContextpublic void popScope()
popScope in interface TopLevelTransformationContextpublic void putSymbol(IRSymbol symbol)
putSymbol in interface TopLevelTransformationContextpublic void putSymbols(List<IRSymbol> symbols)
putSymbols in interface TopLevelTransformationContextpublic String makeTempSymbolName()
makeTempSymbolName in interface TopLevelTransformationContextpublic boolean isBlockInvoke()
isBlockInvoke in interface TopLevelTransformationContextpublic IRSymbol createSymbol(String name, IRType type)
createSymbol in interface TopLevelTransformationContextpublic boolean hasSuperBeenInvoked()
hasSuperBeenInvoked in interface TopLevelTransformationContextpublic boolean isStatic()
isStatic in interface TopLevelTransformationContextpublic void markSuperInvoked()
markSuperInvoked in interface TopLevelTransformationContextpublic void markInvokingSuper()
markInvokingSuper in interface TopLevelTransformationContextpublic void updateSuperInvokedAfterLastExpressionCompiles()
updateSuperInvokedAfterLastExpressionCompiles in interface TopLevelTransformationContextpublic Stack<IRScope> getScopes()
getScopes in interface TopLevelTransformationContextpublic String getCurrentFunctionName()
getCurrentFunctionName in interface TopLevelTransformationContextpublic DynamicFunctionSymbol getCurrentFunction()
getCurrentFunction in interface TopLevelTransformationContextpublic int incrementLazyTypeMethodCount()
incrementLazyTypeMethodCount in interface TopLevelTransformationContextpublic boolean isCurrentFunctionStatic()
isCurrentFunctionStatic in interface TopLevelTransformationContextpublic IType getCurrentFunctionReturnType()
getCurrentFunctionReturnType in interface TopLevelTransformationContextCopyright © 2022. All rights reserved.