Package gw.internal.gosu.ir.transform
Class GosuClassTransformationContext
java.lang.Object
gw.internal.gosu.ir.transform.TransformationContextBase
gw.internal.gosu.ir.transform.GosuClassTransformationContext
- All Implemented Interfaces:
TopLevelTransformationContext
-
Constructor Summary
ConstructorsConstructorDescriptionGosuClassTransformationContext(GosuClassTransformer classTransformer, IGosuClassInternal gsClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetSourceLine(int lineNumber) voidinitCapturedSymbolFields(List<IRStatement> statements) voidinitializeInstanceFields(List<IRStatement> statements) voidinitTypeVarFields(List<IRStatement> statements) booleanisExternalSymbol(String name) booleanbooleanisIllegalProtectedCall(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) voidmaybeAssignOuterRef(List<IRStatement> statements) voidmaybePushSupersEnclosingThisRef(List<IRExpression> arguments) voidpushEnumNameAndOrdinal(IType type, List<IRExpression> args) booleanshouldUseReflection(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) Methods inherited from class gw.internal.gosu.ir.transform.TransformationContextBase
compile, compileInitializerAssignment, compilingBlock, compilingEnhancement, compilingEnum, compilingProgram, createSymbol, getCurrentFunction, getCurrentFunctionName, getCurrentFunctionReturnType, getEnclosingType, getGosuClass, getIrClass, getScopes, getSuperType, getSymbol, getTypeParamIndex, hasSuperBeenInvoked, hasSymbol, incrementLazyTypeMethodCount, initBodyContext, initBodyContext, isBlockInvoke, isCurrentFunctionStatic, isNonStaticInnerClass, isStatic, makeAndIndexTempSymbol, makeAndIndexTempSymbol, makeTempSymbolName, markInvokingSuper, markSuperInvoked, popScope, pushScope, putSymbol, putSymbols, setIrClass, updateSuperInvokedAfterLastExpressionCompiles
-
Constructor Details
-
GosuClassTransformationContext
public GosuClassTransformationContext(GosuClassTransformer classTransformer, IGosuClassInternal gsClass)
-
-
Method Details
-
maybeAssignOuterRef
-
maybePushSupersEnclosingThisRef
-
pushEnumNameAndOrdinal
-
initCapturedSymbolFields
-
initTypeVarFields
-
initializeInstanceFields
-
addAssertionsStaticField
public void addAssertionsStaticField() -
getOuterThisParamName
-
getSourceFileRef
-
getSourceLine
-
getOuterThisFieldName
-
getIRTypeForCurrentClass
-
isExternalSymbol
-
isFragmentEvaluation
public boolean isFragmentEvaluation() -
shouldUseReflection
public boolean shouldUseReflection(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) -
isIllegalProtectedCall
public boolean isIllegalProtectedCall(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) -
currentlyCompilingBlock
public boolean currentlyCompilingBlock()- Specified by:
currentlyCompilingBlockin interfaceTopLevelTransformationContext- Overrides:
currentlyCompilingBlockin classTransformationContextBase
-