org.springsource.loaded
Class InterfaceExtractor
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InterfaceExtractor
public InterfaceExtractor(TypeRegistry registry)
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)