Package gw.lang.ir.builder
Class IRArgConverter
- java.lang.Object
-
- gw.lang.ir.builder.IRArgConverter
-
public class IRArgConverter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IRArgConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IRMethodCallExpressionbox(IRExpression root)private static IRMethodCallExpressioncall(IRExpression root, java.lang.Class rootClass, java.lang.String methodName)private static IRMethodCallExpressioncall(IRExpression root, java.lang.Class rootClass, java.lang.String methodName, java.lang.Class[] argTypes, IRExpression... args)static IRCastExpressioncast(IRExpression root, IRType type)static IRExpressioncastOrConvertIfNecessary(IRType expectedType, IRExpression root)static IRTypegetBoxedType(IRType returnType)static IRTypegetBoxedType(java.lang.Class returnType)private static IRTypegetIRType(java.lang.Class cls)private static java.util.List<IRType>getIRTypes(java.lang.Class[] classes)static IRMethodCallExpressionunbox(IRExpression root)static java.lang.CharactervalueOf(char c)
-
-
-
Method Detail
-
castOrConvertIfNecessary
public static IRExpression castOrConvertIfNecessary(IRType expectedType, IRExpression root)
-
getBoxedType
public static IRType getBoxedType(java.lang.Class returnType)
-
unbox
public static IRMethodCallExpression unbox(IRExpression root)
-
box
public static IRMethodCallExpression box(IRExpression root)
-
valueOf
public static java.lang.Character valueOf(char c)
-
cast
public static IRCastExpression cast(IRExpression root, IRType type)
-
call
private static IRMethodCallExpression call(IRExpression root, java.lang.Class rootClass, java.lang.String methodName)
-
call
private static IRMethodCallExpression call(IRExpression root, java.lang.Class rootClass, java.lang.String methodName, java.lang.Class[] argTypes, IRExpression... args)
-
getIRType
private static IRType getIRType(java.lang.Class cls)
-
getIRTypes
private static java.util.List<IRType> getIRTypes(java.lang.Class[] classes)
-
-