Package jadex.bytecode.access
Class InstAccess
java.lang.Object
jadex.bytecode.access.InstAccess
Gain access using instrumentation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final byte[]enhanceClass(byte[] input) Method used by the instrumentation agent to enhance the target class.static final MethodHandleAcquire MethodHandle to unchecked Method AccessibleObject.setAccessible0.static voidMain class for testing.
-
Field Details
-
TEMP_JAR_DIR
Directory for temporary jar files.
-
-
Constructor Details
-
InstAccess
public InstAccess()
-
-
Method Details
-
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
Main class for testing.- Parameters:
args- Arguments.
-