public class InterfaceExtractor
extends java.lang.Object
class Foo { public String foo(int i) {} }will cause creation of an interface method:
String foo(Foo instance, int i) {}
Constructor and Description |
---|
InterfaceExtractor(TypeRegistry registry) |
Modifier and Type | Method and Description |
---|---|
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.
|
public InterfaceExtractor(TypeRegistry registry)
public static byte[] extract(byte[] classbytes, TypeRegistry registry, TypeDescriptor typeDescriptor)
classbytes
- bytes for the class which is going through interface extractionregistry
- type registry related to the classloader for this classtypeDescriptor
- previously extracted type descriptor for the classpublic byte[] extract(byte[] classbytes, TypeDescriptor typeDescriptor)