Package jadex.bytecode.access
Class AccessAgent
java.lang.Object
jadex.bytecode.access.AccessAgent
- All Implemented Interfaces:
ClassFileTransformer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidagentmain(String agentargs, Instrumentation inst) static voidMain for testing.static voidpremain(String agentargs, Instrumentation inst) Agent in premain mode (unimplemented).byte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms a class using instrumentation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Constructor Details
-
AccessAgent
public AccessAgent()
-
-
Method Details
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException Transforms a class using instrumentation.- Specified by:
transformin interfaceClassFileTransformer- Parameters:
loader- The class loader.className- The class nameclassBeingRedefined- The class being redefined.protectionDomain- Protection domain.classfileBuffer- Original classfile.- Returns:
- Transformed class.
- Throws:
IllegalClassFormatException
-
premain
Agent in premain mode (unimplemented).- Parameters:
agentargs- Agent arguments.inst- Instrumentation.
-
agentmain
-
main
Main for testing.- Parameters:
args- Arguments.
-