Package gw.internal.gosu.ir.transform
Interface TopLevelTransformationContext
- All Known Implementing Classes:
GosuClassTransformationContext,GosuFragmentTransformationContext,TransformationContextBase
public interface TopLevelTransformationContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompile(IStatement stmt) booleanbooleanbooleanbooleancreateSymbol(String name, IRType type) booleangetSourceLine(int lineNumber) booleanbooleanintvoidinitCapturedSymbolFields(List<IRStatement> statements) voidinitializeInstanceFields(List<IRStatement> statements) voidinitTypeVarFields(List<IRStatement> statements) booleanbooleanbooleanisExternalSymbol(String name) booleanbooleanisIllegalProtectedCall(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) booleanbooleanisStatic()makeAndIndexTempSymbol(IRType type) makeAndIndexTempSymbol(String strNameSuffix, IRType type) voidvoidvoidmaybeAssignOuterRef(List<IRStatement> statements) voidmaybePushSupersEnclosingThisRef(List<IRExpression> arguments) voidpopScope()voidpushEnumNameAndOrdinal(IType type, List<IRExpression> args) voidpushScope(boolean bInitialInstanceMethodScope) voidvoidputSymbols(List<IRSymbol> symbols) voidsetIrClass(IRClass irClass) booleanshouldUseReflection(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) void
-
Method Details
-
maybeAssignOuterRef
-
maybePushSupersEnclosingThisRef
-
pushEnumNameAndOrdinal
-
initCapturedSymbolFields
-
initTypeVarFields
-
initializeInstanceFields
-
addAssertionsStaticField
void addAssertionsStaticField() -
getGosuClass
ICompilableTypeInternal getGosuClass() -
getIrClass
IRClass getIrClass() -
setIrClass
-
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
-
isNonStaticInnerClass
boolean isNonStaticInnerClass() -
compilingEnhancement
boolean compilingEnhancement() -
compilingEnum
boolean compilingEnum() -
compilingBlock
boolean compilingBlock() -
compilingProgram
boolean compilingProgram() -
getIRTypeForCurrentClass
IRType getIRTypeForCurrentClass() -
isExternalSymbol
-
makeAndIndexTempSymbol
-
makeAndIndexTempSymbol
-
getTypeParamIndex
-
getSymbol
-
hasSymbol
-
pushScope
void pushScope(boolean bInitialInstanceMethodScope) -
popScope
void popScope() -
putSymbol
-
putSymbols
-
makeTempSymbolName
String makeTempSymbolName() -
isBlockInvoke
boolean isBlockInvoke() -
isFragmentEvaluation
boolean isFragmentEvaluation() -
compile
-
createSymbol
-
hasSuperBeenInvoked
boolean hasSuperBeenInvoked() -
isStatic
boolean isStatic() -
markInvokingSuper
void markInvokingSuper() -
markSuperInvoked
void markSuperInvoked() -
updateSuperInvokedAfterLastExpressionCompiles
void updateSuperInvokedAfterLastExpressionCompiles() -
getScopes
-
getCurrentFunctionName
String getCurrentFunctionName() -
isCurrentFunctionStatic
boolean isCurrentFunctionStatic() -
getCurrentFunctionReturnType
IType getCurrentFunctionReturnType() -
compileInitializerAssignment
-
currentlyCompilingBlock
boolean currentlyCompilingBlock() -
getCurrentFunction
DynamicFunctionSymbol getCurrentFunction() -
incrementLazyTypeMethodCount
int incrementLazyTypeMethodCount()
-