org.springsource.loaded
Class InterfaceExtractor

java.lang.Object
  extended by org.springsource.loaded.InterfaceExtractor

public class InterfaceExtractor
extends java.lang.Object

Extract an interface for a type. The interface embodies the shape of the type as originally loaded. The key difference with methods in the interface is that they contain an extra (leading) parameter that is the type of the original loaded class.
For example:

 class Foo {
 public String foo(int i) {}
 }
 
will cause creation of an interface method:
 String foo(Foo instance, int i) {}
 

Since:
0.5.0

Constructor Summary
InterfaceExtractor(TypeRegistry registry)
           
 
Method Summary
 byte[] extract(byte[] classbytes, TypeDescriptor typeDescriptor)
           
static byte[] extract(byte[] classbytes, TypeRegistry registry, TypeDescriptor typeDescriptor)
          Extract the fixed interface for a class and a type descriptor with more details on the methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceExtractor

public InterfaceExtractor(TypeRegistry registry)
Method Detail

extract

public static byte[] extract(byte[] classbytes,
                             TypeRegistry registry,
                             TypeDescriptor typeDescriptor)
Extract the fixed interface for a class and a type descriptor with more details on the methods


extract

public byte[] extract(byte[] classbytes,
                      TypeDescriptor typeDescriptor)