All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
| Modifier and Type |
Method and Description |
TopLevelTransformationContext |
_cc() |
protected void |
assignStructuralTypeOwner(IExpression rootExpr,
IRExpression irMethodCall) |
protected boolean |
avoidVerifyError(IType owner,
IRType rootType,
IRelativeTypeInfo.Accessibility accessibility) |
protected IRExpression |
booleanLiteral(boolean value) |
IRExpression |
boxValue(IRType lhsType,
IRExpression root) |
IRExpression |
boxValue(IType lhsType,
IRExpression root) |
IRExpression |
boxValueToType(IType toType,
IRExpression root) |
protected IRExpression |
buildAddition(IRExpression lhs,
IRExpression rhs) |
protected IRExpression |
buildArithmetic(IRExpression lhs,
IRExpression rhs,
IRArithmeticExpression.Operation operation) |
protected IRExpression |
buildArrayLength(IRExpression root) |
protected IRExpression |
buildArrayLoad(IRExpression root,
int index,
IRType componentType) |
protected IRExpression |
buildArrayLoad(IRExpression root,
IRExpression index,
IRType componentType) |
protected IRStatement |
buildArrayStore(IRExpression lhs,
IRExpression index,
IRExpression value,
IRType componentType) |
protected IRAssignmentStatement |
buildAssignment(IRSymbol symbol,
IRExpression value) |
protected IRExpression |
buildCast(IRType castType,
IRExpression expression) |
protected IRCompositeExpression |
buildComposite(IRElement... elements) |
protected IRCompositeExpression |
buildComposite(List<IRElement> elements) |
protected IREqualityExpression |
buildEquals(IRExpression lhs,
IRExpression rhs) |
protected IRExpression |
buildFieldGet(IRType owner,
String fieldName,
IRType fieldType,
IRExpression root) |
protected IRStatement |
buildFieldSet(IRType owner,
String fieldName,
IRType fieldType,
IRExpression root,
IRExpression value) |
protected IRRelationalExpression |
buildGreaterThan(IRExpression lhs,
IRExpression rhs) |
protected IRIfStatement |
buildIf(IRExpression test,
IRStatement ifStatement) |
protected IRIfStatement |
buildIfElse(IRExpression test,
IRStatement ifStatement,
IRStatement elseStatement) |
protected IRExpression |
buildInitializedArray(IRType componentType,
List<IRExpression> values) |
protected IRMethodCallExpression |
buildMethodCall(Class ownersType,
String name,
Class returnType,
Class[] paramTypes,
IRExpression root,
List<IRExpression> args) |
protected IRMethodCallStatement |
buildMethodCall(IRExpression methodCall) |
protected IRMethodCallExpression |
buildMethodCall(IRType ownersType,
String name,
boolean isInterface,
IRType returnType,
List<IRType> paramTypes,
IRExpression root,
List<IRExpression> args) |
protected IRExpression |
buildNegation(IRExpression root) |
protected IRExpression |
buildNewExpression(Class type,
Class[] parameterTypes,
List<IRExpression> args) |
protected IRNewStatement |
buildNewExpression(IRNewExpression newExpression) |
protected IRExpression |
buildNewExpression(IRType type,
List<IRType> parameterTypes,
List<IRExpression> args) |
protected IREqualityExpression |
buildNotEquals(IRExpression lhs,
IRExpression rhs) |
protected IRExpression |
buildNullCheckTernary(IRExpression root,
IRExpression ifNull,
IRExpression ifNotNull) |
protected IRStatement |
buildReturn() |
protected IRExpression |
buildSubtraction(IRExpression lhs,
IRExpression rhs) |
protected IRExpression |
buildTernary(IRExpression test,
IRExpression trueValue,
IRExpression falseValue,
IRType resultType) |
protected IRThrowStatement |
buildThrow(IRExpression exception) |
IRExpression |
callMethod(Class cls,
String strMethod,
Class[] paramTypes,
IRExpression root,
List<IRExpression> args) |
IRExpression |
callMethod(IJavaClassInfo cls,
String strMethod,
Class[] paramTypes,
IRExpression root,
List<IRExpression> args) |
IRExpression |
callMethod(IRMethod method,
IRExpression root,
List<IRExpression> explicitArgs) |
IRExpression |
callMethod(IRMethod method,
IRExpression root,
List<IRExpression> explicitArgs,
int[] namedArgOrder) |
IRExpression |
callMethod(IRMethod method,
IRExpression root,
List<IRExpression> explicitArgs,
int[] namedArgOrder,
boolean special) |
IRExpression |
callSpecialMethod(IRType rootType,
IRMethod method,
IRExpression root,
List<IRExpression> explicitArgs) |
IRExpression |
callSpecialMethod(IRType rootType,
IRMethod method,
IRExpression root,
List<IRExpression> explicitArgs,
int[] namedArgOrder) |
IRExpression |
callSpecialMethod(IRType rootType,
IRMethod method,
IRExpression root,
List<IRExpression> implicitArgs,
List<IRExpression> explicitArgs,
int[] namedArgOrder) |
IRExpression |
callStaticMethod(Class cls,
String strMethod,
Class[] paramTypes,
List<IRExpression> args) |
protected IRExpression |
castResultingTypeIfNecessary(IRType expectedType,
IRType actualReturnType,
IRExpression root) |
protected IRExpression |
charLiteral(char c) |
protected IRExpression |
checkCast(Class cls,
IRExpression expression) |
protected IRExpression |
checkCast(IType type,
IRExpression expression) |
protected IRExpression |
checkCast(IType type,
IRExpression expression,
boolean bGetConcreteTypeForMetaType) |
protected IRExpression |
classLiteral(Class value)
Deprecated.
|
protected IRExpression |
classLiteral(IJavaClassInfo value) |
protected IRExpression |
classLiteral(IRType value) |
static void |
clearCustomRuntimes() |
IRExpression |
collectArgsIntoObjArray(List<IRExpression> args) |
protected IRExpression |
convertBoxedNullToPrimitive(IType boxedType) |
protected IRExpression |
convertNullToPrimitive(IType primitive) |
protected IRAssignmentStatement |
convertOperandToBig(IType bigType,
Class bigClass,
IType operandType,
IRExpression operand,
IRSymbol tempRet) |
protected IRAssignmentStatement |
convertOperandToPrimitive(IType primitiveType,
IType operandType,
IRExpression operand,
IRSymbol tempRet) |
protected IRAssignmentStatement |
convertOperandToRational(IType operandType,
IRExpression operand,
IRSymbol tempRet) |
protected static List<IRExpression> |
exprList(IRExpression... expressions) |
protected IRExpression |
fastStringCoercion(IRExpression expr,
IType operandType) |
protected IType |
findComparableParamType(IType type) |
static IType |
findDimensionType(IType type) |
protected IGosuVarPropertyInfo |
getActualPropertyInfo(IPropertyInfo pi) |
protected String |
getCapturedSymbolParameterName(ICapturedSymbol sym) |
IJavaClassInfo[] |
getClassInfos(IType[] parameters) |
IType |
getConcreteType(IType type) |
protected IRType[] |
getConstructorParamTypes(IType[] declaredParams,
int iTypeParams,
IType type)
Parameters are order like so:
ctor( [OuterThis,] [This,] [CapturedSymbols,] [TypeParams,] params )
|
static ICustomExpressionRuntime |
getCustomRuntime(String id,
IType enclosingClass) |
static Field |
getDeclaredField(Class cls,
String strName) |
static Field |
getDeclaredFieldImpl(Class cls,
String strName) |
static Method |
getDeclaredMethod(Class cls,
String strName,
Class... params) |
static IJavaClassMethod |
getDeclaredMethod(IJavaClassInfo cls,
String strName,
Class... params) |
IRExpression |
getDefaultConstIns(IType type) |
static IRType |
getDescriptor(Class cls) |
static IRType |
getDescriptor(IJavaClassInfo cls) |
static IRType |
getDescriptor(IType type) |
static IRType |
getDescriptor(IType type,
boolean getConcreteTypeForMetaType) |
static IDynamicFunctionSymbol |
getEnclosingDFS(ICompilableType gsClass) |
protected IRExpression |
getField_new(IRProperty irProp,
IRExpression root,
IRType expectedType) |
protected IRExpression |
getField(IRProperty field,
IRExpression root) |
ICompilableTypeInternal |
getGosuClass() |
protected IRExpression |
getInstanceField(IType owner,
String strField,
IRType fieldType,
IRelativeTypeInfo.Accessibility accessibility,
IRExpression root) |
protected static List<IRType> |
getIRTypes(Class[] classes) |
protected static List<IRType> |
getIRTypes(IJavaClassInfo[] iJavaClassInfos) |
int |
getModifiers(Symbol symbol) |
protected T |
getParsedElement() |
static IType |
getRuntimeEnclosingType(IType type) |
protected IRExpression |
getStaticField(IType owner,
String strField,
IRType fieldType,
IRelativeTypeInfo.Accessibility accessibility) |
static IType[] |
getTypes(IParameterInfo[] parameters) |
protected String |
getTypeVarParamName(IGenericTypeVariable typeVar) |
static List<IGenericTypeVariable> |
getTypeVarsForDFS(IDynamicFunctionSymbol dfs) |
protected IRExpression |
handleCustomExpressionRuntime(ICustomExpressionRuntime customRuntime,
IType expectedType) |
List<IRElement> |
handleNamedArgs(List<IRExpression> explicitArgs,
int[] namedArgOrder)
Facilitates evaluation of named args in lexical order.
|
protected IRIdentifier |
identifier(IRSymbol symbol) |
protected IRAssignmentStatement |
initLocalVar(Symbol varSym,
IRExpression initialValue) |
protected IRAssignmentStatement |
initLocalVarWithDefault(Symbol varSym) |
static Object |
initMultiArray(IType componentType,
Object instance,
int iDimension,
int[] sizes) |
protected boolean |
inStaticContext() |
static boolean |
isBigType(IType type) |
static boolean |
isBoxedIntType(IType type) |
static boolean |
isBytecodeType(IConstructorInfo ci) |
static boolean |
isBytecodeType(IType type) |
protected boolean |
isCheckedArithmeticEnabled() |
boolean |
isCompilingEnhancement() |
static boolean |
isEnhancementType(IType type) |
protected static boolean |
isEvalProgram(IGosuClassInternal gsClass) |
static boolean |
isExecuteMethod(String name) |
protected boolean |
isHandledByCustomCoercion(IType operandType) |
static boolean |
isIntType(IType from) |
protected ICompilableTypeInternal |
isMemberOnEnclosingType(IReducedSymbol symbol) |
protected boolean |
isMemberOnEnhancementOfEnclosingType(AbstractDynamicSymbol symbol) |
static boolean |
isNonBigBoxedNumberType(IType type) |
static boolean |
isNonStaticInnerClass(IType type) |
static boolean |
isNumberType(IType type) |
protected boolean |
isPrimitiveNumberType(IType type) |
boolean |
isProgram(IType type) |
boolean |
isProgramOrEnclosedInProgram(IType type) |
protected List<GosuAnnotationInfo> |
makeAnnotationInfos(List<IGosuAnnotation> gosuAnnotations,
IFeatureInfo fiAnnotated) |
protected IRExpression |
makeArrayViaTypeInfo(IType atomicType,
List<Expression> valueExpressions) |
protected IRExpression |
makeEmptyArrayViaTypeInfo(IType atomicType,
List<Expression> sizeExpressions) |
protected IRSymbol |
makeIRSymbol(Symbol varSym) |
IType |
maybeUnwrapMetaType(IType rootType) |
protected IRExpression |
newArray(IRType atomicType,
IRExpression sizeExpression) |
IRStatement |
nullCheckVar(IRSymbol symbol) |
protected IRExpression |
nullLiteral() |
protected IRExpression |
numberConvert(IRType from,
IRType to,
IRExpression root) |
protected IRExpression |
numberConvert(IType from,
IType to,
IRExpression root) |
protected IRExpression |
numericLiteral(Number value) |
protected IRExpression |
pushArrayOfDefValueExpr(IExpression[] array) |
protected IRExpression |
pushArrayOfString(String[] array) |
IRExpression |
pushArrayOfTypes(IType[] types) |
protected void |
pushCapturedSymbols(IType type,
List<IRExpression> args,
boolean ignoreExternalSymbols) |
protected IRExpression |
pushConstant(Object constant) |
protected void |
pushEnumSuperConstructorArguments(List<IRExpression> args) |
protected IRExpression |
pushExternalSymbolsMap() |
IRExpression |
pushLazyType(IType type) |
IRExpression |
pushLazyType(IType type,
IGenericTypeVariable[] tvs) |
protected IRExpression |
pushNull() |
protected IRExpression |
pushOuter() |
protected IRExpression |
pushOuter(IType outerTarget) |
protected IRExpression |
pushOuter(IType outerTarget,
IType currentOuter,
IRExpression root) |
protected IRExpression |
pushParamTypes(IParameterInfo[] parameters) |
IRExpression |
pushRuntimeTypeOfTypeVar(IType type) |
protected IRExpression |
pushString(IExpression expr) |
protected IRExpression |
pushThis() |
protected IRExpression |
pushThisOrOuter(IType currentType) |
IRExpression |
pushType(IType type) |
IRExpression |
pushType(IType type,
boolean bKeepLiteralType) |
protected int |
pushTypeParametersForConstructor(IExpression expr,
IType type,
List<IRExpression> args,
boolean bSuperCall) |
static boolean |
requiresExternalSymbolCapture(IType type) |
static boolean |
requiresImplicitEnhancementArg(IGosuMethodInfo mi) |
static boolean |
requiresImplicitEnhancementArg(ReducedDynamicFunctionSymbol dfs) |
protected void |
setCc(TopLevelTransformationContext cc) |
protected IRStatement |
setField(IRProperty field,
IRExpression root,
IRExpression value) |
protected IRStatement |
setField(IType owner,
String strField,
IRType fieldType,
IRelativeTypeInfo.Accessibility accessibility,
IRExpression root,
IRExpression value) |
protected IRStatement |
setInstanceField(IType owner,
String strField,
IRType fieldType,
IRelativeTypeInfo.Accessibility accessibility,
IRExpression root,
IRExpression value) |
protected IRStatement |
setStaticField(IType owner,
String strField,
IRType fieldType,
IRelativeTypeInfo.Accessibility accessibility,
IRExpression value) |
protected IRExpression |
stringLiteral(String value) |
IRExpression |
unboxValueFromType(IType boxedType,
IRExpression root) |
IRExpression |
unboxValueToType(IRType lhsType,
IRExpression expression) |
IRExpression |
unboxValueToType(IType lhsType,
IRExpression expression) |
static Character |
valueOf(char c) |