Package jadex.bytecode.access
Class InstAccess
- java.lang.Object
 - 
- jadex.bytecode.access.InstAccess
 
 
- 
public class InstAccess extends java.lang.ObjectGain access using instrumentation. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static java.io.FileTEMP_JAR_DIRDirectory for temporary jar files. 
- 
Constructor Summary
Constructors Constructor Description InstAccess() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]enhanceClass(byte[] input)Method used by the instrumentation agent to enhance the target class.static java.lang.invoke.MethodHandlegetAccessHandle()Acquire MethodHandle to unchecked Method AccessibleObject.setAccessible0.static voidmain(java.lang.String[] args)Main class for testing. 
 - 
 
- 
- 
Method Detail
- 
getAccessHandle
public static final java.lang.invoke.MethodHandle getAccessHandle()
Acquire MethodHandle to unchecked Method AccessibleObject.setAccessible0.- Returns:
 - MethodHandle on success, null otherwise.
 
 
- 
enhanceClass
public static final byte[] enhanceClass(byte[] input)
Method used by the instrumentation agent to enhance the target class.- Parameters:
 input- Original class bytecode.- Returns:
 - Enhanced class bytecode.
 
 
- 
main
public static void main(java.lang.String[] args)
Main class for testing.- Parameters:
 args- Arguments.
 
 - 
 
 -