Package org.jboss.classfilewriter.util
Class Boxing
- java.lang.Object
-
- org.jboss.classfilewriter.util.Boxing
-
public class Boxing extends Object
This class is responsible for generating bytecode fragments to box/unbox whatever happens to be on the top of the stack. It is the calling codes responsibility to make sure that the correct type is on the stack- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description Boxing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidboxBoolean(CodeAttribute bc)static voidboxByte(CodeAttribute bc)static voidboxChar(CodeAttribute bc)static voidboxDouble(CodeAttribute bc)static voidboxFloat(CodeAttribute bc)static voidboxIfNessesary(CodeAttribute ca, String desc)static voidboxInt(CodeAttribute bc)static voidboxLong(CodeAttribute bc)static voidboxShort(CodeAttribute bc)static CodeAttributeunbox(CodeAttribute ca, String desc)static CodeAttributeunboxBoolean(CodeAttribute bc)static CodeAttributeunboxByte(CodeAttribute bc)static CodeAttributeunboxChar(CodeAttribute bc)static CodeAttributeunboxDouble(CodeAttribute bc)static CodeAttributeunboxFloat(CodeAttribute bc)static CodeAttributeunboxInt(CodeAttribute bc)static CodeAttributeunboxLong(CodeAttribute bc)static CodeAttributeunboxShort(CodeAttribute bc)
-
-
-
Method Detail
-
boxIfNessesary
public static void boxIfNessesary(CodeAttribute ca, String desc)
-
unbox
public static CodeAttribute unbox(CodeAttribute ca, String desc)
-
boxInt
public static void boxInt(CodeAttribute bc)
-
boxLong
public static void boxLong(CodeAttribute bc)
-
boxShort
public static void boxShort(CodeAttribute bc)
-
boxByte
public static void boxByte(CodeAttribute bc)
-
boxFloat
public static void boxFloat(CodeAttribute bc)
-
boxDouble
public static void boxDouble(CodeAttribute bc)
-
boxChar
public static void boxChar(CodeAttribute bc)
-
boxBoolean
public static void boxBoolean(CodeAttribute bc)
-
unboxInt
public static CodeAttribute unboxInt(CodeAttribute bc)
-
unboxLong
public static CodeAttribute unboxLong(CodeAttribute bc)
-
unboxShort
public static CodeAttribute unboxShort(CodeAttribute bc)
-
unboxByte
public static CodeAttribute unboxByte(CodeAttribute bc)
-
unboxFloat
public static CodeAttribute unboxFloat(CodeAttribute bc)
-
unboxDouble
public static CodeAttribute unboxDouble(CodeAttribute bc)
-
unboxChar
public static CodeAttribute unboxChar(CodeAttribute bc)
-
unboxBoolean
public static CodeAttribute unboxBoolean(CodeAttribute bc)
-
-