org.jboss.weld.util.bytecode
Class Boxing

java.lang.Object
  extended by org.jboss.weld.util.bytecode.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
Boxing()
           
 
Method Summary
static void boxBoolean(javassist.bytecode.Bytecode bc)
           
static void boxByte(javassist.bytecode.Bytecode bc)
           
static void boxChar(javassist.bytecode.Bytecode bc)
           
static void boxDouble(javassist.bytecode.Bytecode bc)
           
static void boxFloat(javassist.bytecode.Bytecode bc)
           
static void boxIfNessesary(javassist.bytecode.Bytecode b, String desc)
           
static void boxInt(javassist.bytecode.Bytecode bc)
           
static void boxLong(javassist.bytecode.Bytecode bc)
           
static void boxShort(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unbox(javassist.bytecode.Bytecode b, String desc)
           
static javassist.bytecode.Bytecode unboxBoolean(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxByte(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxChar(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxDouble(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxFloat(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxInt(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxLong(javassist.bytecode.Bytecode bc)
           
static javassist.bytecode.Bytecode unboxShort(javassist.bytecode.Bytecode bc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Boxing

public Boxing()
Method Detail

boxIfNessesary

public static void boxIfNessesary(javassist.bytecode.Bytecode b,
                                  String desc)

unbox

public static javassist.bytecode.Bytecode unbox(javassist.bytecode.Bytecode b,
                                                String desc)

boxInt

public static void boxInt(javassist.bytecode.Bytecode bc)

boxLong

public static void boxLong(javassist.bytecode.Bytecode bc)

boxShort

public static void boxShort(javassist.bytecode.Bytecode bc)

boxByte

public static void boxByte(javassist.bytecode.Bytecode bc)

boxFloat

public static void boxFloat(javassist.bytecode.Bytecode bc)

boxDouble

public static void boxDouble(javassist.bytecode.Bytecode bc)

boxChar

public static void boxChar(javassist.bytecode.Bytecode bc)

boxBoolean

public static void boxBoolean(javassist.bytecode.Bytecode bc)

unboxInt

public static javassist.bytecode.Bytecode unboxInt(javassist.bytecode.Bytecode bc)

unboxLong

public static javassist.bytecode.Bytecode unboxLong(javassist.bytecode.Bytecode bc)

unboxShort

public static javassist.bytecode.Bytecode unboxShort(javassist.bytecode.Bytecode bc)

unboxByte

public static javassist.bytecode.Bytecode unboxByte(javassist.bytecode.Bytecode bc)

unboxFloat

public static javassist.bytecode.Bytecode unboxFloat(javassist.bytecode.Bytecode bc)

unboxDouble

public static javassist.bytecode.Bytecode unboxDouble(javassist.bytecode.Bytecode bc)

unboxChar

public static javassist.bytecode.Bytecode unboxChar(javassist.bytecode.Bytecode bc)

unboxBoolean

public static javassist.bytecode.Bytecode unboxBoolean(javassist.bytecode.Bytecode bc)


Copyright © 2013 Seam Framework. All Rights Reserved.