Package gw.internal.gosu.ir.transform
Interface TopLevelTransformationContext
- All Known Implementing Classes:
GosuClassTransformationContext
,GosuFragmentTransformationContext
,TransformationContextBase
public interface TopLevelTransformationContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compile
(IStatement stmt) boolean
boolean
boolean
boolean
createSymbol
(String name, IRType type) boolean
getSourceLine
(int lineNumber) boolean
boolean
int
void
initCapturedSymbolFields
(List<IRStatement> statements) void
initializeInstanceFields
(List<IRStatement> statements) void
initTypeVarFields
(List<IRStatement> statements) boolean
boolean
boolean
isExternalSymbol
(String name) boolean
boolean
isIllegalProtectedCall
(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) boolean
boolean
isStatic()
makeAndIndexTempSymbol
(IRType type) makeAndIndexTempSymbol
(String strNameSuffix, IRType type) void
void
void
maybeAssignOuterRef
(List<IRStatement> statements) void
maybePushSupersEnclosingThisRef
(List<IRExpression> arguments) void
popScope()
void
pushEnumNameAndOrdinal
(IType type, List<IRExpression> args) void
pushScope
(boolean bInitialInstanceMethodScope) void
void
putSymbols
(List<IRSymbol> symbols) void
setIrClass
(IRClass irClass) boolean
shouldUseReflection
(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()
-