Package gw.internal.gosu.ir.transform
Class FunctionBodyTransformationContext
- java.lang.Object
-
- gw.internal.gosu.ir.transform.FunctionBodyTransformationContext
-
- Direct Known Subclasses:
DFSFunctionBodyTransformationContext
public class FunctionBodyTransformationContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected TopLevelTransformationContext_contextstatic StringTEMP_VAR_PREFIX
-
Constructor Summary
Constructors Constructor Description FunctionBodyTransformationContext(TopLevelTransformationContext context, boolean isStatic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRSymbolcreateSymbol(String name, IRType type)DynamicFunctionSymbolgetCurrentDFS()Stack<IRScope>getScopes()IRSymbolgetSymbol(String symbolName)IRSymbolgetTypeParamIndex(TypeVariableType type)booleanhasSuperBeenInvoked()booleanhasSymbol(String symbolName)booleanisBlockInvoke()booleanisStatic()IRSymbolmakeAndIndexTempSymbol(IRType type)IRSymbolmakeAndIndexTempSymbol(String strNameSuffix, IRType type)StringmakeTempSymbolName()voidmarkInvokingSuper()voidmarkSuperInvoked()voidpopScope()voidpushScope(boolean bInitialInstanceMethodScope)voidputSymbol(IRSymbol symbol)voidputSymbols(List<IRSymbol> symbols)voidupdateSuperInvokedAfterLastExpressionCompiles()
-
-
-
Field Detail
-
TEMP_VAR_PREFIX
public static final String TEMP_VAR_PREFIX
- See Also:
- Constant Field Values
-
_context
protected TopLevelTransformationContext _context
-
-
Constructor Detail
-
FunctionBodyTransformationContext
public FunctionBodyTransformationContext(TopLevelTransformationContext context, boolean isStatic)
-
-
Method Detail
-
updateSuperInvokedAfterLastExpressionCompiles
public void updateSuperInvokedAfterLastExpressionCompiles()
-
hasSuperBeenInvoked
public boolean hasSuperBeenInvoked()
-
markInvokingSuper
public void markInvokingSuper()
-
markSuperInvoked
public void markSuperInvoked()
-
makeTempSymbolName
public String makeTempSymbolName()
-
pushScope
public void pushScope(boolean bInitialInstanceMethodScope)
-
popScope
public void popScope()
-
getTypeParamIndex
public IRSymbol getTypeParamIndex(TypeVariableType type)
-
hasSymbol
public boolean hasSymbol(String symbolName)
-
putSymbol
public void putSymbol(IRSymbol symbol)
-
isBlockInvoke
public boolean isBlockInvoke()
-
getCurrentDFS
public DynamicFunctionSymbol getCurrentDFS()
-
isStatic
public boolean isStatic()
-
-