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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Boxing
public Boxing()
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)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.