Package gw.lang.ir.builder
Class IRArgConverter
- java.lang.Object
-
- gw.lang.ir.builder.IRArgConverter
-
public class IRArgConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description IRArgConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IRMethodCallExpressionbox(IRExpression root)static IRCastExpressioncast(IRExpression root, IRType type)static IRExpressioncastOrConvertIfNecessary(IRType expectedType, IRExpression root)static IRTypegetBoxedType(IRType returnType)static IRTypegetBoxedType(Class returnType)static IRMethodCallExpressionunbox(IRExpression root)static CharactervalueOf(char c)
-
-
-
Method Detail
-
castOrConvertIfNecessary
public static IRExpression castOrConvertIfNecessary(IRType expectedType, IRExpression root)
-
unbox
public static IRMethodCallExpression unbox(IRExpression root)
-
box
public static IRMethodCallExpression box(IRExpression root)
-
valueOf
public static Character valueOf(char c)
-
cast
public static IRCastExpression cast(IRExpression root, IRType type)
-
-