public class GosuClassTransformer extends AbstractElementTransformer<ClassStatement>
| Modifier and Type | Field and Description |
|---|---|
static String |
ENHANCED_TYPE_FIELD |
static String |
ENUM_VALUES_FIELD |
CAPTURED_VAR_PREFIX, CTX_SYMBOL, CTX_SYMBOL_SUFFIX, CUSTOM_RUNTIMES, EMPTY_CLASS_ARRAY, ENHANCEMENT_THIS_REF, ENHANCEMENT_TYPE_PARAM_PREFIX, ENUM_PARAM_PREFIX, OBJECT_TYPE, OUTER_ACCESS, TYPE_PARAM_PREFIX| Modifier and Type | Method and Description |
|---|---|
static IRClass |
compile(IGosuClassInternal gsClass) |
IGosuEnhancementInternal |
getGosuEnhancement() |
String |
getOuterThisFieldName() |
void |
initCapturedSymbolFields(List<IRStatement> statements) |
void |
initializeInstanceFields(List<IRStatement> statements) |
void |
initializeStaticFields(List<IRStatement> statements) |
void |
initTypeVarFields(List<IRStatement> statements) |
boolean |
isBlockInvoke(DynamicFunctionSymbol dfs) |
boolean |
isNonStaticInnerClass() |
void |
maybeAssignOuterRef(List<IRStatement> statements) |
void |
maybePushSupersEnclosingThisRef(List<IRExpression> arguments) |
void |
pushEnumNameAndOrdinal(IType type,
List<IRExpression> args) |
void |
setHasAsserts() |
String |
toString() |
_cc, assignStructuralTypeOwner, avoidVerifyError, booleanLiteral, boxValue, boxValue, boxValueToType, buildAddition, buildArithmetic, buildArrayLength, buildArrayLoad, buildArrayLoad, buildArrayStore, buildAssignment, buildCast, buildComposite, buildComposite, buildEquals, buildFieldGet, buildFieldSet, buildGreaterThan, buildIf, buildIfElse, buildInitializedArray, buildMethodCall, buildMethodCall, buildMethodCall, buildNegation, buildNewExpression, buildNewExpression, buildNewExpression, buildNotEquals, buildNullCheckTernary, buildReturn, buildSubtraction, buildTernary, buildThrow, callMethod, callMethod, callMethod, callMethod, callMethod, callSpecialMethod, callSpecialMethod, callSpecialMethod, callStaticMethod, castResultingTypeIfNecessary, charLiteral, checkCast, checkCast, checkCast, classLiteral, classLiteral, classLiteral, clearCustomRuntimes, collectArgsIntoObjArray, convertBoxedNullToPrimitive, convertNullToPrimitive, convertOperandToBig, convertOperandToPrimitive, convertOperandToRational, exprList, fastStringCoercion, findComparableParamType, findDimensionType, getActualPropertyInfo, getCapturedSymbolParameterName, getClassInfos, getConcreteType, getConstructorParamTypes, getCustomRuntime, getDeclaredField, getDeclaredFieldImpl, getDeclaredMethod, getDeclaredMethod, getDefaultConstIns, getDescriptor, getDescriptor, getDescriptor, getDescriptor, getEnclosingDFS, getField_new, getField, getGosuClass, getInstanceField, getIRTypes, getIRTypes, getModifiers, getParsedElement, getRuntimeEnclosingType, getStaticField, getTypes, getTypeVarParamName, getTypeVarsForDFS, handleCustomExpressionRuntime, handleNamedArgs, identifier, initLocalVar, initLocalVarWithDefault, initMultiArray, inStaticContext, isBigType, isBoxedIntType, isBytecodeType, isBytecodeType, isCheckedArithmeticEnabled, isCompilingEnhancement, isEnhancementType, isEvalProgram, isHandledByCustomCoercion, isIntType, isMemberOnEnclosingType, isMemberOnEnhancementOfEnclosingType, isNonBigBoxedNumberType, isNonStaticInnerClass, isNumberType, isPrimitiveNumberType, isProgram, isProgramOrEnclosedInProgram, makeAnnotationInfos, makeArrayViaTypeInfo, makeEmptyArrayViaTypeInfo, makeIRSymbol, maybeUnwrapMetaType, newArray, nullCheckVar, nullLiteral, numberConvert, numberConvert, numericLiteral, pushArrayOfDefValueExpr, pushArrayOfString, pushArrayOfTypes, pushCapturedSymbols, pushConstant, pushEnumSuperConstructorArguments, pushExternalSymbolsMap, pushLazyType, pushLazyType, pushNull, pushOuter, pushOuter, pushOuter, pushParamTypes, pushRuntimeTypeOfTypeVar, pushString, pushThis, pushThisOrOuter, pushType, pushType, pushTypeParametersForConstructor, requiresExternalSymbolCapture, requiresImplicitEnhancementArg, requiresImplicitEnhancementArg, setCc, setField, setField, setInstanceField, setStaticField, stringLiteral, unboxValueFromType, unboxValueToType, unboxValueToType, valueOfpublic static final String ENUM_VALUES_FIELD
public static final String ENHANCED_TYPE_FIELD
public static IRClass compile(IGosuClassInternal gsClass)
public boolean isNonStaticInnerClass()
public String getOuterThisFieldName()
public void maybeAssignOuterRef(List<IRStatement> statements)
public void maybePushSupersEnclosingThisRef(List<IRExpression> arguments)
public void initializeInstanceFields(List<IRStatement> statements)
public void initTypeVarFields(List<IRStatement> statements)
public void initCapturedSymbolFields(List<IRStatement> statements)
public void initializeStaticFields(List<IRStatement> statements)
public IGosuEnhancementInternal getGosuEnhancement()
public void pushEnumNameAndOrdinal(IType type, List<IRExpression> args)
public void setHasAsserts()
public boolean isBlockInvoke(DynamicFunctionSymbol dfs)
Copyright © 2016. All rights reserved.