Package gw.internal.gosu.ir.transform
Class TransformationContextBase
java.lang.Object
gw.internal.gosu.ir.transform.TransformationContextBase
- All Implemented Interfaces:
TopLevelTransformationContext
- Direct Known Subclasses:
GosuClassTransformationContext,GosuFragmentTransformationContext
public abstract class TransformationContextBase
extends Object
implements TopLevelTransformationContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformationContextBase(ICompilableTypeInternal compilingType) -
Method Summary
Modifier and TypeMethodDescriptioncompile(IStatement stmt) booleanbooleanbooleanbooleancreateSymbol(String name, IRType type) booleanbooleanbooleanintvoidinitBodyContext(boolean isStatic) voidinitBodyContext(boolean isStatic, DynamicFunctionSymbol dfs) booleanbooleanbooleanbooleanisStatic()makeAndIndexTempSymbol(IRType type) makeAndIndexTempSymbol(String strNameSuffix, IRType type) voidvoidvoidpopScope()voidpushScope(boolean bInitialInstanceMethodScope) voidvoidputSymbols(List<IRSymbol> symbols) voidsetIrClass(IRClass irClass) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.internal.gosu.ir.transform.TopLevelTransformationContext
addAssertionsStaticField, getIRTypeForCurrentClass, getOuterThisFieldName, getOuterThisParamName, getSourceFileRef, getSourceLine, initCapturedSymbolFields, initializeInstanceFields, initTypeVarFields, isExternalSymbol, isFragmentEvaluation, isIllegalProtectedCall, maybeAssignOuterRef, maybePushSupersEnclosingThisRef, pushEnumNameAndOrdinal, shouldUseReflection
-
Field Details
-
_bodyContext
-
_compilingType
-
_irClass
-
_iLazyMethodCount
private int _iLazyMethodCount
-
-
Constructor Details
-
TransformationContextBase
-
-
Method Details
-
initBodyContext
public void initBodyContext(boolean isStatic) -
initBodyContext
-
getIrClass
- Specified by:
getIrClassin interfaceTopLevelTransformationContext
-
setIrClass
- Specified by:
setIrClassin interfaceTopLevelTransformationContext
-
compile
- Specified by:
compilein interfaceTopLevelTransformationContext
-
compileInitializerAssignment
- Specified by:
compileInitializerAssignmentin interfaceTopLevelTransformationContext
-
currentlyCompilingBlock
public boolean currentlyCompilingBlock()- Specified by:
currentlyCompilingBlockin interfaceTopLevelTransformationContext
-
getGosuClass
- Specified by:
getGosuClassin interfaceTopLevelTransformationContext
-
getSuperType
- Specified by:
getSuperTypein interfaceTopLevelTransformationContext
-
getEnclosingType
- Specified by:
getEnclosingTypein interfaceTopLevelTransformationContext
-
isNonStaticInnerClass
public boolean isNonStaticInnerClass()- Specified by:
isNonStaticInnerClassin interfaceTopLevelTransformationContext
-
compilingEnhancement
public boolean compilingEnhancement()- Specified by:
compilingEnhancementin interfaceTopLevelTransformationContext
-
compilingEnum
public boolean compilingEnum()- Specified by:
compilingEnumin interfaceTopLevelTransformationContext
-
compilingBlock
public boolean compilingBlock()- Specified by:
compilingBlockin interfaceTopLevelTransformationContext
-
compilingProgram
public boolean compilingProgram()- Specified by:
compilingProgramin interfaceTopLevelTransformationContext
-
makeAndIndexTempSymbol
- Specified by:
makeAndIndexTempSymbolin interfaceTopLevelTransformationContext
-
makeAndIndexTempSymbol
- Specified by:
makeAndIndexTempSymbolin interfaceTopLevelTransformationContext
-
getTypeParamIndex
- Specified by:
getTypeParamIndexin interfaceTopLevelTransformationContext
-
getSymbol
- Specified by:
getSymbolin interfaceTopLevelTransformationContext
-
hasSymbol
- Specified by:
hasSymbolin interfaceTopLevelTransformationContext
-
pushScope
public void pushScope(boolean bInitialInstanceMethodScope) - Specified by:
pushScopein interfaceTopLevelTransformationContext
-
popScope
public void popScope()- Specified by:
popScopein interfaceTopLevelTransformationContext
-
putSymbol
- Specified by:
putSymbolin interfaceTopLevelTransformationContext
-
putSymbols
- Specified by:
putSymbolsin interfaceTopLevelTransformationContext
-
makeTempSymbolName
- Specified by:
makeTempSymbolNamein interfaceTopLevelTransformationContext
-
isBlockInvoke
public boolean isBlockInvoke()- Specified by:
isBlockInvokein interfaceTopLevelTransformationContext
-
createSymbol
- Specified by:
createSymbolin interfaceTopLevelTransformationContext
-
hasSuperBeenInvoked
public boolean hasSuperBeenInvoked()- Specified by:
hasSuperBeenInvokedin interfaceTopLevelTransformationContext
-
isStatic
public boolean isStatic()- Specified by:
isStaticin interfaceTopLevelTransformationContext
-
markSuperInvoked
public void markSuperInvoked()- Specified by:
markSuperInvokedin interfaceTopLevelTransformationContext
-
markInvokingSuper
public void markInvokingSuper()- Specified by:
markInvokingSuperin interfaceTopLevelTransformationContext
-
updateSuperInvokedAfterLastExpressionCompiles
public void updateSuperInvokedAfterLastExpressionCompiles()- Specified by:
updateSuperInvokedAfterLastExpressionCompilesin interfaceTopLevelTransformationContext
-
getScopes
- Specified by:
getScopesin interfaceTopLevelTransformationContext
-
getCurrentFunctionName
- Specified by:
getCurrentFunctionNamein interfaceTopLevelTransformationContext
-
getCurrentFunction
- Specified by:
getCurrentFunctionin interfaceTopLevelTransformationContext
-
incrementLazyTypeMethodCount
public int incrementLazyTypeMethodCount()- Specified by:
incrementLazyTypeMethodCountin interfaceTopLevelTransformationContext
-
isCurrentFunctionStatic
public boolean isCurrentFunctionStatic()- Specified by:
isCurrentFunctionStaticin interfaceTopLevelTransformationContext
-
getCurrentFunctionReturnType
- Specified by:
getCurrentFunctionReturnTypein interfaceTopLevelTransformationContext
-