org.netbeans
Class PatchByteCode
java.lang.Object
org.netbeans.PatchByteCode
public final class PatchByteCode
- extends Object
Tool to patch bytecode, currently just to make access modifiers public.
Determines when and what to patch based on class-retention annotations.
- See Also:
PatchedPublic,
patch(byte[])
|
Method Summary |
static byte[] |
patch(byte[] data)
Patches a class if it is needed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatchByteCode
public PatchByteCode()
patch
public static byte[] patch(byte[] data)
- Patches a class if it is needed.
- Parameters:
arr - the bytecode
- Returns:
- the enhanced bytecode