java.lang.Object
org.jboss.classfilewriter.util.Boxing
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidboxByte(CodeAttribute bc) static voidboxChar(CodeAttribute bc) static voidstatic voidstatic voidboxIfNessesary(CodeAttribute ca, String desc) static voidboxInt(CodeAttribute bc) static voidboxLong(CodeAttribute bc) static voidstatic CodeAttributeunbox(CodeAttribute ca, String desc) static CodeAttributestatic CodeAttributestatic CodeAttributestatic CodeAttributestatic CodeAttributestatic CodeAttributestatic CodeAttributestatic CodeAttribute
-
Constructor Details
-
Boxing
public Boxing()
-
-
Method Details
-
boxIfNessesary
-
unbox
-
boxInt
-
boxLong
-
boxShort
-
boxByte
-
boxFloat
-
boxDouble
-
boxChar
-
boxBoolean
-
unboxInt
-
unboxLong
-
unboxShort
-
unboxByte
-
unboxFloat
-
unboxDouble
-
unboxChar
-
unboxBoolean
-