public class GosuFragmentTransformationContext extends TransformationContextBase
| Constructor and Description |
|---|
GosuFragmentTransformationContext(GosuFragment fragment,
IRType compilingType,
String sourceFile,
boolean instrument) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssertionsStaticField() |
IType |
getCurrentFunctionReturnType() |
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() |
void |
maybeAssignOuterRef(List<IRStatement> statements) |
void |
maybePushSupersEnclosingThisRef(List<IRExpression> arguments) |
void |
pushEnumNameAndOrdinal(IType type,
List<IRExpression> args) |
boolean |
shouldUseReflection(IType declaringClass,
IRelativeTypeInfo.Accessibility accessibility) |
compile, compileInitializerAssignment, compilingBlock, compilingEnhancement, compilingEnum, compilingProgram, createSymbol, currentlyCompilingBlock, getCurrentFunction, getCurrentFunctionName, 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 GosuFragmentTransformationContext(GosuFragment fragment, IRType compilingType, String sourceFile, boolean instrument)
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 String getOuterThisFieldName()
public String getOuterThisParamName()
public String getSourceFileRef()
public String getSourceLine(int lineNumber)
public IRType getIRTypeForCurrentClass()
public boolean shouldUseReflection(IType declaringClass, IRelativeTypeInfo.Accessibility accessibility)
public boolean isExternalSymbol(String name)
public boolean isFragmentEvaluation()
public void addAssertionsStaticField()
public IType getCurrentFunctionReturnType()
getCurrentFunctionReturnType in interface TopLevelTransformationContextgetCurrentFunctionReturnType in class TransformationContextBaseCopyright © 2015. All rights reserved.