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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GosuClassTransformer
private IGosuClassInternal
private static final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionGosuClassTransformationContext
(GosuClassTransformer classTransformer, IGosuClassInternal gsClass) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getSourceLine
(int lineNumber) private IGosuClassInternal
handleTemplatePrograms
(IGosuClassInternal outermostClass) void
initCapturedSymbolFields
(List<IRStatement> statements) void
initializeInstanceFields
(List<IRStatement> statements) void
initTypeVarFields
(List<IRStatement> statements) boolean
isExternalSymbol
(String name) boolean
boolean
isIllegalProtectedCall
(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility) void
maybeAssignOuterRef
(List<IRStatement> statements) private void
void
maybePushSupersEnclosingThisRef
(List<IRExpression> arguments) void
pushEnumNameAndOrdinal
(IType type, List<IRExpression> args) boolean
shouldUseReflection
(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
-
Field Details
-
_classTransformer
-
_gsClass
-
_sourceLines
-
INCLUDE_SOURCE_COMMENTS
private static final boolean INCLUDE_SOURCE_COMMENTS- See Also:
-
-
Constructor Details
-
GosuClassTransformationContext
public GosuClassTransformationContext(GosuClassTransformer classTransformer, IGosuClassInternal gsClass)
-
-
Method Details
-
maybeAssignOuterRef
-
maybePushSupersEnclosingThisRef
-
pushEnumNameAndOrdinal
-
initCapturedSymbolFields
-
initTypeVarFields
-
initializeInstanceFields
-
addAssertionsStaticField
public void addAssertionsStaticField() -
getOuterThisParamName
-
getSourceFileRef
-
handleTemplatePrograms
-
getSourceLine
-
getOuterThisFieldName
-
getIRTypeForCurrentClass
-
isExternalSymbol
-
isFragmentEvaluation
public boolean isFragmentEvaluation() -
maybeIndexSourceCode
private void maybeIndexSourceCode() -
split
-
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:
currentlyCompilingBlock
in interfaceTopLevelTransformationContext
- Overrides:
currentlyCompilingBlock
in classTransformationContextBase
-