sf logo

sf.qof.codegen
Class EmitUtils

java.lang.Object
  extended by sf.qof.codegen.EmitUtils

public class EmitUtils
extends Object

Internal - Contains utility functions for code emitters.


Method Summary
static void boxUsingValueOf(net.sf.cglib.core.CodeEmitter co, org.objectweb.asm.Type primitiveType)
          Emits code to call the static valueOf method of the boxed types of primitives.
static void createAndStoreNewResultObject(net.sf.cglib.core.CodeEmitter co, Mapper mapper, net.sf.cglib.core.Local localResultSet, net.sf.cglib.core.Local localStoreResult)
           
static void emitClose(net.sf.cglib.core.CodeEmitter co, net.sf.cglib.core.Local local, boolean addIfNotNull)
          Emits code to call close() on the local variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

boxUsingValueOf

public static void boxUsingValueOf(net.sf.cglib.core.CodeEmitter co,
                                   org.objectweb.asm.Type primitiveType)
Emits code to call the static valueOf method of the boxed types of primitives.

Parameters:
co - the code emitter
primitiveType - primitive type

emitClose

public static void emitClose(net.sf.cglib.core.CodeEmitter co,
                             net.sf.cglib.core.Local local,
                             boolean addIfNotNull)
Emits code to call close() on the local variable.

Parameters:
co - the code emitter
local - the local
addIfNotNull - add if not null check

createAndStoreNewResultObject

public static void createAndStoreNewResultObject(net.sf.cglib.core.CodeEmitter co,
                                                 Mapper mapper,
                                                 net.sf.cglib.core.Local localResultSet,
                                                 net.sf.cglib.core.Local localStoreResult)

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.