org.apache.openjpa.enhance
Class AsmAdaptor

java.lang.Object
  extended by org.apache.openjpa.enhance.AsmAdaptor

public final class AsmAdaptor
extends Object

Use ASM to add required StackMapTable attribute to the byte code generated by Serp.


Constructor Summary
AsmAdaptor()
           
 
Method Summary
static byte[] toByteArray(serp.bytecode.BCClass bc, byte[] returnBytes)
           
static void write(serp.bytecode.BCClass bc)
           
static void write(serp.bytecode.BCClass bc, File outFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsmAdaptor

public AsmAdaptor()
Method Detail

write

public static void write(serp.bytecode.BCClass bc)
                  throws IOException
Throws:
IOException

write

public static void write(serp.bytecode.BCClass bc,
                         File outFile)
                  throws IOException
Throws:
IOException

toByteArray

public static byte[] toByteArray(serp.bytecode.BCClass bc,
                                 byte[] returnBytes)
                          throws IOException
Throws:
IOException


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.