public class GosuClassTransformationContext extends TransformationContextBase
| Constructor and Description |
|---|
GosuClassTransformationContext(GosuClassTransformer classTransformer,
IGosuClassInternal gsClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssertionsStaticField() |
boolean |
currentlyCompilingBlock() |
IRType |
getIRTypeForCurrentClass() |
String |
getOuterThisFieldName() |
String |
getOuterThisParamName() |
String |
getSourceFileRef() |
String |
getSourceLine(int lineNumber) |
void |
initCapturedSymbolFields(List<IRStatement> statements) |
void |
initializeInstanceFields(List<IRStatement> statements) |
void |
initTypeVarFields(List<IRStatement> statements) |
boolean |
isExternalSymbol(String name) |
boolean |
isFragmentEvaluation() |
boolean |
isIllegalProtectedCall(IType declaringClass,
IRType root,
IRelativeTypeInfo.Accessibility accessibility) |
void |
maybeAssignOuterRef(List<IRStatement> statements) |
void |
maybePushSupersEnclosingThisRef(List<IRExpression> arguments) |
void |
pushEnumNameAndOrdinal(IType type,
List<IRExpression> args) |
boolean |
shouldUseReflection(IType declaringClass,
IRType root,
IRelativeTypeInfo.Accessibility accessibility) |
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, updateSuperInvokedAfterLastExpressionCompilespublic GosuClassTransformationContext(GosuClassTransformer classTransformer, IGosuClassInternal gsClass)
public void maybeAssignOuterRef(List<IRStatement> statements)
public void maybePushSupersEnclosingThisRef(List<IRExpression> arguments)
public void pushEnumNameAndOrdinal(IType type, List<IRExpression> args)
public void initCapturedSymbolFields(List<IRStatement> statements)
public void initTypeVarFields(List<IRStatement> statements)
public void initializeInstanceFields(List<IRStatement> statements)
public void addAssertionsStaticField()
public String getOuterThisParamName()
public String getSourceFileRef()
public String getSourceLine(int lineNumber)
public String getOuterThisFieldName()
public IRType getIRTypeForCurrentClass()
public boolean isExternalSymbol(String name)
public boolean isFragmentEvaluation()
public boolean shouldUseReflection(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility)
public boolean isIllegalProtectedCall(IType declaringClass, IRType root, IRelativeTypeInfo.Accessibility accessibility)
public boolean currentlyCompilingBlock()
currentlyCompilingBlock in interface TopLevelTransformationContextcurrentlyCompilingBlock in class TransformationContextBaseCopyright © 2020. All rights reserved.